kubernetes

package
v0.0.0-...-dea60c0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAnnotation

func GetAnnotation(m meta.ObjectMeta, name string) (string, bool)

func IgnoreAlreadyExists

func IgnoreAlreadyExists(err error) error

func IgnoreError

func IgnoreError(err error, handler func(error) bool) error

func IgnoreNotFound

func IgnoreNotFound(err error) error

func IgnoreTimeout

func IgnoreTimeout(err error) error

func NewForConfig

func NewForConfig(cfg *rest.Config) (*client, error)

func SetAnnotation

func SetAnnotation(m meta.ObjectMeta, name, val string)

Types

type Config

type Config struct {
	AccessType string `env-required:"true" json:"access_type" env:"KUBE_ACCESS_TYPE"`
}

type FactoryGroup

type FactoryGroup struct {
	Core   core.SharedInformerFactory
	Stands stands.SharedInformerFactory
}

func NewFactoryGroup

func NewFactoryGroup(k Interface, coreRI, standsRI time.Duration) *FactoryGroup

func (*FactoryGroup) Start

func (fg *FactoryGroup) Start(interrupt <-chan struct{})

func (*FactoryGroup) WaitForCacheSync

func (fg *FactoryGroup) WaitForCacheSync(interrupt <-chan struct{}) map[reflect.Type]bool

type Interface

type Interface interface {
	CoreClient() corecs.Interface
	StandSchedulesClient() standscs.Interface
}

func NewForAccessType

func NewForAccessType(accessType string) (Interface, error)

func NewForExternalCluster

func NewForExternalCluster() (Interface, error)

func NewForInternalCluster

func NewForInternalCluster() (Interface, error)

func NewForTest

func NewForTest(env string) (Interface, error)

func NewPluginClient

func NewPluginClient(clientGetter genericclioptions.RESTClientGetter) (Interface, error)

type ListerGroup

type ListerGroup struct {
	Namespaces   core.NamespaceLister
	Deployments  apps.DeploymentLister
	StatefulSets apps.StatefulSetLister
	Stands       stands.StandSchedulePolicyLister
}

func NewListerGroup

func NewListerGroup(f *FactoryGroup) *ListerGroup

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL