clustertrustbundle

package
v1.0.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2026 License: Apache-2.0 Imports: 17 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

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

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