Documentation
¶
Index ¶
- func GetParentType(resourceType string) string
- func LastSegment(input string) string
- func NormalizeObject(input interface{}) interface{}
- func ParseResourceJson(content string) (*hclwrite.Block, error)
- type ARMTemplateModel
- type ARMTemplateParameterModel
- type AztfAuthorizeCommand
- type AztfMigrateCommand
- type CommandArgs
- type CommandHandler
- type Context
- type ConvertJsonCommand
- type ConvertJsonResponse
- type TelemetryCommand
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetParentType ¶ added in v0.5.0
func LastSegment ¶ added in v0.5.0
func NormalizeObject ¶ added in v0.5.0
func NormalizeObject(input interface{}) interface{}
Types ¶
type ARMTemplateModel ¶ added in v0.5.0
type ARMTemplateModel struct {
Schema string `json:"$schema"`
ContentVersion string `json:"contentVersion"`
Parameters map[string]ARMTemplateParameterModel `json:"parameters"`
Variables interface{} `json:"variables"`
Resources []map[string]interface{} `json:"resources"`
}
type ARMTemplateParameterModel ¶ added in v0.5.0
type AztfAuthorizeCommand ¶
type AztfAuthorizeCommand struct{}
func (AztfAuthorizeCommand) Handle ¶
func (c AztfAuthorizeCommand) Handle(ctx context.Context, arguments []json.RawMessage) (interface{}, error)
type AztfMigrateCommand ¶ added in v0.5.0
type AztfMigrateCommand struct{}
func (AztfMigrateCommand) Handle ¶ added in v0.5.0
func (c AztfMigrateCommand) Handle(ctx context.Context, arguments []json.RawMessage) (interface{}, error)
type CommandArgs ¶
type CommandArgs map[string]interface{}
func ParseCommandArgs ¶
func ParseCommandArgs(arguments []json.RawMessage) CommandArgs
type CommandHandler ¶
type CommandHandler interface {
Handle(ctx context.Context, params []json.RawMessage) (interface{}, error)
}
type Context ¶ added in v0.5.0
func NewContext ¶ added in v0.5.0
func NewContext() *Context
func (*Context) AppendBlock ¶ added in v0.5.0
type ConvertJsonCommand ¶ added in v0.5.0
type ConvertJsonCommand struct{}
func (ConvertJsonCommand) Handle ¶ added in v0.5.0
func (c ConvertJsonCommand) Handle(ctx context.Context, arguments []json.RawMessage) (interface{}, error)
type ConvertJsonResponse ¶ added in v0.5.0
type ConvertJsonResponse struct {
HCLContent string `json:"hclcontent"`
}
type TelemetryCommand ¶
type TelemetryCommand struct{}
func (TelemetryCommand) Handle ¶
func (t TelemetryCommand) Handle(ctx context.Context, arguments []json.RawMessage) (interface{}, error)
Click to show internal directories.
Click to hide internal directories.