Documentation ¶
Overview ¶
Copyright 2021 The Skaffold Authors
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- type Location
- type YAMLInfo
- type YAMLInfos
- func (m *YAMLInfos) GetYamlInfosCopy() map[uintptr]map[string]YAMLInfo
- func (m *YAMLInfos) Locate(obj interface{}) *Location
- func (m *YAMLInfos) LocateByPointer(ptr uintptr) *Location
- func (m *YAMLInfos) LocateElement(obj interface{}, idx int) *Location
- func (m *YAMLInfos) LocateField(obj interface{}, fieldName string) *Location
- type YAMLOverrideInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Location ¶
func MissingLocation ¶
func MissingLocation() *Location
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 *latestV1.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 (*YAMLInfos) LocateByPointer ¶
Locate gets the location for a skaffold schema struct pointer
func (*YAMLInfos) LocateElement ¶
Locate gets the location for a skaffold schema struct pointer
func (*YAMLInfos) LocateField ¶
Locate gets the location for a skaffold schema struct pointer