Documentation
¶
Index ¶
- func FindPullSecretByName(ctx context.Context, c client.Client, name string) (*client.PullSecret, error)
- func FormatRegistries(registries []string) string
- func NewCreateCommand(set clientset.ClientSet) *cobra.Command
- func NewDeleteCommand(set clientset.ClientSet) *cobra.Command
- func NewGetCommand(set clientset.ClientSet) *cobra.Command
- func NewListCommand(set clientset.ClientSet) *cobra.Command
- type CreateOptions
- type RegistryEntry
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 ¶
FormatRegistries joins registry addresses with commas for display.
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.
Click to show internal directories.
Click to hide internal directories.