data

package
v0.0.0-...-0bbbb0e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 22, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CacheROMode = "RO"
	CacheRWMode = "RW"
)

Variables

This section is empty.

Functions

func Contains

func Contains(s []string, str string) bool

func Edit

func Edit(initialContent string, fileExt string) ([]byte, error)

func GetSchemas

func GetSchemas() (*map[string]map[string]map[string]CfnSchema, error)

func IsConfigurable

func IsConfigurable(input interface{}) bool

func IsUpdatable

func IsUpdatable(input interface{}) bool

func NewProp

func NewProp(name string, iface interface{}, schema CfnSchema, parent *property, depth int) property

func ParseSchemas

func ParseSchemas() (*map[string]CfnSchema, error)

func UpdateCache

func UpdateCache() error

Types

type Cache

type Cache struct {
	Mode string
	// contains filtered or unexported fields
}

func NewCache

func NewCache(mode string) (*Cache, error)

func (Cache) Get

func (c Cache) Get(key string) (*string, error)

func (Cache) GetList

func (c Cache) GetList(key string) (*[]string, error)

func (Cache) GetSchema

func (c Cache) GetSchema(key string) (*CfnSchema, error)

func (Cache) Put

func (c Cache) Put(cacheMap map[string]string) error

func (Cache) PutLists

func (c Cache) PutLists(cacheMap map[string][]string) error

func (Cache) PutSchemas

func (c Cache) PutSchemas(cacheMap map[string]CfnSchema) error

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 GetSchema

func GetSchema(typeName string) (*CfnSchema, error)

func (CfnSchema) IsConfigurable

func (s CfnSchema) IsConfigurable() bool

func (CfnSchema) IsUpdatable

func (s CfnSchema) IsUpdatable() bool

func (CfnSchema) ToJsonString

func (s CfnSchema) ToJsonString() (*string, error)

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"`
}

type YamlDoc

type YamlDoc []property

func (YamlDoc) Marshal

func (y YamlDoc) Marshal() []byte

func (YamlDoc) Sort

func (y YamlDoc) Sort()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL