cluster

package
v0.9.14 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2024 License: MIT Imports: 15 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AddToScheme = localSchemeBuilder.AddToScheme

AddToScheme adds all types of this clientset into the given scheme. This allows composition of clientsets, like in:

import (
  "k8s.io/client-go/kubernetes"
  clientsetscheme "k8s.io/client-go/kubernetes/scheme"
  aggregatorclientsetscheme "k8s.io/kube-aggregator/pkg/client/clientset_generated/clientset/scheme"
)

kclientset, _ := kubernetes.NewForConfig(c)
_ = aggregatorclientsetscheme.AddToScheme(clientsetscheme.Scheme)

After this, RawExtensions in Kubernetes types will serialize kube-aggregator types correctly.

View Source
var Scheme = runtime.NewScheme()

Functions

func Flush

func Flush()

func Ready

func Ready(cluster *clusterapi.Cluster) bool

func Wait

func Wait(kubeConf *rest.Config, namespace string, name string) error

func Waiter

func Waiter(kubeConf *rest.Config, namespace string, name string, clustFunc func(cluster *clusterapi.Cluster) (bool, error), timeout func() error) error

func WatchNamespace

func WatchNamespace(ctx context.Context, client ClusterInterface) (watch.Interface, error)

Types

type ClusterInterface

type ClusterInterface interface {
	List(ctx context.Context, opts metav1.ListOptions) (*clusterapi.ClusterList, error)
	Get(ctx context.Context, name string, options metav1.GetOptions) (*clusterapi.Cluster, error)
	Create(ctx context.Context, clust *clusterapi.Cluster) (*clusterapi.Cluster, error)
	Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
}

type ClusterV1Beta1Client

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

func NewForConfig

func NewForConfig(c *rest.Config) (*ClusterV1Beta1Client, error)

func (*ClusterV1Beta1Client) Clusters

func (c *ClusterV1Beta1Client) Clusters(namespace string) ClusterInterface

type ClusterV1Beta1Interface

type ClusterV1Beta1Interface interface {
	Clusters(namespace string) ClusterInterface
}

Jump to

Keyboard shortcuts

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