Documentation ¶
Index ¶
- Constants
- Variables
- func ConvertJSONNetFileToYAML(file string, namespace string) (outFile string, err error)
- func CreateReleaseID(namespace string, name string) string
- func CreateResourceID(namespace string, object Object) string
- type Chart
- type FileSuffixes
- type KubernetesClientSource
- type List
- type LoadOptions
- type LoadResult
- type Object
- type ObjectMeta
- type Release
- type Resource
- type ScanResult
Constants ¶
View Source
const (
SubdirHelm = "_helm"
)
Variables ¶
View Source
var ( SuffixHelmValuesJSONNet = ".helm.jsonnet" SuffixesYAML = FileSuffixes{".yaml", ".yml"} SuffixesJSON = FileSuffixes{".json"} SuffixesJSONNet = FileSuffixes{".jsonnet"} SuffixesHelmValues = FileSuffixes{".helm.yaml", ".helm.yml", SuffixHelmValuesJSONNet} )
Functions ¶
func CreateReleaseID ¶
func CreateResourceID ¶
Types ¶
type FileSuffixes ¶
type FileSuffixes []string
func (FileSuffixes) Match ¶
func (fs FileSuffixes) Match(path string) bool
type KubernetesClientSource ¶
func ResolveKubernetesClient ¶
func ResolveKubernetesClient(optKubeconfig string) (source KubernetesClientSource, err error)
func (KubernetesClientSource) Build ¶
func (s KubernetesClientSource) Build() (client *kubernetes.Clientset, err error)
func (KubernetesClientSource) CleanUp ¶
func (s KubernetesClientSource) CleanUp()
type List ¶
type List struct { APIVersion string `json:"apiVersion"` Kind string `json:"kind"` Items []json.RawMessage `json:"items"` }
func NewList ¶
func NewList(items []json.RawMessage) *List
type LoadOptions ¶
type LoadResult ¶
func Load ¶
func Load(root string, namespace string, opts LoadOptions) (result LoadResult, err error)
type Object ¶
type Object struct { Metadata ObjectMeta `json:"metadata"` Kind string `json:"kind"` APIVersion string `json:"apiVersion"` }
type ObjectMeta ¶
type ScanResult ¶
func Scan ¶
func Scan(root string) (result ScanResult, err error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.