Versions in this module Expand all Collapse all v1 v1.0.1 Mar 6, 2023 v1.0.0 Mar 6, 2023 Changes in this version + const AllNamespaces + const EventAdded + const EventDeleted + const EventError + const EventModified + func Bool(b bool) *bool + func Int(i int) *int + func Int32(i int32) *int32 + func Register(apiGroup, apiVersion, name string, namespaced bool, r Resource) + func RegisterList(apiGroup, apiVersion, name string, namespaced bool, l ResourceList) + func String(s string) *string + type APIError struct + Code int + Status *metav1.Status + func (e *APIError) Error() string + type AuthInfo struct + AuthProvider *AuthProviderConfig + ClientCertificate string + ClientCertificateData []byte + ClientKey string + ClientKeyData []byte + Extensions []NamedExtension + Impersonate string + Password string + Token string + TokenFile string + Username string + type AuthProviderConfig struct + Config map[string]string + Name string + type Client struct + Client *http.Client + Endpoint string + Namespace string + SetHeaders func(h http.Header) error + func NewClient(config *Config) (*Client, error) + func NewInClusterClient() (*Client, error) + func (c *Client) Create(ctx context.Context, req Resource, options ...Option) error + func (c *Client) Delete(ctx context.Context, req Resource, options ...Option) error + func (c *Client) Get(ctx context.Context, namespace, name string, resp Resource, options ...Option) error + func (c *Client) List(ctx context.Context, namespace string, resp ResourceList, options ...Option) error + func (c *Client) Update(ctx context.Context, req Resource, options ...Option) error + func (c *Client) Watch(ctx context.Context, namespace string, r Resource, options ...Option) (*Watcher, error) + type Cluster struct + APIVersion string + CertificateAuthority string + CertificateAuthorityData []byte + Extensions []NamedExtension + InsecureSkipTLSVerify bool + Server string + type Config struct + APIVersion string + AuthInfos []NamedAuthInfo + Clusters []NamedCluster + Contexts []NamedContext + CurrentContext string + Extensions []NamedExtension + Kind string + Preferences Preferences + type Context struct + AuthInfo string + Cluster string + Extensions []NamedExtension + Namespace string + type Discovery struct + func NewDiscoveryClient(c *Client) *Discovery + func (d *Discovery) APIGroup(ctx context.Context, name string) (*metav1.APIGroup, error) + func (d *Discovery) APIGroups(ctx context.Context) (*metav1.APIGroupList, error) + func (d *Discovery) APIResources(ctx context.Context, groupName, groupVersion string) (*metav1.APIResourceList, error) + func (d *Discovery) Version(ctx context.Context) (*Version, error) + type LabelSelector struct + func (l *LabelSelector) Eq(key, val string) + func (l *LabelSelector) In(key string, vals ...string) + func (l *LabelSelector) NotEq(key, val string) + func (l *LabelSelector) NotIn(key string, vals ...string) + func (l *LabelSelector) Selector() Option + func (l *LabelSelector) String() string + type NamedAuthInfo struct + AuthInfo AuthInfo + Name string + type NamedCluster struct + Cluster Cluster + Name string + type NamedContext struct + Context Context + Name string + type NamedExtension struct + Extension runtime.RawExtension + Name string + type Option interface + func DeleteAtomic() Option + func DeleteGracePeriod(d time.Duration) Option + func DeletePropagationBackground() Option + func DeletePropagationForeground() Option + func DeletePropagationOrphan() Option + func QueryParam(name, value string) Option + func ResourceVersion(resourceVersion string) Option + func Subresource(name string) Option + func Timeout(d time.Duration) Option + type Preferences struct + Colors bool + Extensions []NamedExtension + type Resource interface + GetMetadata func() *metav1.ObjectMeta + type ResourceList interface + GetMetadata func() *metav1.ListMeta + type Version struct + BuildDate string + Compiler string + GitCommit string + GitTreeState string + GitVersion string + GoVersion string + Major string + Minor string + Platform string + type Watcher struct + func (w *Watcher) Close() error + func (w *Watcher) Next(r Resource) (string, error)