Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllCustomFuncs ¶
AllCustomFuncs returns the set of template functions supported in this library
func IsVersionMismatch ¶
IsVersionMismatch flags if the error is a version mismatch error
func ToYaml ¶
func ToYaml(v interface{}) (yamlstr string)
ToYaml takes an interface, marshals it to yaml, and returns a string. It will always return a string, even on marshal error (empty string).
This is designed to be called from a template.
NOTE: Borrowed from a similar function in helm
https://github.com/kubernetes/helm/blob/master/pkg/chartutil/files.go
Types ¶
type JsonQuery ¶
type JsonQuery struct {
// contains filtered or unexported fields
}
JsonQuery contains parameters to describe a Query.
func NewJsonQuery ¶
NewJsonQuery takes json query operation name, json doc, json path and returns a struct of type JsonQuery.
type NotFoundError ¶
type NotFoundError struct {
ErrMsg string
}
NotFoundError represents an error due to a missing object
NOTE: This is meant to be used as a template function
func (*NotFoundError) Error ¶
func (e *NotFoundError) Error() string
type Query ¶
Query represents a templating interface which provides Execute method that is implemented by specific templating implementations
type QueryType ¶
type QueryType string
QueryType is a typed string to indicate the type of query to use to extract data from a taskresult
type VerifyError ¶
type VerifyError struct {
// contains filtered or unexported fields
}
VerifyError represents an error due to a failure in verification
NOTE: This is meant to be used as a template function
func (*VerifyError) Error ¶
func (e *VerifyError) Error() string
type VersionMismatchError ¶
type VersionMismatchError struct {
// contains filtered or unexported fields
}
VersionMismatchError represents an error due to version mismatch
func (*VersionMismatchError) Error ¶
func (e *VersionMismatchError) Error() string