Documentation ¶
Index ¶
- func ConvertTFtoJSON(tfFilePath string) (string, error)
- func ConvertToJSON(i interface{}) interface{}
- func CueToYAML(value cue.Value) ([]byte, error)
- func ParseDockerfileInput(filename string, data interface{}) error
- func ProcessInput(input string) ([]byte, error)
- type DockerfileInstruction
- type InputInstruction
- type InputStage
- type InputYAML
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertTFtoJSON ¶ added in v0.1.0
ConvertTFtoJSON reads a Terraform file and converts it to JSON format.
func ConvertToJSON ¶ added in v0.1.0
func ConvertToJSON(i interface{}) interface{}
func ParseDockerfileInput ¶ added in v0.1.0
func ProcessInput ¶ added in v0.1.0
processData processes the input and returns JSON data.
Types ¶
type DockerfileInstruction ¶
func ParseDockerfileContent ¶
func ParseDockerfileContent(content string) []DockerfileInstruction
type InputInstruction ¶
type InputStage ¶
type InputStage struct { Instructions []InputInstruction `yaml:"instructions"` Stage int `yaml:"stage"` }
type InputYAML ¶
type InputYAML struct {
Dockerfile []InputStage `yaml:"dockerfile"`
}
func ParseYAMLContent ¶
Click to show internal directories.
Click to hide internal directories.