Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Resource ¶
type Resource struct {
Group string `json:"group"`
Version string `json:"version"`
Kind string `json:"kind"`
Name string `json:"name"`
Namespace string `json:"namespace"`
Labels map[string]string `json:"-"`
Images []string `json:"-"`
}
Object a basic object for a Kubernetes object.
func ParseFromGit ¶
func ParseFromGit(path string, opts *git.CloneOptions) ([]*Resource, error)
ParseFromGit takes a go-git CloneOptions struct and a filepath, and extracts the service configuration from there.
type ResourceParser ¶
type ResourceParser func(path string, opts *git.CloneOptions) ([]*Resource, error)
ResourceParser implementations should fetch the source using the CloneOptions and parse the resources in the path into a set of resource.Resource values.
Click to show internal directories.
Click to hide internal directories.