Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Identifiers = map[string]struct{}{
"always": {},
"never": {},
"aes128": {},
"aes192": {},
"aes256": {},
"cbc": {},
"ctr": {},
"pkcs7": {},
"nopad": {},
"default": {},
"sha256": {},
"sha384": {},
"sha512": {},
"standard": {},
"url": {},
"url_nopad": {},
"req": {},
"bereq": {},
"obj": {},
"beresp": {},
"resp": {},
}
Fastly predefined identifier list. we listed as possible as found in Fastly document site, but perhaps there are more builtin identifiers.
Functions ¶
This section is empty.
Types ¶
type CoreTransformer ¶
func NewCoreTransfromer ¶
func NewCoreTransfromer(opts ...TransformOption) *CoreTransformer
func (*CoreTransformer) TemplateVariables ¶
func (tf *CoreTransformer) TemplateVariables() map[string]any
type CoreVariable ¶
type CoreVariable struct {
*v.VariablesImpl
}
func NewCoreVariables ¶
func NewCoreVariables() *CoreVariable
func (*CoreVariable) Get ¶
func (cv *CoreVariable) Get(name string) (*value.Value, error)
nolint:funlen,gocyclo
type ErrTransform ¶
type ErrTransform struct {
// contains filtered or unexported fields
}
func TransformError ¶
func TransformError(t *token.Token, format string, args ...any) *ErrTransform
func (*ErrTransform) Error ¶
func (e *ErrTransform) Error() string
type RegexMatchedGroup ¶
type RegexMatchedGroup struct {
// contains filtered or unexported fields
}
func (*RegexMatchedGroup) Last ¶
func (r *RegexMatchedGroup) Last() string
func (*RegexMatchedGroup) Pop ¶
func (r *RegexMatchedGroup) Pop()
func (*RegexMatchedGroup) Push ¶
func (r *RegexMatchedGroup) Push(v string)
type TransformOption ¶
type TransformOption func(t *CoreTransformer)
func WithFastlyPlatform ¶
func WithFastlyPlatform() TransformOption
func WithOutputPackage ¶
func WithOutputPackage(v string) TransformOption
func WithRuntimeName ¶
func WithRuntimeName(v string) TransformOption
func WithSnippets ¶
func WithSnippets(snip *snippets.Snippets) TransformOption
func WithVariables ¶
func WithVariables(v variable.Variables) TransformOption
Click to show internal directories.
Click to hide internal directories.