Documentation ¶
Index ¶
- func GetAllConfigs(ctx context.Context, opts config.SkaffoldOptions) ([]schemaUtil.VersionedConfig, error)
- type SkaffoldConfigEntry
- type SkaffoldConfigSet
- func (s SkaffoldConfigSet) Locate(obj interface{}) *configlocations.Location
- func (s SkaffoldConfigSet) LocateElement(obj interface{}, idx int) *configlocations.Location
- func (s SkaffoldConfigSet) LocateField(obj interface{}, fieldName string) *configlocations.Location
- func (s SkaffoldConfigSet) SelectRootConfigs() SkaffoldConfigSet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAllConfigs ¶
func GetAllConfigs(ctx context.Context, opts config.SkaffoldOptions) ([]schemaUtil.VersionedConfig, error)
GetAllConfigs returns the list of all skaffold configurations parsed from the target config file in addition to all resolved dependency configs.
Types ¶
type SkaffoldConfigEntry ¶
type SkaffoldConfigEntry struct { *latest.SkaffoldConfig SourceFile string SourceIndex int IsRootConfig bool IsRemote bool YAMLInfos *configlocations.YAMLInfos }
SkaffoldConfigEntry encapsulates a single skaffold configuration, along with the source filename and its index in that file.
type SkaffoldConfigSet ¶
type SkaffoldConfigSet []*SkaffoldConfigEntry
SkaffoldConfigSet encapsulates a slice of skaffold configurations.
func GetConfigSet ¶
func GetConfigSet(ctx context.Context, opts config.SkaffoldOptions) (SkaffoldConfigSet, error)
GetConfigSet returns the list of all skaffold configurations parsed from the target config file in addition to all resolved dependency configs as a `SkaffoldConfigSet`. This struct additionally contains the file location that each skaffold configuration is parsed from.
func (SkaffoldConfigSet) Locate ¶
func (s SkaffoldConfigSet) Locate(obj interface{}) *configlocations.Location
Locate gets the location for a skaffold schema struct pointer
func (SkaffoldConfigSet) LocateElement ¶
func (s SkaffoldConfigSet) LocateElement(obj interface{}, idx int) *configlocations.Location
LocateElement gets the location for a skaffold element from a skaffold schema struct pointer and a slice/array index(int)
func (SkaffoldConfigSet) LocateField ¶
func (s SkaffoldConfigSet) LocateField(obj interface{}, fieldName string) *configlocations.Location
LocateField gets the location for a skaffold field from a skaffold schema struct pointer and a field name
func (SkaffoldConfigSet) SelectRootConfigs ¶
func (s SkaffoldConfigSet) SelectRootConfigs() SkaffoldConfigSet
SelectRootConfigs filters SkaffoldConfigSet to only configs read from the root skaffold.yaml file