Documentation ¶
Index ¶
- type AdditionalOptions
- type Builder
- func (builder *Builder) Create() (*Builder, error)
- func (builder *Builder) Delete() error
- func (builder *Builder) Exists() bool
- func (builder *Builder) Update() (*Builder, error)
- func (builder *Builder) WithAnnotations(annotations map[string]string) *Builder
- func (builder *Builder) WithData(data map[string][]byte) *Builder
- func (builder *Builder) WithOptions(options ...AdditionalOptions) *Builder
- func (builder *Builder) WithStringData(data map[string]string) *Builder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdditionalOptions ¶
AdditionalOptions additional options for Secret object.
type Builder ¶
type Builder struct { // Secret definition. Used to store the secret object. Definition *corev1.Secret // Created secret object. Object *corev1.Secret // contains filtered or unexported fields }
Builder provides struct for secret object containing connection to the cluster and the secret definitions.
func NewBuilder ¶
func NewBuilder(apiClient *clients.Settings, name, nsname string, secretType corev1.SecretType) *Builder
NewBuilder creates a new instance of Builder.
func (*Builder) Create ¶
Create makes a secret in the cluster and stores the created object in struct.
func (*Builder) WithAnnotations ¶
WithAnnotations defines the annotations in the secret.
func (*Builder) WithOptions ¶
func (builder *Builder) WithOptions(options ...AdditionalOptions) *Builder
WithOptions creates secret with generic mutation options.
Click to show internal directories.
Click to hide internal directories.