clustertrustbundle

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package clustertrustbundle supports stable and beta Kubernetes trust bundle APIs.

Index

Constants

This section is empty.

Variables

View Source
var ErrNotServed = errors.New("neither v1 nor v1beta1 ClusterTrustBundle is served")

ErrNotServed reports that the cluster serves no ClusterTrustBundle API.

Functions

func Discover

Discover prefers v1 and falls back only when discovery reports it absent.

func ToBeta

ToBeta copies a stable bundle into the beta representation.

func ToV1

ToV1 copies a beta bundle into the stable representation.

Types

type Client

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

Client uses one API version for live operations and its native informer cache. Returned objects use the stable v1 representation.

func NewClient

func NewClient(kc kubernetes.Interface, tweak func(*metav1.ListOptions)) (*Client, error)

func (*Client) Create

func (*Client) Delete added in v0.5.0

func (c *Client) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error

func (*Client) Get

func (*Client) GetCached

func (c *Client) GetCached(name string) (*certsv1.ClusterTrustBundle, error)

GetCached returns a read-only bundle from this client's informer cache.

func (*Client) Informer

func (c *Client) Informer() cache.SharedIndexInformer

Informer lazily creates a shared informer. Live operations do not allocate one. The caller must start it once if cached reads are needed.

func (*Client) List

func (*Client) Update

Jump to

Keyboard shortcuts

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