Documentation
¶
Overview ¶
Package clustertrustbundle supports stable and beta Kubernetes trust bundle APIs.
Index ¶
- func Discover(d discovery.DiscoveryInterface) (schema.GroupVersion, error)
- func ToBeta(bundle *certsv1.ClusterTrustBundle) *certsv1beta1.ClusterTrustBundle
- func ToV1(bundle *certsv1beta1.ClusterTrustBundle) *certsv1.ClusterTrustBundle
- type Client
- func (c *Client) Create(ctx context.Context, bundle *certsv1.ClusterTrustBundle, ...) (*certsv1.ClusterTrustBundle, error)
- func (c *Client) Get(ctx context.Context, name string, opts metav1.GetOptions) (*certsv1.ClusterTrustBundle, error)
- func (c *Client) GetCached(name string) (*certsv1.ClusterTrustBundle, error)
- func (c *Client) Informer() cache.SharedIndexInformer
- func (c *Client) List(ctx context.Context, opts metav1.ListOptions) (*certsv1.ClusterTrustBundleList, error)
- func (c *Client) Update(ctx context.Context, bundle *certsv1.ClusterTrustBundle, ...) (*certsv1.ClusterTrustBundle, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Discover ¶
func Discover(d discovery.DiscoveryInterface) (schema.GroupVersion, error)
Discover prefers v1 and falls back only when discovery reports it absent.
func ToBeta ¶
func ToBeta(bundle *certsv1.ClusterTrustBundle) *certsv1beta1.ClusterTrustBundle
ToBeta copies a stable bundle into the beta representation.
func ToV1 ¶
func ToV1(bundle *certsv1beta1.ClusterTrustBundle) *certsv1.ClusterTrustBundle
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 (c *Client) Create(ctx context.Context, bundle *certsv1.ClusterTrustBundle, opts metav1.CreateOptions) (*certsv1.ClusterTrustBundle, error)
func (*Client) Get ¶
func (c *Client) Get(ctx context.Context, name string, opts metav1.GetOptions) (*certsv1.ClusterTrustBundle, error)
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 (c *Client) List(ctx context.Context, opts metav1.ListOptions) (*certsv1.ClusterTrustBundleList, error)
func (*Client) Update ¶
func (c *Client) Update(ctx context.Context, bundle *certsv1.ClusterTrustBundle, opts metav1.UpdateOptions) (*certsv1.ClusterTrustBundle, error)
Click to show internal directories.
Click to hide internal directories.