Documentation
¶
Index ¶
Constants ¶
View Source
const ( NAME = "Name" ARGUMENT = "Argument" ATTRIBUTE = "Attribute" OPTIONAL = "Optional" FORCENEW = "ForceNew" REQUIRED = "Required" TYPE = "Type" DESCRIPTION = "Description" PARAMS = "params" )
View Source
const ( DATA = "data" RESOURCE = "resource" )
source and data
View Source
const ( EMPTY = "nil" // accessKey and secretKey ACCESS_KEY = "ALICLOUD_ACCESS_KEY" SECRET_KEY = "ALICLOUD_SECRET_KEY" REGION = "ALICLOUD_REGION" DEFAULT_REGION = "cn-hangzhou" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Resource ¶
type SchemaMapping ¶
type SchemaMapping struct {
Type string `json:"type"` // like data and resource
Name string `json:"name"` // like cs_kubernetes, cs_managed_kubernetes
Version string `json:"version"` // like 1.173.0
Url string `json:"url"` // doc url from hashicorp
Fields []Field `json:"fields"` // schema
}
func NewSchemaMapping ¶
func NewSchemaMapping(version string, typ string, name string) *SchemaMapping
NewSchemaMapping get SchemaMapping name like kubernetes
func (*SchemaMapping) Format ¶
func (sm *SchemaMapping) Format() error
Click to show internal directories.
Click to hide internal directories.