Help us shape the future of Go! Take the 2026 Go Developer Survey

secret

package
v0.35.2 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2026 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client manages communication with the Kubernetes Secret.

func NewClient

func NewClient(clientset kubernetes.Interface) *Client

NewClient constructs a new Client.

func (*Client) Delete added in v0.4.1

func (c *Client) Delete(ctx context.Context, name, namespace string) (err error)

Delete deletes Secret

func (*Client) Set

func (c *Client) Set(ctx context.Context, name, namespace string, o Options) (sc *v1.Secret, err error)

Set updates Secret of creates it if it does not exist

type Options

type Options struct {
	Annotations map[string]string
	Labels      map[string]string
	Immutable   bool
	Data        map[string][]byte
	StringData  map[string]string
	Type        string
}

Options holds optional parameters for the Client.

Jump to

Keyboard shortcuts

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