Documentation
¶
Index ¶
- Constants
- type Secret
- func (s *Secret) GetAnnotations() map[string]string
- func (s *Secret) GetData() any
- func (s *Secret) GetID() uuid.UUID
- func (s *Secret) GetName() string
- func (s *Secret) GetNamespace() string
- func (s *Secret) IsIdentified() bool
- func (s *Secret) SetAnnotations(val map[string]string)
- func (s *Secret) SetData(val any)
- func (s *Secret) SetID(val uuid.UUID)
- func (s *Secret) SetName(val string)
- func (s *Secret) SetNamespace(val string)
- type Store
- type Stream
Constants ¶
View Source
const ( KeyID = "id" KeyNamespace = "namespace" KeyName = "name" KeyAnnotations = "annotations" KeyData = "data" )
Key constants for commonly used fields.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Secret ¶
type Secret struct { // ID is the unique identifier of the secret. ID uuid.UUID `json:"id" bson:"_id" yaml:"id" map:"id" validate:"required"` // Namespace groups secrets logically. Namespace string `json:"namespace" bson:"namespace" yaml:"namespace" map:"namespace" validate:"required"` // Name is the human-readable name of the secret. Name string `json:"name,omitempty" bson:"name,omitempty" yaml:"name,omitempty" map:"name,omitempty"` // Annotations hold additional metadata. Annotations map[string]string `json:"annotations,omitempty" bson:"annotations,omitempty" yaml:"annotations,omitempty" map:"annotations,omitempty"` // Data holds the secret's actual data. Data any `json:"data" bson:"data" yaml:"data" map:"data" validate:"required"` }
Secret defines the interface for a secret with various attributes.
func (*Secret) GetAnnotations ¶
GetAnnotations returns the secret's annotations.
func (*Secret) GetNamespace ¶
GetNamespace returns the secret's namespace.
func (*Secret) IsIdentified ¶ added in v0.11.0
IsIdentified checks whether the Value instance has a unique identifier or name.
func (*Secret) SetAnnotations ¶
SetAnnotations sets the secret's annotations.
func (*Secret) SetNamespace ¶
SetNamespace sets the secret's namespace.
Click to show internal directories.
Click to hide internal directories.