Documentation ¶
Index ¶
Constants ¶
View Source
const ( SpecNameOpaque string = "Opaque" // SpecNameOpaque specifies an opaque specification. SpecNamePlain string = "Plain" // SpecNamePlain specifies a plain specification. SpecNameSecret string = "Secret" // SpecNameSecret specifies a secret specification. SpecNamePassword string = "Password" // SpecNamePassword specifies a password specification. SpecNameDefault = SpecNameOpaque )
Constants representing different specification names. These constants are of type SpecName and are assigned string values.
View Source
const ( LoadSetOperation setOperationKind = iota UpdateSetOperation DeleteSetOperation ReconcileSetOperation TransientSetOperation )
Variables ¶
Functions ¶
This section is empty.
Types ¶
type OperationSet ¶
type OperationSet struct {
// contains filtered or unexported fields
}
func NewOperationSet ¶
func NewOperationSet(opts ...OperationSetOption) (*OperationSet, error)
type OperationSetOption ¶
type OperationSetOption func(*OperationSet) error
func WithOperation ¶
func WithOperation(operation setOperationKind) OperationSetOption
func WithSpecs ¶
func WithSpecs(included bool) OperationSetOption
type Query ¶
type Query struct {
// contains filtered or unexported fields
}
func NewQuery ¶
func NewQuery(name string, varDefs []*ast.VariableDefinition, reducers []QueryNodeReducer) (*Query, error)
type QueryNodeReducer ¶
type QueryNodeReducer func(*ast.OperationDefinition, *ast.SelectionSet) (*ast.SelectionSet, error)
type SetVarItem ¶
type SetVarItem struct { Var *SetVar `json:"var,omitempty"` Value *varValue `json:"value,omitempty"` Spec *varSpec `json:"spec,omitempty"` }
type SetVarItems ¶
type SetVarItems []*SetVarItem
type SetVarSpec ¶
type SetVarSpec struct { Var *SetVar `json:"var,omitempty"` Spec *varSpec `json:"spec,omitempty"` }
type SetVarValue ¶
type SetVarValue struct { Var *SetVar `json:"var,omitempty"` Value *varValue `json:"value,omitempty"` }
type Spec ¶
type Spec struct { Name string Required bool // Indicates whether the configuration is required. Valid bool // Indicates whether the configuration is valid. }
Spec represents the available configuration options and their flags.
type SpecResolverMutator ¶
type SpecResolverMutator func(val *SetVarValue, spec *SetVarSpec, insecure bool)
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func NewStore ¶
func NewStore(opts ...StoreOption) (*Store, error)
func (*Store) InsecureValues ¶
func (*Store) Snapshot ¶
func (s *Store) Snapshot() (SetVarItems, error)
type StoreOption ¶
func WithEnvFile ¶
func WithEnvFile(specFile string, raw []byte) StoreOption
func WithEnvs ¶
func WithEnvs(source string, envs ...string) StoreOption
func WithLogger ¶
func WithLogger(logger *zap.Logger) StoreOption
func WithSpecFile ¶
func WithSpecFile(specFile string, raw []byte) StoreOption
Click to show internal directories.
Click to hide internal directories.