configlocations

package
v2.3.7 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2023 License: Apache-2.0 Imports: 10 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Location

type Location struct {
	SourceFile  string
	StartLine   int
	StartColumn int
	EndLine     int
	EndColumn   int
}

func MissingLocation

func MissingLocation() *Location

type YAMLInfo

type YAMLInfo struct {
	RNode      *kyaml.RNode
	SourceFile string
}

type YAMLInfos

type YAMLInfos struct {
	FieldsOverrodeByProfile map[string]YAMLOverrideInfo // map of schema path -> profile name -- ex: /artifacts/0/image -> "overwrite-artifacte-image-profile"
	// contains filtered or unexported fields
}

func NewYAMLInfos

func NewYAMLInfos() *YAMLInfos

func Parse

func Parse(sourceFile string, config *latest.SkaffoldConfig, fieldsOverrodeByProfile map[string]YAMLOverrideInfo) (*YAMLInfos, error)

Parse parses a skaffold config entry collecting file location information for each schema config object

func (*YAMLInfos) GetYamlInfosCopy

func (m *YAMLInfos) GetYamlInfosCopy() map[uintptr]map[string]YAMLInfo

func (*YAMLInfos) Locate

func (m *YAMLInfos) Locate(obj interface{}) *Location

Locate gets the location for a skaffold schema struct pointer

func (*YAMLInfos) LocateByPointer

func (m *YAMLInfos) LocateByPointer(ptr uintptr) *Location

Locate gets the location for a skaffold schema struct pointer

func (*YAMLInfos) LocateElement

func (m *YAMLInfos) LocateElement(obj interface{}, idx int) *Location

Locate gets the location for a skaffold schema struct pointer

func (*YAMLInfos) LocateField

func (m *YAMLInfos) LocateField(obj interface{}, fieldName string) *Location

Locate gets the location for a skaffold schema struct pointer

type YAMLOverrideInfo

type YAMLOverrideInfo struct {
	ProfileName    string
	PatchIndex     int
	PatchOperation string
	PatchCopyFrom  string
}

Jump to

Keyboard shortcuts

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