Documentation
¶
Overview ¶
Package service implements the `service` commands.
Index ¶
- Variables
- func Apply(ctx context.Context, c *platform.Client, o ApplyOptions) error
- func Delete(ctx context.Context, c *platform.Client, idText string) error
- func Get(ctx context.Context, c *platform.Client, o GetOptions) error
- func GetVariables(ctx context.Context, c *platform.Client, o VariableGetOptions) error
- func Link(ctx context.Context, c *platform.Client, ...) error
- func List(ctx context.Context, c *platform.Client, o ListOptions) error
- func ListExperiments(ctx context.Context, c *platform.Client, o ExperimentListOptions) error
- func Provide(ctx context.Context, c *platform.Client, o ProvideOptions) error
- func RefusedForProvidedExperiments(err error) bool
- func Risk(ctx context.Context, c *platform.Client, o RiskOptions) error
- func SetVariables(ctx context.Context, c *platform.Client, pairs []string, o VariableSetOptions) error
- func Unlink(ctx context.Context, c *platform.Client, idText, experimentKey string) error
- type ApplyOptions
- type ExperimentListOptions
- type GetOptions
- type ListOptions
- type ProvideOptions
- type RiskOptions
- type VariableGetOptions
- type VariableSetOptions
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("not found")
Functions ¶
func GetVariables ¶
func ListExperiments ¶
func RefusedForProvidedExperiments ¶
RefusedForProvidedExperiments recognises the platform refusing a change that would orphan provided experiments. It names its query parameter, so the user is pointed at the CLI flag instead.
func SetVariables ¶
func SetVariables(ctx context.Context, c *platform.Client, pairs []string, o VariableSetOptions) error
SetVariables merges KEY=VALUE arguments over a file's variables. With --replace, the result is all there is.
Types ¶
type ApplyOptions ¶
type ExperimentListOptions ¶
type GetOptions ¶
type GetOptions struct {
ID, File, Type string
}
type ListOptions ¶
type ProvideOptions ¶
type ProvideOptions struct {
ID string
Experiment string
experiment.TemplateOptions
}
type RiskOptions ¶
type VariableGetOptions ¶
type VariableGetOptions struct {
ID, Type string
}
type VariableSetOptions ¶
Click to show internal directories.
Click to hide internal directories.