Documentation ¶
Index ¶
- Constants
- func Contains(s []string, str string) bool
- func Edit(initialContent string, fileExt string) ([]byte, error)
- func GetSchemas() (*map[string]map[string]map[string]CfnSchema, error)
- func IsConfigurable(input interface{}) bool
- func IsUpdatable(input interface{}) bool
- func NewProp(name string, iface interface{}, schema CfnSchema, parent *property, depth int) property
- func ParseSchemas() (*map[string]CfnSchema, error)
- func UpdateCache() error
- type Cache
- func (c Cache) Get(key string) (*string, error)
- func (c Cache) GetList(key string) (*[]string, error)
- func (c Cache) GetSchema(key string) (*CfnSchema, error)
- func (c Cache) Put(cacheMap map[string]string) error
- func (c Cache) PutLists(cacheMap map[string][]string) error
- func (c Cache) PutSchemas(cacheMap map[string]CfnSchema) error
- type CfnSchema
- type CfnSchemaHandlers
- type CfnSchemaHandlersPermissions
- type YamlDoc
Constants ¶
View Source
const ( CacheROMode = "RO" CacheRWMode = "RW" )
Variables ¶
This section is empty.
Functions ¶
func IsConfigurable ¶
func IsConfigurable(input interface{}) bool
func IsUpdatable ¶
func IsUpdatable(input interface{}) bool
func ParseSchemas ¶
func UpdateCache ¶
func UpdateCache() error
Types ¶
type CfnSchema ¶
type CfnSchema struct { TypeName string `json:"typeName"` Description string `json:"description"` SourceUrl string `json:"sourceUrl"` DocumentationUrl string `json:"documentationUrl"` Definitions map[string]interface{} `json:"definitions"` Properties map[string]interface{} `json:"properties"` Required []string `json:"required"` ReadOnlyProperties []string `json:"readOnlyProperties"` WriteOnlyProperties []string `json:"writeOnlyProperties"` CreateOnlyProperties []string `json:"createOnlyProperties"` DeprecatedProperties []string `json:"deprecatedProperties"` PrimaryIdentifier []string `json:"primaryIdentifier"` AdditionalIdentifiers [][]string `json:"additionalIdentifiers"` Handlers CfnSchemaHandlers `json:"handlers"` TypeConfiguration map[string]interface{} `json:"typeConfiguration"` }
func (CfnSchema) IsConfigurable ¶
func (CfnSchema) IsUpdatable ¶
func (CfnSchema) ToJsonString ¶
type CfnSchemaHandlers ¶
type CfnSchemaHandlers struct { Create CfnSchemaHandlersPermissions `json:"create"` Read CfnSchemaHandlersPermissions `json:"read"` Update CfnSchemaHandlersPermissions `json:"update"` Delete CfnSchemaHandlersPermissions `json:"delete"` List CfnSchemaHandlersPermissions `json:"list"` }
type CfnSchemaHandlersPermissions ¶
type CfnSchemaHandlersPermissions struct {
Permissions []string `json:"permissions"`
}
Click to show internal directories.
Click to hide internal directories.