Movatterモバイル変換


[0]ホーム

URL:


controller

package
v1.40.0Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 18, 2023 License:Apache-2.0Imports:3Imported by:0

Details

Repository

github.com/project-codeflare/multi-cluster-app-dispatcher

Links

Documentation

Overview

Copyright 2019 The Kubernetes Authors.

Licensed under the Apache License, Version 2.0 (the "License");you may not use this file except in compliance with the License.You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, softwaredistributed under the License is distributed on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.See the License for the specific language governing permissions andlimitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

typeHeap

type Heap struct {// contains filtered or unexported fields}

Heap is a thread-safe producer/consumer queue that implements a heap data structure.It can be used to implement priority queues and similar data structures.

func (*Heap)Add

func (h *Heap) Add(obj interface{})error

Add inserts an item, and puts it in the queue. The item is updated if italready exists.

func (*Heap)AddIfNotPresent

func (h *Heap) AddIfNotPresent(obj interface{})error

AddIfNotPresent inserts an item, and puts it in the queue. If an item withthe key is present in the map, no changes is made to the item.

func (*Heap)BulkAdd

func (h *Heap) BulkAdd(list []interface{})error

BulkAdd adds all the items in the list to the queue.

func (*Heap)Delete

func (h *Heap) Delete(obj interface{})error

Delete removes an item.

func (*Heap)Get

func (h *Heap) Get(obj interface{}) (interface{},bool,error)

Get returns the requested item, or sets exists=false.

func (*Heap)GetByKey

func (h *Heap) GetByKey(keystring) (interface{},bool,error)

GetByKey returns the requested item, or sets exists=false.

func (*Heap)List

func (h *Heap) List() []interface{}

List returns a list of all the items.

func (*Heap)Pop

func (h *Heap) Pop() (interface{},error)

Pop returns the head of the heap.

func (*Heap)Update

func (h *Heap) Update(obj interface{})error

Update is the same as Add in this implementation. When the item does notexist, it is added.

typeKeyFunc

type KeyFunc func(obj interface{}) (string,error)

typeLessFunc

type LessFunc func(interface{}, interface{})bool

Source Files

View all Source files

Directories

PathSynopsis
clusterstate
metrics
queuejobresources
------------------------------------------------------ {COPYRIGHT-TOP} --- Copyright 2019, 2021, 2022, 2023 The Multi-Cluster App Dispatcher Authors.
------------------------------------------------------ {COPYRIGHT-TOP} --- Copyright 2019, 2021, 2022, 2023 The Multi-Cluster App Dispatcher Authors.
quotaforestmanager/qm_lib_backend_with_quotasubt_mgr/quotasubtmgr/util
------------------------------------------------------ {COPYRIGHT-TOP} --- Copyright 2019, 2021, 2022, 2023 The Multi-Cluster App Dispatcher Authors.
------------------------------------------------------ {COPYRIGHT-TOP} --- Copyright 2019, 2021, 2022, 2023 The Multi-Cluster App Dispatcher Authors.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp