Versions in this module Expand all Collapse all v0 v0.6.0 Jan 21, 2022 v0.5.0 Jan 21, 2022 Changes in this version + var ErrHandlerNotFound = errors.New("handler not found") + var ErrNotFound = errors.New("not found") + var ErrNotImplemented = errors.New("not implemented") + var Registry registry + func Apply(resources Resources) error + func ConfigureProviderRegistry(providers []Provider) + func Diff(resources Resources) error + func Export(exportDir string, resources Resources) error + func FindResourceFiles(resourcePath string) ([]string, error) + func Get(UID string) error + func List(resources Resources) error + func ListRemote(opts Opts) error + func Listen(UID, filename string) error + func MarshalYAML(resource Resource, filename string) error + func Preview(resources Resources, opts *PreviewOpts) error + func Pull(resourcePath string, opts Opts) error + func Show(resources Resources) error + func Watch(watchDir string, parser WatchParser) error + type APIErr struct + Body []byte + Err error + func (e APIErr) Error() string + type ExtendedImporter struct + func (i *ExtendedImporter) Import(importedFrom, importedPath string) (contents jsonnet.Contents, foundAt string, err error) + type Handler interface + APIVersion func() string + Add func(resource Resource) error + FindResourceFiles func(dir string) ([]string, error) + GetByUID func(UID string) (*Resource, error) + GetExtension func() string + GetRemote func(resource Resource) (*Resource, error) + GetUID func(resource Resource) (string, error) + Kind func() string + ListRemote func() ([]string, error) + Parse func(m manifest.Manifest) (Resources, error) + Prepare func(existing, resource Resource) *Resource + ResourceFilePath func(resource Resource, filetype string) string + Unprepare func(resource Resource) *Resource + Update func(existing, resource Resource) error + Validate func(resource Resource) error + type ListenHandler interface + Listen func(UID, filename string) error + type LoggingOpts struct + LogLevel string + type Opts struct + Directory bool + JsonnetPaths []string + Targets []string + type PreviewHandler interface + Preview func(resource Resource, opts *PreviewOpts) error + type PreviewOpts struct + ExpiresSeconds int + type Provider interface + APIVersion func() string + GetHandlers func() []Handler + Group func() string + Version func() string + type Resource map[string]interface + func (r *Resource) APIVersion() string + func (r *Resource) DeleteSpecKey(key string) + func (r *Resource) GetMetadata(key string) string + func (r *Resource) GetSpecString(key string) (string, bool) + func (r *Resource) GetSpecValue(key string) interface{} + func (r *Resource) HasMetadata(key string) bool + func (r *Resource) Key() string + func (r *Resource) Kind() string + func (r *Resource) MatchesTarget(targets []string) bool + func (r *Resource) Name() string + func (r *Resource) SetMetadata(key, value string) + func (r *Resource) SetSpecString(key, value string) + func (r *Resource) SetSpecValue(key string, value interface{}) + func (r *Resource) Spec() map[string]interface{} + func (r *Resource) SpecAsJSON() (string, error) + func (r *Resource) YAML() (string, error) + func (r Resource) String() string + func (r Resource) UID() string + func NewResource(apiVersion, kind, name string, spec map[string]interface{}) Resource + type Resources []Resource + func Parse(resourcePath string, opts Opts) (Resources, error) + func ParseFile(opts Opts, resourceFile string) (Resources, error) + func ParseJsonnet(jsonnetFile string, opts Opts) (Resources, error) + func ParseYAML(yamlFile string, opts Opts) (Resources, error) + func (r Resources) Len() int + func (r Resources) Less(i, j int) bool + func (r Resources) Swap(i, j int) + type WatchParser interface + Name func() string + Parse func() (Resources, error)