Documentation ¶
Index ¶
- func FormatCUEKey(keyID string, key gjson.Result) (string, error)
- func Main() int
- type Ratchet
- func (rt *Ratchet) ConvertType(attributeType gjson.Result)
- func (rt *Ratchet) EmitAttribute(attributeID string, attributeValue gjson.Result)
- func (rt *Ratchet) EmitBlockAttributes(attributes gjson.Result)
- func (rt *Ratchet) EmitDataSource(attributes gjson.Result)
- func (rt *Ratchet) EmitEntities()
- func (rt *Ratchet) EmitNestedAttribute(attributeID string, attributeValue gjson.Result)
- func (rt *Ratchet) EmitNestedAttributes(attributes gjson.Result)
- func (rt *Ratchet) EmitResource(attributes gjson.Result)
- func (rt *Ratchet) EmitSingleAttributes(attributes gjson.Result)
- func (rt *Ratchet) ProviderData(providerSchemaPath string) error
- func (rt *Ratchet) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatCUEKey ¶
FormatCUEKey returns the translated string from gjson.Result to CUE value or returns an error if the key is neither required nor optional.
Types ¶
type Ratchet ¶
type Ratchet struct { Debug io.Writer Output []string ProviderAddress string ProviderSchema string }
Ratchet stores the CLI runtime information
func (*Ratchet) ConvertType ¶
func (*Ratchet) EmitAttribute ¶
func (*Ratchet) EmitBlockAttributes ¶
func (*Ratchet) EmitDataSource ¶
func (*Ratchet) EmitEntities ¶
func (rt *Ratchet) EmitEntities()
EmitEntities generates and emits entities for data sources and resources based on the Ratchet's provider schema.
func (*Ratchet) EmitNestedAttribute ¶
func (*Ratchet) EmitNestedAttributes ¶
func (*Ratchet) EmitResource ¶
func (*Ratchet) EmitSingleAttributes ¶
func (*Ratchet) ProviderData ¶
ProviderData stores the data of the provider associated with the Ratchet instance as a slice of bytes.
Click to show internal directories.
Click to hide internal directories.