get.porter.sh/porter@v1.3.0/pkg/storage/parameterset_provider.go (about) 1 package storage 2 3 import ( 4 "context" 5 6 "get.porter.sh/porter/pkg/secrets" 7 ) 8 9 // ParameterSetProvider interface for managing sets of parameters. 10 type ParameterSetProvider interface { 11 GetDataStore() Store 12 13 // ResolveAll parameter values in the parameter set. 14 ResolveAll(ctx context.Context, params ParameterSet, keys []string) (secrets.Set, error) 15 16 // Validate the parameter set is defined properly. 17 Validate(ctx context.Context, params ParameterSet) error 18 19 InsertParameterSet(ctx context.Context, params ParameterSet) error 20 ListParameterSets(ctx context.Context, listOptions ListOptions) ([]ParameterSet, error) 21 GetParameterSet(ctx context.Context, namespace string, name string) (ParameterSet, error) 22 UpdateParameterSet(ctx context.Context, params ParameterSet) error 23 UpsertParameterSet(ctx context.Context, params ParameterSet) error 24 RemoveParameterSet(ctx context.Context, namespace string, name string) error 25 }