parser

package
v0.0.0-...-b5b2af5 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewParser

func NewParser(iacFile api.IAC) parseHandle

Types

type DockerFileInput

type DockerFileInput struct {
	Cmd       string
	SubCmd    string
	Flags     []string
	Value     []string
	Original  string
	JSON      bool
	Stage     int
	Path      string
	StartLine int
	EndLine   int
}

DockerFileInput is the struct for each dockerfile command The input must be the most atomic part of the file

type KubernetesInput

type KubernetesInput struct {
	ApiVersion      string            `yaml:"apiVersion" json:"apiVersion"`
	Path            string            `yaml:"path" json:"Path"`
	Kind            string            `yaml:"kind" json:"kind"`
	Meta            interface{}       `yaml:"metadata" json:"metadata"`
	Spec            interface{}       `yaml:"spec" json:"spec"`
	RoleRef         interface{}       `yaml:"roleRef" json:"roleRef"`
	Status          interface{}       `yaml:"status" json:"status"`
	Subjects        interface{}       `yaml:"subjects" json:"subjects"`
	Authentication  interface{}       `yaml:"authentication" json:"authentication"`
	Authorization   interface{}       `yaml:"authorization" json:"authorization"`
	Template        interface{}       `yaml:"template" json:"template"`
	Containers      interface{}       `yaml:"containers" json:"containers"`
	Args            interface{}       `yaml:"args" json:"args"`
	Command         interface{}       `yaml:"command" json:"command"`
	SecurityContext interface{}       `yaml:"securityContext" json:"securityContext"`
	Privileged      interface{}       `yaml:"privileged" json:"privileged"`
	Capabilities    interface{}       `yaml:"capabilities" json:"capabilities"`
	Add             interface{}       `yaml:"add" json:"add"`
	Volumes         interface{}       `yaml:"volumes" json:"volumes"`
	HostPath        interface{}       `yaml:"hostPath" json:"hostPath"`
	HostPID         bool              `yaml:"hostPID" json:"hostPID"`
	Data            map[string]string `yaml:"data" json:"data"`
}

Jump to

Keyboard shortcuts

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