Documentation
¶
Index ¶
- Variables
- func NewAbsFunction() provider.Function
- func NewAndFunction() provider.Function
- func NewBase64DecodeFunction() provider.Function
- func NewBase64EncodeFunction() provider.Function
- func NewCIDRSubnetFunction() provider.Function
- func NewCWDFunction(resolveWorkingDir WorkingDirResolver) provider.Function
- func NewCoalesceFunction() 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 NewFileFunction(fileSourceRegistry provider.FileSourceRegistry) provider.Function
- func NewFilterFunction() provider.Function
- func NewFirstFunction() 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 NewHTTPResourceFunction() provider.Function
- func NewHasPrefixFunction() provider.Function
- func NewHasPrefix_G_Function() provider.Function
- func NewHasSuffixFunction() provider.Function
- func NewHasSuffix_G_Function() provider.Function
- func NewIfFunction() 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 NewLookupFunction() provider.Function
- func NewLtFunction() provider.Function
- func NewMD5Function() provider.Function
- func NewMapFunction() provider.Function
- func NewMaxFunction() provider.Function
- func NewMinFunction() 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 NewSHA1Function() provider.Function
- func NewSHA256Function() 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 NewUTF8Function() provider.Function
- func NewUUIDFunction() provider.Function
- func NewValsFunction() provider.Function
- type AbsFunction
- type AndFunction
- type Base64DecodeFunction
- type Base64EncodeFunction
- type BlueprintInstanceIDRetriever
- type CIDRSubnetFunction
- type CWDFunction
- type CoalesceFunction
- type ComposeExecFunction
- type ComposeFunction
- type ContainsFunction
- type Contains_G_Function
- type DateTimeFunction
- type EqFunction
- type FileFunction
- type FilterFunction
- type FirstFunction
- type FlatMapFunction
- type FromJSONFunction
- type FromJSON_G_Function
- type GeFunction
- type GetAttrExecFunction
- type GetAttrFunction
- type GetElemExecFunction
- type GetElemFunction
- type GtFunction
- type HTTPResourceFunction
- type HasPrefixFunction
- type HasPrefix_G_Function
- type HasSuffixFunction
- type HasSuffix_G_Function
- type IfFunction
- type IndexFunction
- type JSONDecodeFunction
- type JoinFunction
- type KeysFunction
- type LastIndexFunction
- type LeFunction
- type LenFunction
- type LinkFunction
- type LinkStateRetriever
- type ListFunction
- type LookupFunction
- type LtFunction
- type MD5Function
- type MapFunction
- type MaxFunction
- type MinFunction
- type NamedArgument
- type NotFunction
- type ObjectFunction
- type OrFunction
- type PipeExecFunction
- type PipeFunction
- type ReduceFunction
- type ReplaceFunction
- type Replace_G_Function
- type SHA1Function
- type SHA256Function
- 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 UTF8Function
- type UUIDFunction
- 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 NewAbsFunction ¶ added in v0.35.0
NewAbsFunction creates a new instance of the AbsFunction with a complete function definition.
func NewAndFunction ¶
NewAndFunction creates a new instance of the AndFunction with a complete function definition.
func NewBase64DecodeFunction ¶ added in v0.35.0
NewBase64DecodeFunction creates a new instance of the Base64DecodeFunction with a complete function definition.
func NewBase64EncodeFunction ¶ added in v0.35.0
NewBase64EncodeFunction creates a new instance of the Base64EncodeFunction with a complete function definition.
func NewCIDRSubnetFunction ¶ added in v0.35.0
NewCIDRSubnetFunction creates a new instance of the CIDRSubnetFunction 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 NewCoalesceFunction ¶ added in v0.36.0
NewCoalesceFunction creates a new instance of the CoalesceFunction 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 NewFileFunction ¶ added in v0.35.0
func NewFileFunction(fileSourceRegistry provider.FileSourceRegistry) provider.Function
NewFileFunction creates a new instance of the FileFunction with a complete function definition and file source registry.
func NewFilterFunction ¶
NewFilterFunction creates a new instance of the FilterFunction with a complete function definition.
func NewFirstFunction ¶ added in v0.35.0
NewFirstFunction creates a new instance of the FirstFunction 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 NewHTTPResourceFunction ¶ added in v0.35.0
NewHTTPResourceFunction creates a new instance of the HTTPResourceFunction 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 NewIfFunction ¶ added in v0.35.0
NewIfFunction creates a new instance of the IfFunction 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 NewLookupFunction ¶ added in v0.35.0
NewLookupFunction creates a new instance of the LookupFunction with a complete function definition.
func NewLtFunction ¶
NewLtFunction creates a new instance of the LtFunction with a complete function definition.
func NewMD5Function ¶ added in v0.35.0
NewMD5Function creates a new instance of the MD5Function with a complete function definition.
func NewMapFunction ¶
NewMapFunction creates a new instance of the MapFunction with a complete function definition.
func NewMaxFunction ¶ added in v0.35.0
NewMaxFunction creates a new instance of the MaxFunction with a complete function definition.
func NewMinFunction ¶ added in v0.35.0
NewMinFunction creates a new instance of the MinFunction 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 NewSHA1Function ¶ added in v0.35.0
NewSHA1Function creates a new instance of the SHA1Function with a complete function definition.
func NewSHA256Function ¶ added in v0.35.0
NewSHA256Function creates a new instance of the SHA256Function 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 NewUTF8Function ¶ added in v0.35.0
NewUTF8Function creates a new instance of the UTF8Function with a complete function definition.
func NewUUIDFunction ¶ added in v0.35.0
NewUUIDFunction creates a new instance of the UUIDFunction with a complete function definition.
func NewValsFunction ¶
NewValsFunction creates a new instance of the ValsFunction with a complete function definition.
Types ¶
type AbsFunction ¶ added in v0.35.0
type AbsFunction struct {
// contains filtered or unexported fields
}
AbsFunction provides the implementation of a function that returns the absolute value of a number.
func (*AbsFunction) Call ¶ added in v0.35.0
func (f *AbsFunction) Call( ctx context.Context, input *provider.FunctionCallInput, ) (*provider.FunctionCallOutput, error)
func (*AbsFunction) GetDefinition ¶ added in v0.35.0
func (f *AbsFunction) GetDefinition( ctx context.Context, input *provider.FunctionGetDefinitionInput, ) (*provider.FunctionGetDefinitionOutput, error)
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 Base64DecodeFunction ¶ added in v0.35.0
type Base64DecodeFunction struct {
// contains filtered or unexported fields
}
Base64DecodeFunction provides the implementation of a function that decodes a base64 string to a byte array.
func (*Base64DecodeFunction) Call ¶ added in v0.35.0
func (f *Base64DecodeFunction) Call( ctx context.Context, input *provider.FunctionCallInput, ) (*provider.FunctionCallOutput, error)
func (*Base64DecodeFunction) GetDefinition ¶ added in v0.35.0
func (f *Base64DecodeFunction) GetDefinition( ctx context.Context, input *provider.FunctionGetDefinitionInput, ) (*provider.FunctionGetDefinitionOutput, error)
type Base64EncodeFunction ¶ added in v0.35.0
type Base64EncodeFunction struct {
// contains filtered or unexported fields
}
Base64EncodeFunction provides the implementation of a function that encodes a string to base64.
func (*Base64EncodeFunction) Call ¶ added in v0.35.0
func (f *Base64EncodeFunction) Call( ctx context.Context, input *provider.FunctionCallInput, ) (*provider.FunctionCallOutput, error)
func (*Base64EncodeFunction) GetDefinition ¶ added in v0.35.0
func (f *Base64EncodeFunction) 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 CIDRSubnetFunction ¶ added in v0.35.0
type CIDRSubnetFunction struct {
// contains filtered or unexported fields
}
CIDRSubnetFunction provides the implementation of a function that calculates subnet addresses within a given CIDR block.
func (*CIDRSubnetFunction) Call ¶ added in v0.35.0
func (f *CIDRSubnetFunction) Call( ctx context.Context, input *provider.FunctionCallInput, ) (*provider.FunctionCallOutput, error)
func (*CIDRSubnetFunction) GetDefinition ¶ added in v0.35.0
func (f *CIDRSubnetFunction) GetDefinition( ctx context.Context, input *provider.FunctionGetDefinitionInput, ) (*provider.FunctionGetDefinitionOutput, error)
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 CoalesceFunction ¶ added in v0.36.0
type CoalesceFunction struct {
// contains filtered or unexported fields
}
CoalesceFunction provides the implementation of a function that returns the first non-none value from a list of arguments. Unlike the `first` function, coalesce preserves other "empty" values like empty strings (""), empty arrays ([]), and false.
func (*CoalesceFunction) Call ¶ added in v0.36.0
func (f *CoalesceFunction) Call( ctx context.Context, input *provider.FunctionCallInput, ) (*provider.FunctionCallOutput, error)
func (*CoalesceFunction) GetDefinition ¶ added in v0.36.0
func (f *CoalesceFunction) 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 FileFunction ¶ added in v0.35.0
type FileFunction struct {
// contains filtered or unexported fields
}
FileFunction provides the implementation of a function that reads binary data from a file path.
func (*FileFunction) Call ¶ added in v0.35.0
func (f *FileFunction) Call( ctx context.Context, input *provider.FunctionCallInput, ) (*provider.FunctionCallOutput, error)
func (*FileFunction) GetDefinition ¶ added in v0.35.0
func (f *FileFunction) 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 FirstFunction ¶ added in v0.35.0
type FirstFunction struct {
// contains filtered or unexported fields
}
FirstFunction provides the implementation of a function that returns the first value that is not empty from a list of values.
func (*FirstFunction) Call ¶ added in v0.35.0
func (f *FirstFunction) Call( ctx context.Context, input *provider.FunctionCallInput, ) (*provider.FunctionCallOutput, error)
func (*FirstFunction) GetDefinition ¶ added in v0.35.0
func (f *FirstFunction) 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 HTTPResourceFunction ¶ added in v0.35.0
type HTTPResourceFunction struct {
// contains filtered or unexported fields
}
HTTPResourceFunction provides the implementation of a function that fetches data from public HTTP/HTTPS URLs.
func (*HTTPResourceFunction) Call ¶ added in v0.35.0
func (f *HTTPResourceFunction) Call( ctx context.Context, input *provider.FunctionCallInput, ) (*provider.FunctionCallOutput, error)
func (*HTTPResourceFunction) GetDefinition ¶ added in v0.35.0
func (f *HTTPResourceFunction) 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 IfFunction ¶ added in v0.35.0
type IfFunction struct {
// contains filtered or unexported fields
}
IfFunction provides the implementation of a function that provides conditional branching like the if-then-else construct in many programming languages.
func (*IfFunction) Call ¶ added in v0.35.0
func (f *IfFunction) Call( ctx context.Context, input *provider.FunctionCallInput, ) (*provider.FunctionCallOutput, error)
func (*IfFunction) GetDefinition ¶ added in v0.35.0
func (f *IfFunction) 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 LookupFunction ¶ added in v0.35.0
type LookupFunction struct {
// contains filtered or unexported fields
}
LookupFunction provides the implementation of a function that looks up a value in a mapping by key or an object by attribute name. This function will always require a default value to be passed in, `.` or `[]` accessors should be used to access values if a default value is not required.
func (*LookupFunction) Call ¶ added in v0.35.0
func (f *LookupFunction) Call( ctx context.Context, input *provider.FunctionCallInput, ) (*provider.FunctionCallOutput, error)
func (*LookupFunction) GetDefinition ¶ added in v0.35.0
func (f *LookupFunction) 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 MD5Function ¶ added in v0.35.0
type MD5Function struct {
// contains filtered or unexported fields
}
MD5Function provides the implementation of a function that computes the MD5 hash of input data.
func (*MD5Function) Call ¶ added in v0.35.0
func (f *MD5Function) Call( ctx context.Context, input *provider.FunctionCallInput, ) (*provider.FunctionCallOutput, error)
func (*MD5Function) GetDefinition ¶ added in v0.35.0
func (f *MD5Function) 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 MaxFunction ¶ added in v0.35.0
type MaxFunction struct {
// contains filtered or unexported fields
}
MaxFunction provides the implementation of a function that returns the maximum value from a list of numbers.
func (*MaxFunction) Call ¶ added in v0.35.0
func (f *MaxFunction) Call( ctx context.Context, input *provider.FunctionCallInput, ) (*provider.FunctionCallOutput, error)
func (*MaxFunction) GetDefinition ¶ added in v0.35.0
func (f *MaxFunction) GetDefinition( ctx context.Context, input *provider.FunctionGetDefinitionInput, ) (*provider.FunctionGetDefinitionOutput, error)
type MinFunction ¶ added in v0.35.0
type MinFunction struct {
// contains filtered or unexported fields
}
MinFunction provides the implementation of a function that returns the minimum value from a list of numbers.
func (*MinFunction) Call ¶ added in v0.35.0
func (f *MinFunction) Call( ctx context.Context, input *provider.FunctionCallInput, ) (*provider.FunctionCallOutput, error)
func (*MinFunction) GetDefinition ¶ added in v0.35.0
func (f *MinFunction) 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 SHA1Function ¶ added in v0.35.0
type SHA1Function struct {
// contains filtered or unexported fields
}
SHA1Function provides the implementation of a function that computes the SHA-1 hash of input data.
func (*SHA1Function) Call ¶ added in v0.35.0
func (f *SHA1Function) Call( ctx context.Context, input *provider.FunctionCallInput, ) (*provider.FunctionCallOutput, error)
func (*SHA1Function) GetDefinition ¶ added in v0.35.0
func (f *SHA1Function) GetDefinition( ctx context.Context, input *provider.FunctionGetDefinitionInput, ) (*provider.FunctionGetDefinitionOutput, error)
type SHA256Function ¶ added in v0.35.0
type SHA256Function struct {
// contains filtered or unexported fields
}
SHA256Function provides the implementation of a function that computes the SHA-256 hash of input data.
func (*SHA256Function) Call ¶ added in v0.35.0
func (f *SHA256Function) Call( ctx context.Context, input *provider.FunctionCallInput, ) (*provider.FunctionCallOutput, error)
func (*SHA256Function) GetDefinition ¶ added in v0.35.0
func (f *SHA256Function) 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 UTF8Function ¶ added in v0.35.0
type UTF8Function struct {
// contains filtered or unexported fields
}
UTF8Function provides the implementation of a function that converts binary data to UTF-8 encoded text.
func (*UTF8Function) Call ¶ added in v0.35.0
func (f *UTF8Function) Call( ctx context.Context, input *provider.FunctionCallInput, ) (*provider.FunctionCallOutput, error)
func (*UTF8Function) GetDefinition ¶ added in v0.35.0
func (f *UTF8Function) GetDefinition( ctx context.Context, input *provider.FunctionGetDefinitionInput, ) (*provider.FunctionGetDefinitionOutput, error)
type UUIDFunction ¶ added in v0.35.0
type UUIDFunction struct {
// contains filtered or unexported fields
}
UUIDFunction provides the implementation of a function that generates a version 4 UUID.
func (*UUIDFunction) Call ¶ added in v0.35.0
func (f *UUIDFunction) Call( ctx context.Context, input *provider.FunctionCallInput, ) (*provider.FunctionCallOutput, error)
func (*UUIDFunction) GetDefinition ¶ added in v0.35.0
func (f *UUIDFunction) 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
¶
- abs.go
- and.go
- base64decode.go
- base64encode.go
- cidrsubnet.go
- coalesce.go
- compose.go
- compose_exec_internal.go
- contains.go
- contains_g.go
- cwd.go
- datetime.go
- eq.go
- file.go
- filter.go
- first.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
- http_resource.go
- if.go
- index.go
- join.go
- jsondecode.go
- keys.go
- last_index.go
- le.go
- len.go
- link.go
- list.go
- lookup.go
- lt.go
- map.go
- max.go
- md5.go
- min.go
- not.go
- object.go
- or.go
- pipe.go
- pipe_exec_internal.go
- reduce.go
- replace.go
- replace_g.go
- sha1.go
- sha256.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
- utf8.go
- utils.go
- uuid.go
- vals.go