Documentation
¶
Index ¶
- Variables
- func NewAndFunction() provider.Function
- func NewCWDFunction(resolveWorkingDir WorkingDirResolver) provider.Function
- func NewComposeExecFunction() provider.Function
- func NewComposeFunction() provider.Function
- func NewContainsFunction() provider.Function
- func NewContains_G_Function() provider.Function
- func NewDateTimeFunction(clock core.Clock) provider.Function
- func NewEqFunction() provider.Function
- func NewFilterFunction() provider.Function
- func NewFlatMapFunction() provider.Function
- func NewFromJSONFunction() provider.Function
- func NewFromJSON_G_Function() provider.Function
- func NewGeFunction() provider.Function
- func NewGetAttrExecFunction() provider.Function
- func NewGetAttrFunction() provider.Function
- func NewGetElemExecFunction() provider.Function
- func NewGetElemFunction() provider.Function
- func NewGtFunction() provider.Function
- func NewHasPrefixFunction() provider.Function
- func NewHasPrefix_G_Function() provider.Function
- func NewHasSuffixFunction() provider.Function
- func NewHasSuffix_G_Function() provider.Function
- func NewIndexFunction() provider.Function
- func NewJSONDecodeFunction() provider.Function
- func NewJoinFunction() provider.Function
- func NewKeysFunction() provider.Function
- func NewLastIndexFunction() provider.Function
- func NewLeFunction() provider.Function
- func NewLenFunction() provider.Function
- func NewLinkFunction(linkStateRetriever LinkStateRetriever, ...) provider.Function
- func NewListFunction() provider.Function
- func NewLtFunction() provider.Function
- func NewMapFunction() provider.Function
- func NewNotFunction() provider.Function
- func NewObjectFunction() provider.Function
- func NewOrFunction() provider.Function
- func NewPipeExecFunction() provider.Function
- func NewPipeFunction() provider.Function
- func NewReduceFunction() provider.Function
- func NewReplaceFunction() provider.Function
- func NewReplace_G_Function() provider.Function
- func NewSortFunction() provider.Function
- func NewSplitFunction() provider.Function
- func NewSplit_G_Function() provider.Function
- func NewSubstrFunction() provider.Function
- func NewSubstr_G_Function() provider.Function
- func NewToLowerFunction() provider.Function
- func NewToUpperFunction() provider.Function
- func NewTrimFunction() provider.Function
- func NewTrimPrefixFunction() provider.Function
- func NewTrimPrefix_G_Function() provider.Function
- func NewTrimSuffixFunction() provider.Function
- func NewTrimSuffix_G_Function() provider.Function
- func NewValsFunction() provider.Function
- type AndFunction
- type BlueprintInstanceIDRetriever
- type CWDFunction
- type ComposeExecFunction
- type ComposeFunction
- type ContainsFunction
- type Contains_G_Function
- type DateTimeFunction
- type EqFunction
- type FilterFunction
- type FlatMapFunction
- type FromJSONFunction
- type FromJSON_G_Function
- type GeFunction
- type GetAttrExecFunction
- type GetAttrFunction
- type GetElemExecFunction
- type GetElemFunction
- type GtFunction
- type HasPrefixFunction
- type HasPrefix_G_Function
- type HasSuffixFunction
- type HasSuffix_G_Function
- type IndexFunction
- type JSONDecodeFunction
- type JoinFunction
- type KeysFunction
- type LastIndexFunction
- type LeFunction
- type LenFunction
- type LinkFunction
- type LinkStateRetriever
- type ListFunction
- type LtFunction
- type MapFunction
- type NamedArgument
- type NotFunction
- type ObjectFunction
- type OrFunction
- type PipeExecFunction
- type PipeFunction
- type ReduceFunction
- type ReplaceFunction
- type Replace_G_Function
- type SortFunction
- type SplitFunction
- type Split_G_Function
- type SubstrFunction
- type Substr_G_Function
- type ToLowerFunction
- type ToUpperFunction
- type TrimFunction
- type TrimPrefixFunction
- type TrimPrefix_G_Function
- type TrimSuffixFunction
- type TrimSuffix_G_Function
- type ValsFunction
- type WorkingDirResolver
Constants ¶
This section is empty.
Variables ¶
var SupportedDateTimeFormats = []string{"unix", "rfc3339", "tag", "tagcompact"}
SupportedDateTimeFormats is a list of valid date/time formats supported by the DateTimeFunction.
Functions ¶
func NewAndFunction ¶
NewAndFunction creates a new instance of the AndFunction with a complete function definition.
func NewCWDFunction ¶
func NewCWDFunction(resolveWorkingDir WorkingDirResolver) provider.Function
NewCWDFunction creates a new instance of the CWDFunction with a complete function definition.
func NewComposeExecFunction ¶
NewComposeExecFunction creates a new instance of the internal ComposeExecFunction that is used to execute functions that have been composed together.
func NewComposeFunction ¶
NewComposeFunction creates a new instance of the ComposeFunction with a complete function definition.
func NewContainsFunction ¶
NewContainsFunction creates a new instance of the ContainsFunction with a complete function definition.
func NewContains_G_Function ¶
NewContains_G_Function creates a new instance of the Contains_G_Function with a complete function definition.
func NewDateTimeFunction ¶
NewDateTimeFunction creates a new instance of the DateTimeFunction with a complete function definition.
func NewEqFunction ¶
NewEqFunction creates a new instance of the EqFunction with a complete function definition.
func NewFilterFunction ¶
NewFilterFunction creates a new instance of the FilterFunction with a complete function definition.
func NewFlatMapFunction ¶
NewFlatMapFunction creates a new instance of the FlatMapFunction with a complete function definition.
func NewFromJSONFunction ¶
NewFromJSONFunction creates a new instance of the FromJSONFunction with a complete function definition.
func NewFromJSON_G_Function ¶
NewFromJSON_G_Function creates a new instance of the FromJSON_G_Function with a complete function definition.
func NewGeFunction ¶
NewGeFunction creates a new instance of the GeFunction with a complete function definition.
func NewGetAttrExecFunction ¶
NewGetAttrExecFunction creates a new instance of the internal GetAttrExecFunction that is used to execute an attribute extraction function.
func NewGetAttrFunction ¶
NewGetAttrFunction creates a new instance of the GetAttrFunction with a complete function definition.
func NewGetElemExecFunction ¶
NewGetElemExecFunction creates a new instance of the internal GetElemExecFunction that is used to execute an attribute extraction function.
func NewGetElemFunction ¶
NewGetElemFunction creates a new instance of the GetElemFunction with a complete function definition.
func NewGtFunction ¶
NewGtFunction creates a new instance of the GtFunction with a complete function definition.
func NewHasPrefixFunction ¶
NewHasPrefixFunction creates a new instance of the HasPrefixFunction with a complete function definition.
func NewHasPrefix_G_Function ¶
NewHasPrefix_G_Function creates a new instance of the HasPrefix_G_Function with a complete function definition.
func NewHasSuffixFunction ¶
NewHasSuffixFunction creates a new instance of the HasSuffixFunction with a complete function definition.
func NewHasSuffix_G_Function ¶
NewHasSuffix_G_Function creates a new instance of the HasSuffix_G_Function with a complete function definition.
func NewIndexFunction ¶
NewIndexFunction creates a new instance of the IndexFunction with a complete function definition.
func NewJSONDecodeFunction ¶
NewJSONDecodeFunction creates a new instance of the JSONDecodeFunction with a complete function definition.
func NewJoinFunction ¶
NewJoinFunction creates a new instance of the JoinFunction with a complete function definition.
func NewKeysFunction ¶
NewKeysFunction creates a new instance of the KeysFunction with a complete function definition.
func NewLastIndexFunction ¶
NewLastIndexFunction creates a new instance of the LastIndexFunction with a complete function definition.
func NewLeFunction ¶
NewLeFunction creates a new instance of the LeFunction with a complete function definition.
func NewLenFunction ¶
NewLenFunction creates a new instance of the LenFunction with a complete function definition.
func NewLinkFunction ¶
func NewLinkFunction( linkStateRetriever LinkStateRetriever, blueprintInstanceIDRetriever BlueprintInstanceIDRetriever, ) provider.Function
NewLinkFunction creates a new instance of the LinkFunction with a complete function definition. This function takes a state container for the current blueprint execution environment as a parameter to allow the link function to retrieve and return the state of a link between two resources. This also requires a function that resolves a blueprint instance ID for the current blueprint execution environment for the blueprint in which the link function is called.
func NewListFunction ¶
NewListFunction creates a new instance of the ListFunction with a complete function definition.
func NewLtFunction ¶
NewLtFunction creates a new instance of the LtFunction with a complete function definition.
func NewMapFunction ¶
NewMapFunction creates a new instance of the MapFunction with a complete function definition.
func NewNotFunction ¶
NewNotFunction creates a new instance of the NotFunction with a complete function definition.
func NewObjectFunction ¶
NewObjectFunction creates a new instance of the ObjectFunction with a complete function definition.
func NewOrFunction ¶
NewOrFunction creates a new instance of the OrFunction with a complete function definition.
func NewPipeExecFunction ¶
NewPipeExecFunction creates a new instance of the internal PipeExecFunction that is used to execute functions that have been piped together.
func NewPipeFunction ¶
NewPipeFunction creates a new instance of the PipeFunction with a complete function definition.
func NewReduceFunction ¶
NewReduceFunction creates a new instance of the ReduceFunction with a complete function definition.
func NewReplaceFunction ¶
NewReplaceFunction creates a new instance of the ReplaceFunction with a complete function definition.
func NewReplace_G_Function ¶
NewReplace_G_Function creates a new instance of the Replace_G_Function with a complete function definition.
func NewSortFunction ¶
NewSortFunction creates a new instance of the SortFunction with a complete function definition.
func NewSplitFunction ¶
NewSplitFunction creates a new instance of the SplitFunction with a complete function definition.
func NewSplit_G_Function ¶
NewSplit_G_Function creates a new instance of the Split_G_Function with a complete function definition.
func NewSubstrFunction ¶
NewSubstrFunction creates a new instance of the SubstrFunction with a complete function definition.
func NewSubstr_G_Function ¶
NewSubstr_G_Function creates a new instance of the Substr_G_Function with a complete function definition.
func NewToLowerFunction ¶
NewToLowerFunction creates a new instance of the NewToLowerFunction with a complete function definition.
func NewToUpperFunction ¶
NewToUpperFunction creates a new instance of the NewToUpperFunction with a complete function definition.
func NewTrimFunction ¶
NewTrimFunction creates a new instance of the NewTrimFunction with a complete function definition.
func NewTrimPrefixFunction ¶
NewTrimPrefixFunction creates a new instance of the TrimPrefixFunction with a complete function definition.
func NewTrimPrefix_G_Function ¶
NewTrimPrefix_G_Function creates a new instance of the TrimPrefix_G_Function with a complete function definition.
func NewTrimSuffixFunction ¶
NewTrimSuffixFunction creates a new instance of the TrimSuffixFunction with a complete function definition.
func NewTrimSuffix_G_Function ¶
NewTrimSuffix_G_Function creates a new instance of the TrimSuffix_G_Function with a complete function definition.
func NewValsFunction ¶
NewValsFunction creates a new instance of the ValsFunction with a complete function definition.
Types ¶
type AndFunction ¶
type AndFunction struct {
// contains filtered or unexported fields
}
AndFunction provides the implementation of a function that acts as a logical AND operator.
func (*AndFunction) Call ¶
func (f *AndFunction) Call( ctx context.Context, input *provider.FunctionCallInput, ) (*provider.FunctionCallOutput, error)
func (*AndFunction) GetDefinition ¶
func (f *AndFunction) GetDefinition( ctx context.Context, input *provider.FunctionGetDefinitionInput, ) (*provider.FunctionGetDefinitionOutput, error)
type BlueprintInstanceIDRetriever ¶
BlueprintInstanceIDRetriever is a function that can be used to retrieve the instance ID for the current blueprint execution environment.
type CWDFunction ¶
type CWDFunction struct {
// contains filtered or unexported fields
}
CWDFunction provides the implementation of a function that gets the user's current working directory.
func (*CWDFunction) Call ¶
func (f *CWDFunction) Call( ctx context.Context, input *provider.FunctionCallInput, ) (*provider.FunctionCallOutput, error)
func (*CWDFunction) GetDefinition ¶
func (f *CWDFunction) GetDefinition( ctx context.Context, input *provider.FunctionGetDefinitionInput, ) (*provider.FunctionGetDefinitionOutput, error)
type ComposeExecFunction ¶
type ComposeExecFunction struct {
// contains filtered or unexported fields
}
ComposeExecFunction provides the implementation of the internal function that executes a composed function. All higher-order functions require a named function that can be called at execution time. This should only be used for executing composed functions, and should only be directly referenced in the compose function implementation.
func (*ComposeExecFunction) Call ¶
func (f *ComposeExecFunction) Call( ctx context.Context, input *provider.FunctionCallInput, ) (*provider.FunctionCallOutput, error)
func (*ComposeExecFunction) GetDefinition ¶
func (f *ComposeExecFunction) GetDefinition( ctx context.Context, input *provider.FunctionGetDefinitionInput, ) (*provider.FunctionGetDefinitionOutput, error)
type ComposeFunction ¶
type ComposeFunction struct {
// contains filtered or unexported fields
}
ComposeFunction provides the implementation of the core "compose" function defined in the blueprint specification.
func (*ComposeFunction) Call ¶
func (f *ComposeFunction) Call( ctx context.Context, input *provider.FunctionCallInput, ) (*provider.FunctionCallOutput, error)
func (*ComposeFunction) GetDefinition ¶
func (f *ComposeFunction) GetDefinition( ctx context.Context, input *provider.FunctionGetDefinitionInput, ) (*provider.FunctionGetDefinitionOutput, error)
type ContainsFunction ¶
type ContainsFunction struct {
// contains filtered or unexported fields
}
ContainsFunction provides the implementation of a function that checks if a string has a suffix.
func (*ContainsFunction) Call ¶
func (f *ContainsFunction) Call( ctx context.Context, input *provider.FunctionCallInput, ) (*provider.FunctionCallOutput, error)
func (*ContainsFunction) GetDefinition ¶
func (f *ContainsFunction) GetDefinition( ctx context.Context, input *provider.FunctionGetDefinitionInput, ) (*provider.FunctionGetDefinitionOutput, error)
type Contains_G_Function ¶
type Contains_G_Function struct {
// contains filtered or unexported fields
}
Contains_G_Function provides the implementation of the core "contains_g" function defined in the blueprint specification.
func (*Contains_G_Function) Call ¶
func (f *Contains_G_Function) Call( ctx context.Context, input *provider.FunctionCallInput, ) (*provider.FunctionCallOutput, error)
func (*Contains_G_Function) GetDefinition ¶
func (f *Contains_G_Function) GetDefinition( ctx context.Context, input *provider.FunctionGetDefinitionInput, ) (*provider.FunctionGetDefinitionOutput, error)
type DateTimeFunction ¶
type DateTimeFunction struct {
// contains filtered or unexported fields
}
DateTimeFunction provides the implementation of a function that gets the current date/time as per the host system's clock in the specified format.
func (*DateTimeFunction) Call ¶
func (f *DateTimeFunction) Call( ctx context.Context, input *provider.FunctionCallInput, ) (*provider.FunctionCallOutput, error)
func (*DateTimeFunction) GetDefinition ¶
func (f *DateTimeFunction) GetDefinition( ctx context.Context, input *provider.FunctionGetDefinitionInput, ) (*provider.FunctionGetDefinitionOutput, error)
type EqFunction ¶
type EqFunction struct {
// contains filtered or unexported fields
}
EqFunction provides the implementation of a function that checks the equality of two values.
func (*EqFunction) Call ¶
func (f *EqFunction) Call( ctx context.Context, input *provider.FunctionCallInput, ) (*provider.FunctionCallOutput, error)
func (*EqFunction) GetDefinition ¶
func (f *EqFunction) GetDefinition( ctx context.Context, input *provider.FunctionGetDefinitionInput, ) (*provider.FunctionGetDefinitionOutput, error)
type FilterFunction ¶
type FilterFunction struct {
// contains filtered or unexported fields
}
FilterFunction provides the implementation of the core "filter" function defined in the blueprint specification.
func (*FilterFunction) Call ¶
func (f *FilterFunction) Call( ctx context.Context, input *provider.FunctionCallInput, ) (*provider.FunctionCallOutput, error)
func (*FilterFunction) GetDefinition ¶
func (f *FilterFunction) GetDefinition( ctx context.Context, input *provider.FunctionGetDefinitionInput, ) (*provider.FunctionGetDefinitionOutput, error)
type FlatMapFunction ¶
type FlatMapFunction struct {
// contains filtered or unexported fields
}
FlatMapFunction provides the implementation of the core "flatmap" function defined in the blueprint specification.
func (*FlatMapFunction) Call ¶
func (f *FlatMapFunction) Call( ctx context.Context, input *provider.FunctionCallInput, ) (*provider.FunctionCallOutput, error)
func (*FlatMapFunction) GetDefinition ¶
func (f *FlatMapFunction) GetDefinition( ctx context.Context, input *provider.FunctionGetDefinitionInput, ) (*provider.FunctionGetDefinitionOutput, error)
type FromJSONFunction ¶
type FromJSONFunction struct {
// contains filtered or unexported fields
}
FromJSONFunction provides the implementation of the core "fromjson" function defined in the blueprint specification.
func (*FromJSONFunction) Call ¶
func (f *FromJSONFunction) Call( ctx context.Context, input *provider.FunctionCallInput, ) (*provider.FunctionCallOutput, error)
func (*FromJSONFunction) GetDefinition ¶
func (f *FromJSONFunction) GetDefinition( ctx context.Context, input *provider.FunctionGetDefinitionInput, ) (*provider.FunctionGetDefinitionOutput, error)
type FromJSON_G_Function ¶
type FromJSON_G_Function struct {
// contains filtered or unexported fields
}
FromJSON_G_Function provides the implementation of the core "fromjson_g" function defined in the blueprint specification.
func (*FromJSON_G_Function) Call ¶
func (f *FromJSON_G_Function) Call( ctx context.Context, input *provider.FunctionCallInput, ) (*provider.FunctionCallOutput, error)
func (*FromJSON_G_Function) GetDefinition ¶
func (f *FromJSON_G_Function) GetDefinition( ctx context.Context, input *provider.FunctionGetDefinitionInput, ) (*provider.FunctionGetDefinitionOutput, error)
type GeFunction ¶
type GeFunction struct {
// contains filtered or unexported fields
}
GeFunction provides the implementation of a function that checks if a number is greater than or equal to another.
func (*GeFunction) Call ¶
func (f *GeFunction) Call( ctx context.Context, input *provider.FunctionCallInput, ) (*provider.FunctionCallOutput, error)
func (*GeFunction) GetDefinition ¶
func (f *GeFunction) GetDefinition( ctx context.Context, input *provider.FunctionGetDefinitionInput, ) (*provider.FunctionGetDefinitionOutput, error)
type GetAttrExecFunction ¶
type GetAttrExecFunction struct {
// contains filtered or unexported fields
}
GetAttrExecFunction provides the implementation of the internal function that executes a getattr function. All higher-order functions require a named function that can be called at execution time. This should only be used for executing the getattr function, and should only be directly referenced in the getattr function implementation.
func (*GetAttrExecFunction) Call ¶
func (f *GetAttrExecFunction) Call( ctx context.Context, input *provider.FunctionCallInput, ) (*provider.FunctionCallOutput, error)
func (*GetAttrExecFunction) GetDefinition ¶
func (f *GetAttrExecFunction) GetDefinition( ctx context.Context, input *provider.FunctionGetDefinitionInput, ) (*provider.FunctionGetDefinitionOutput, error)
type GetAttrFunction ¶
type GetAttrFunction struct {
// contains filtered or unexported fields
}
GetAttrFunction provides the implementation of the core "getattr" function defined in the blueprint specification.
func (*GetAttrFunction) Call ¶
func (f *GetAttrFunction) Call( ctx context.Context, input *provider.FunctionCallInput, ) (*provider.FunctionCallOutput, error)
func (*GetAttrFunction) GetDefinition ¶
func (f *GetAttrFunction) GetDefinition( ctx context.Context, input *provider.FunctionGetDefinitionInput, ) (*provider.FunctionGetDefinitionOutput, error)
type GetElemExecFunction ¶
type GetElemExecFunction struct {
// contains filtered or unexported fields
}
GetElemExecFunction provides the implementation of the internal function that executes a getelem function. All higher-order functions require a named function that can be called at execution time. This should only be used for executing the getelem function, and should only be directly referenced in the getelem function implementation.
func (*GetElemExecFunction) Call ¶
func (f *GetElemExecFunction) Call( ctx context.Context, input *provider.FunctionCallInput, ) (*provider.FunctionCallOutput, error)
func (*GetElemExecFunction) GetDefinition ¶
func (f *GetElemExecFunction) GetDefinition( ctx context.Context, input *provider.FunctionGetDefinitionInput, ) (*provider.FunctionGetDefinitionOutput, error)
type GetElemFunction ¶
type GetElemFunction struct {
// contains filtered or unexported fields
}
GetElemFunction provides the implementation of the core "getelem" function defined in the blueprint specification.
func (*GetElemFunction) Call ¶
func (f *GetElemFunction) Call( ctx context.Context, input *provider.FunctionCallInput, ) (*provider.FunctionCallOutput, error)
func (*GetElemFunction) GetDefinition ¶
func (f *GetElemFunction) GetDefinition( ctx context.Context, input *provider.FunctionGetDefinitionInput, ) (*provider.FunctionGetDefinitionOutput, error)
type GtFunction ¶
type GtFunction struct {
// contains filtered or unexported fields
}
GtFunction provides the implementation of a function that checks if a number is greater than another.
func (*GtFunction) Call ¶
func (f *GtFunction) Call( ctx context.Context, input *provider.FunctionCallInput, ) (*provider.FunctionCallOutput, error)
func (*GtFunction) GetDefinition ¶
func (f *GtFunction) GetDefinition( ctx context.Context, input *provider.FunctionGetDefinitionInput, ) (*provider.FunctionGetDefinitionOutput, error)
type HasPrefixFunction ¶
type HasPrefixFunction struct {
// contains filtered or unexported fields
}
HasPrefixFunction provides the implementation of a function that checks if a string has a prefix.
func (*HasPrefixFunction) Call ¶
func (f *HasPrefixFunction) Call( ctx context.Context, input *provider.FunctionCallInput, ) (*provider.FunctionCallOutput, error)
func (*HasPrefixFunction) GetDefinition ¶
func (f *HasPrefixFunction) GetDefinition( ctx context.Context, input *provider.FunctionGetDefinitionInput, ) (*provider.FunctionGetDefinitionOutput, error)
type HasPrefix_G_Function ¶
type HasPrefix_G_Function struct {
// contains filtered or unexported fields
}
HasPrefix_G_Function provides the implementation of the core "has_prefix_g" function defined in the blueprint specification.
func (*HasPrefix_G_Function) Call ¶
func (f *HasPrefix_G_Function) Call( ctx context.Context, input *provider.FunctionCallInput, ) (*provider.FunctionCallOutput, error)
func (*HasPrefix_G_Function) GetDefinition ¶
func (f *HasPrefix_G_Function) GetDefinition( ctx context.Context, input *provider.FunctionGetDefinitionInput, ) (*provider.FunctionGetDefinitionOutput, error)
type HasSuffixFunction ¶
type HasSuffixFunction struct {
// contains filtered or unexported fields
}
HasSuffixFunction provides the implementation of a function that checks if a string has a suffix.
func (*HasSuffixFunction) Call ¶
func (f *HasSuffixFunction) Call( ctx context.Context, input *provider.FunctionCallInput, ) (*provider.FunctionCallOutput, error)
func (*HasSuffixFunction) GetDefinition ¶
func (f *HasSuffixFunction) GetDefinition( ctx context.Context, input *provider.FunctionGetDefinitionInput, ) (*provider.FunctionGetDefinitionOutput, error)
type HasSuffix_G_Function ¶
type HasSuffix_G_Function struct {
// contains filtered or unexported fields
}
HasSuffix_G_Function provides the implementation of the core "has_suffix_g" function defined in the blueprint specification.
func (*HasSuffix_G_Function) Call ¶
func (f *HasSuffix_G_Function) Call( ctx context.Context, input *provider.FunctionCallInput, ) (*provider.FunctionCallOutput, error)
func (*HasSuffix_G_Function) GetDefinition ¶
func (f *HasSuffix_G_Function) GetDefinition( ctx context.Context, input *provider.FunctionGetDefinitionInput, ) (*provider.FunctionGetDefinitionOutput, error)
type IndexFunction ¶
type IndexFunction struct {
// contains filtered or unexported fields
}
IndexFunction provides the implementation of a function that joins an array of strings into a single string with a provided delimiter.
func (*IndexFunction) Call ¶
func (f *IndexFunction) Call( ctx context.Context, input *provider.FunctionCallInput, ) (*provider.FunctionCallOutput, error)
func (*IndexFunction) GetDefinition ¶
func (f *IndexFunction) GetDefinition( ctx context.Context, input *provider.FunctionGetDefinitionInput, ) (*provider.FunctionGetDefinitionOutput, error)
type JSONDecodeFunction ¶
type JSONDecodeFunction struct {
// contains filtered or unexported fields
}
JSONDecodeFunction provides the implementation of a function that decodes a JSON string.
func (*JSONDecodeFunction) Call ¶
func (f *JSONDecodeFunction) Call( ctx context.Context, input *provider.FunctionCallInput, ) (*provider.FunctionCallOutput, error)
func (*JSONDecodeFunction) GetDefinition ¶
func (f *JSONDecodeFunction) GetDefinition( ctx context.Context, input *provider.FunctionGetDefinitionInput, ) (*provider.FunctionGetDefinitionOutput, error)
type JoinFunction ¶
type JoinFunction struct {
// contains filtered or unexported fields
}
JoinFunction provides the implementation of a function that joins an array of strings into a single string with a provided delimiter.
func (*JoinFunction) Call ¶
func (f *JoinFunction) Call( ctx context.Context, input *provider.FunctionCallInput, ) (*provider.FunctionCallOutput, error)
func (*JoinFunction) GetDefinition ¶
func (f *JoinFunction) GetDefinition( ctx context.Context, input *provider.FunctionGetDefinitionInput, ) (*provider.FunctionGetDefinitionOutput, error)
type KeysFunction ¶
type KeysFunction struct {
// contains filtered or unexported fields
}
KeysFunction provides the implementation of a function that checks if a string has a suffix.
func (*KeysFunction) Call ¶
func (f *KeysFunction) Call( ctx context.Context, input *provider.FunctionCallInput, ) (*provider.FunctionCallOutput, error)
func (*KeysFunction) GetDefinition ¶
func (f *KeysFunction) GetDefinition( ctx context.Context, input *provider.FunctionGetDefinitionInput, ) (*provider.FunctionGetDefinitionOutput, error)
type LastIndexFunction ¶
type LastIndexFunction struct {
// contains filtered or unexported fields
}
LastIndexFunction provides the implementation of a function that joins an array of strings into a single string with a provided delimiter.
func (*LastIndexFunction) Call ¶
func (f *LastIndexFunction) Call( ctx context.Context, input *provider.FunctionCallInput, ) (*provider.FunctionCallOutput, error)
func (*LastIndexFunction) GetDefinition ¶
func (f *LastIndexFunction) GetDefinition( ctx context.Context, input *provider.FunctionGetDefinitionInput, ) (*provider.FunctionGetDefinitionOutput, error)
type LeFunction ¶
type LeFunction struct {
// contains filtered or unexported fields
}
LeFunction provides the implementation of a function that checks if a number is greater than or equal to another.
func (*LeFunction) Call ¶
func (f *LeFunction) Call( ctx context.Context, input *provider.FunctionCallInput, ) (*provider.FunctionCallOutput, error)
func (*LeFunction) GetDefinition ¶
func (f *LeFunction) GetDefinition( ctx context.Context, input *provider.FunctionGetDefinitionInput, ) (*provider.FunctionGetDefinitionOutput, error)
type LenFunction ¶
type LenFunction struct {
// contains filtered or unexported fields
}
LenFunction provides the implementation of a function that gets the length of a string, array or mapping.
func (*LenFunction) Call ¶
func (f *LenFunction) Call( ctx context.Context, input *provider.FunctionCallInput, ) (*provider.FunctionCallOutput, error)
func (*LenFunction) GetDefinition ¶
func (f *LenFunction) GetDefinition( ctx context.Context, input *provider.FunctionGetDefinitionInput, ) (*provider.FunctionGetDefinitionOutput, error)
type LinkFunction ¶
type LinkFunction struct {
// contains filtered or unexported fields
}
LinkFunction provides the implementation of the core "link" function defined in the blueprint specification.
func (*LinkFunction) Call ¶
func (f *LinkFunction) Call( ctx context.Context, input *provider.FunctionCallInput, ) (*provider.FunctionCallOutput, error)
func (*LinkFunction) GetDefinition ¶
func (f *LinkFunction) GetDefinition( ctx context.Context, input *provider.FunctionGetDefinitionInput, ) (*provider.FunctionGetDefinitionOutput, error)
type LinkStateRetriever ¶
type LinkStateRetriever interface {
// Get deals with retrieving the state for a given link
// in the provided blueprint instance.
GetByName(ctx context.Context, instanceID string, linkName string) (state.LinkState, error)
}
LinkStateRetriever is an interface that defines a service that can be used to retrieve the state of a link between two resources in a blueprint instance.
type ListFunction ¶
type ListFunction struct {
// contains filtered or unexported fields
}
ListFunction provides the implementation of a function that checks if a string has a suffix.
func (*ListFunction) Call ¶
func (f *ListFunction) Call( ctx context.Context, input *provider.FunctionCallInput, ) (*provider.FunctionCallOutput, error)
func (*ListFunction) GetDefinition ¶
func (f *ListFunction) GetDefinition( ctx context.Context, input *provider.FunctionGetDefinitionInput, ) (*provider.FunctionGetDefinitionOutput, error)
type LtFunction ¶
type LtFunction struct {
// contains filtered or unexported fields
}
LtFunction provides the implementation of a function that checks if a number is less than another.
func (*LtFunction) Call ¶
func (f *LtFunction) Call( ctx context.Context, input *provider.FunctionCallInput, ) (*provider.FunctionCallOutput, error)
func (*LtFunction) GetDefinition ¶
func (f *LtFunction) GetDefinition( ctx context.Context, input *provider.FunctionGetDefinitionInput, ) (*provider.FunctionGetDefinitionOutput, error)
type MapFunction ¶
type MapFunction struct {
// contains filtered or unexported fields
}
MapFunction provides the implementation of the core "map" function defined in the blueprint specification.
func (*MapFunction) Call ¶
func (f *MapFunction) Call( ctx context.Context, input *provider.FunctionCallInput, ) (*provider.FunctionCallOutput, error)
func (*MapFunction) GetDefinition ¶
func (f *MapFunction) GetDefinition( ctx context.Context, input *provider.FunctionGetDefinitionInput, ) (*provider.FunctionGetDefinitionOutput, error)
type NamedArgument ¶
NamedArgument is a struct that represents a named argument. This must be passed into functions that expect named arguments such as the `object` function.
type NotFunction ¶
type NotFunction struct {
// contains filtered or unexported fields
}
NotFunction provides the implementation of a function that acts as a logical NOT operator.
func (*NotFunction) Call ¶
func (f *NotFunction) Call( ctx context.Context, input *provider.FunctionCallInput, ) (*provider.FunctionCallOutput, error)
func (*NotFunction) GetDefinition ¶
func (f *NotFunction) GetDefinition( ctx context.Context, input *provider.FunctionGetDefinitionInput, ) (*provider.FunctionGetDefinitionOutput, error)
type ObjectFunction ¶
type ObjectFunction struct {
// contains filtered or unexported fields
}
ObjectFunction provides the implementation of a function that checks if a string has a suffix.
func (*ObjectFunction) Call ¶
func (f *ObjectFunction) Call( ctx context.Context, input *provider.FunctionCallInput, ) (*provider.FunctionCallOutput, error)
func (*ObjectFunction) GetDefinition ¶
func (f *ObjectFunction) GetDefinition( ctx context.Context, input *provider.FunctionGetDefinitionInput, ) (*provider.FunctionGetDefinitionOutput, error)
type OrFunction ¶
type OrFunction struct {
// contains filtered or unexported fields
}
OrFunction provides the implementation of a function that acts as a logical OR operator.
func (*OrFunction) Call ¶
func (f *OrFunction) Call( ctx context.Context, input *provider.FunctionCallInput, ) (*provider.FunctionCallOutput, error)
func (*OrFunction) GetDefinition ¶
func (f *OrFunction) GetDefinition( ctx context.Context, input *provider.FunctionGetDefinitionInput, ) (*provider.FunctionGetDefinitionOutput, error)
type PipeExecFunction ¶
type PipeExecFunction struct {
// contains filtered or unexported fields
}
PipeExecFunction provides the implementation of the internal function that executes a piped function. All higher-order functions require a named function that can be called at execution time. This should only be used for executing piped functions, and should only be directly referenced in the pipe function implementation.
func (*PipeExecFunction) Call ¶
func (f *PipeExecFunction) Call( ctx context.Context, input *provider.FunctionCallInput, ) (*provider.FunctionCallOutput, error)
func (*PipeExecFunction) GetDefinition ¶
func (f *PipeExecFunction) GetDefinition( ctx context.Context, input *provider.FunctionGetDefinitionInput, ) (*provider.FunctionGetDefinitionOutput, error)
type PipeFunction ¶
type PipeFunction struct {
// contains filtered or unexported fields
}
PipeFunction provides the implementation of the core "pipe" function defined in the blueprint specification.
func (*PipeFunction) Call ¶
func (f *PipeFunction) Call( ctx context.Context, input *provider.FunctionCallInput, ) (*provider.FunctionCallOutput, error)
func (*PipeFunction) GetDefinition ¶
func (f *PipeFunction) GetDefinition( ctx context.Context, input *provider.FunctionGetDefinitionInput, ) (*provider.FunctionGetDefinitionOutput, error)
type ReduceFunction ¶
type ReduceFunction struct {
// contains filtered or unexported fields
}
ReduceFunction provides the implementation of the core "reduce" function defined in the blueprint specification.
func (*ReduceFunction) Call ¶
func (f *ReduceFunction) Call( ctx context.Context, input *provider.FunctionCallInput, ) (*provider.FunctionCallOutput, error)
func (*ReduceFunction) GetDefinition ¶
func (f *ReduceFunction) GetDefinition( ctx context.Context, input *provider.FunctionGetDefinitionInput, ) (*provider.FunctionGetDefinitionOutput, error)
type ReplaceFunction ¶
type ReplaceFunction struct {
// contains filtered or unexported fields
}
ReplaceFunction provides the implementation of a function that replaces all occurrences of a substring in a string with another substring.
func (*ReplaceFunction) Call ¶
func (f *ReplaceFunction) Call( ctx context.Context, input *provider.FunctionCallInput, ) (*provider.FunctionCallOutput, error)
func (*ReplaceFunction) GetDefinition ¶
func (f *ReplaceFunction) GetDefinition( ctx context.Context, input *provider.FunctionGetDefinitionInput, ) (*provider.FunctionGetDefinitionOutput, error)
type Replace_G_Function ¶
type Replace_G_Function struct {
// contains filtered or unexported fields
}
Replace_G_Function provides the implementation of the core "replace_g" function defined in the blueprint specification.
func (*Replace_G_Function) Call ¶
func (f *Replace_G_Function) Call( ctx context.Context, input *provider.FunctionCallInput, ) (*provider.FunctionCallOutput, error)
func (*Replace_G_Function) GetDefinition ¶
func (f *Replace_G_Function) GetDefinition( ctx context.Context, input *provider.FunctionGetDefinitionInput, ) (*provider.FunctionGetDefinitionOutput, error)
type SortFunction ¶
type SortFunction struct {
// contains filtered or unexported fields
}
SortFunction provides the implementation of the core "sort" function defined in the blueprint specification. This uses an implementation of quicksort to sort the list of items, this won't be as efficient as Go's built-in sort package, but is a good alternative with support for error handling and being able to sort based on a custom comparison provider function.
func (*SortFunction) Call ¶
func (f *SortFunction) Call( ctx context.Context, input *provider.FunctionCallInput, ) (*provider.FunctionCallOutput, error)
func (*SortFunction) GetDefinition ¶
func (f *SortFunction) GetDefinition( ctx context.Context, input *provider.FunctionGetDefinitionInput, ) (*provider.FunctionGetDefinitionOutput, error)
type SplitFunction ¶
type SplitFunction struct {
// contains filtered or unexported fields
}
SplitFunction provides the implementation of a function that splits a string into an array of substrings based on a delimiter.
func (*SplitFunction) Call ¶
func (f *SplitFunction) Call( ctx context.Context, input *provider.FunctionCallInput, ) (*provider.FunctionCallOutput, error)
func (*SplitFunction) GetDefinition ¶
func (f *SplitFunction) GetDefinition( ctx context.Context, input *provider.FunctionGetDefinitionInput, ) (*provider.FunctionGetDefinitionOutput, error)
type Split_G_Function ¶
type Split_G_Function struct {
// contains filtered or unexported fields
}
Split_G_Function provides the implementation of the core "split_g" function defined in the blueprint specification.
func (*Split_G_Function) Call ¶
func (f *Split_G_Function) Call( ctx context.Context, input *provider.FunctionCallInput, ) (*provider.FunctionCallOutput, error)
func (*Split_G_Function) GetDefinition ¶
func (f *Split_G_Function) GetDefinition( ctx context.Context, input *provider.FunctionGetDefinitionInput, ) (*provider.FunctionGetDefinitionOutput, error)
type SubstrFunction ¶
type SubstrFunction struct {
// contains filtered or unexported fields
}
SubstrFunction provides the implementation of a function that extracts a substring from a string.
func (*SubstrFunction) Call ¶
func (f *SubstrFunction) Call( ctx context.Context, input *provider.FunctionCallInput, ) (*provider.FunctionCallOutput, error)
func (*SubstrFunction) GetDefinition ¶
func (f *SubstrFunction) GetDefinition( ctx context.Context, input *provider.FunctionGetDefinitionInput, ) (*provider.FunctionGetDefinitionOutput, error)
type Substr_G_Function ¶
type Substr_G_Function struct {
// contains filtered or unexported fields
}
Substr_G_Function provides the implementation of the core "substr_g" function defined in the blueprint specification.
func (*Substr_G_Function) Call ¶
func (f *Substr_G_Function) Call( ctx context.Context, input *provider.FunctionCallInput, ) (*provider.FunctionCallOutput, error)
func (*Substr_G_Function) GetDefinition ¶
func (f *Substr_G_Function) GetDefinition( ctx context.Context, input *provider.FunctionGetDefinitionInput, ) (*provider.FunctionGetDefinitionOutput, error)
type ToLowerFunction ¶
type ToLowerFunction struct {
// contains filtered or unexported fields
}
ToLowerFunction provides the implementation of a function that converts a string to uppercase.
func (*ToLowerFunction) Call ¶
func (f *ToLowerFunction) Call( ctx context.Context, input *provider.FunctionCallInput, ) (*provider.FunctionCallOutput, error)
func (*ToLowerFunction) GetDefinition ¶
func (f *ToLowerFunction) GetDefinition( ctx context.Context, input *provider.FunctionGetDefinitionInput, ) (*provider.FunctionGetDefinitionOutput, error)
type ToUpperFunction ¶
type ToUpperFunction struct {
// contains filtered or unexported fields
}
ToUpperFunction provides the implementation of a function that converts a string to uppercase.
func (*ToUpperFunction) Call ¶
func (f *ToUpperFunction) Call( ctx context.Context, input *provider.FunctionCallInput, ) (*provider.FunctionCallOutput, error)
func (*ToUpperFunction) GetDefinition ¶
func (f *ToUpperFunction) GetDefinition( ctx context.Context, input *provider.FunctionGetDefinitionInput, ) (*provider.FunctionGetDefinitionOutput, error)
type TrimFunction ¶
type TrimFunction struct {
// contains filtered or unexported fields
}
TrimFunction provides the implementation of a function that trims leading and trailing whitespace from a string.
func (*TrimFunction) Call ¶
func (f *TrimFunction) Call( ctx context.Context, input *provider.FunctionCallInput, ) (*provider.FunctionCallOutput, error)
func (*TrimFunction) GetDefinition ¶
func (f *TrimFunction) GetDefinition( ctx context.Context, input *provider.FunctionGetDefinitionInput, ) (*provider.FunctionGetDefinitionOutput, error)
type TrimPrefixFunction ¶
type TrimPrefixFunction struct {
// contains filtered or unexported fields
}
TrimPrefixFunction provides the implementation of a function that trims a prefix from a string.
func (*TrimPrefixFunction) Call ¶
func (f *TrimPrefixFunction) Call( ctx context.Context, input *provider.FunctionCallInput, ) (*provider.FunctionCallOutput, error)
func (*TrimPrefixFunction) GetDefinition ¶
func (f *TrimPrefixFunction) GetDefinition( ctx context.Context, input *provider.FunctionGetDefinitionInput, ) (*provider.FunctionGetDefinitionOutput, error)
type TrimPrefix_G_Function ¶
type TrimPrefix_G_Function struct {
// contains filtered or unexported fields
}
TrimPrefix_G_Function provides the implementation of the core "trimprefix_g" function defined in the blueprint specification.
func (*TrimPrefix_G_Function) Call ¶
func (f *TrimPrefix_G_Function) Call( ctx context.Context, input *provider.FunctionCallInput, ) (*provider.FunctionCallOutput, error)
func (*TrimPrefix_G_Function) GetDefinition ¶
func (f *TrimPrefix_G_Function) GetDefinition( ctx context.Context, input *provider.FunctionGetDefinitionInput, ) (*provider.FunctionGetDefinitionOutput, error)
type TrimSuffixFunction ¶
type TrimSuffixFunction struct {
// contains filtered or unexported fields
}
TrimSuffixFunction provides the implementation of a function that trims a prefix from a string.
func (*TrimSuffixFunction) Call ¶
func (f *TrimSuffixFunction) Call( ctx context.Context, input *provider.FunctionCallInput, ) (*provider.FunctionCallOutput, error)
func (*TrimSuffixFunction) GetDefinition ¶
func (f *TrimSuffixFunction) GetDefinition( ctx context.Context, input *provider.FunctionGetDefinitionInput, ) (*provider.FunctionGetDefinitionOutput, error)
type TrimSuffix_G_Function ¶
type TrimSuffix_G_Function struct {
// contains filtered or unexported fields
}
TrimSuffix_G_Function provides the implementation of the core "trimsuffix_g" function defined in the blueprint specification.
func (*TrimSuffix_G_Function) Call ¶
func (f *TrimSuffix_G_Function) Call( ctx context.Context, input *provider.FunctionCallInput, ) (*provider.FunctionCallOutput, error)
func (*TrimSuffix_G_Function) GetDefinition ¶
func (f *TrimSuffix_G_Function) GetDefinition( ctx context.Context, input *provider.FunctionGetDefinitionInput, ) (*provider.FunctionGetDefinitionOutput, error)
type ValsFunction ¶
type ValsFunction struct {
// contains filtered or unexported fields
}
ValsFunction provides the implementation of a function that checks if a string has a suffix.
func (*ValsFunction) Call ¶
func (f *ValsFunction) Call( ctx context.Context, input *provider.FunctionCallInput, ) (*provider.FunctionCallOutput, error)
func (*ValsFunction) GetDefinition ¶
func (f *ValsFunction) GetDefinition( ctx context.Context, input *provider.FunctionGetDefinitionInput, ) (*provider.FunctionGetDefinitionOutput, error)
type WorkingDirResolver ¶
WorkingDirResolver is a function that resolves the current working directory from a blueprint function execution context.
Source Files
¶
- and.go
- compose.go
- compose_exec_internal.go
- contains.go
- contains_g.go
- cwd.go
- datetime.go
- eq.go
- filter.go
- flatmap.go
- fromjson.go
- fromjson_g.go
- ge.go
- getattr.go
- getattr_exec_internal.go
- getelem.go
- getelem_exec_internal.go
- gt.go
- has_prefix.go
- has_prefix_g.go
- has_suffix.go
- has_suffix_g.go
- index.go
- join.go
- jsondecode.go
- keys.go
- last_index.go
- le.go
- len.go
- link.go
- list.go
- lt.go
- map.go
- not.go
- object.go
- or.go
- pipe.go
- pipe_exec_internal.go
- reduce.go
- replace.go
- replace_g.go
- sort.go
- split.go
- split_g.go
- substr.go
- substr_g.go
- to_lower.go
- to_upper.go
- trim.go
- trimprefix.go
- trimprefix_g.go
- trimsuffix.go
- trimsuffix_g.go
- utils.go
- vals.go