pullsecret

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindPullSecretByName

func FindPullSecretByName(ctx context.Context, c client.Client, name string) (*client.PullSecret, error)

FindPullSecretByName lists all pull secrets and returns the one matching the given name.

func FormatRegistries

func FormatRegistries(registries []string) string

FormatRegistries joins registry addresses with commas for display.

func NewCreateCommand

func NewCreateCommand(set clientset.ClientSet) *cobra.Command

func NewDeleteCommand

func NewDeleteCommand(set clientset.ClientSet) *cobra.Command

func NewGetCommand

func NewGetCommand(set clientset.ClientSet) *cobra.Command

func NewListCommand

func NewListCommand(set clientset.ClientSet) *cobra.Command

Types

type CreateOptions

type CreateOptions struct {
	Name       string
	Registries []RegistryEntry
}

CreateOptions holds the options for the pull secret create command.

type RegistryEntry

type RegistryEntry struct {
	Address  string
	Username string
	Password string //nolint:gosec // G117: this is a credential payload, not a hardcoded secret
}

RegistryEntry holds credentials for a single registry.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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