Versions in this module Expand all Collapse all v0 v0.9.1 Dec 2, 2020 Changes in this version + const DefaultNamespace + const IgnoreDriftDetectionTrue + const KindConfigMap + const KindCronJob + const KindDaemonSet + const KindDeployment + const KindIngress + const KindJob + const KindPersistentVolume + const KindPersistentVolumeClaim + const KindPod + const KindReplicaSet + const KindSecret + const KindService + const KindServiceAccount + const KindStatefulSet + const LabelApplication + const LabelCommitHash + const LabelIgnoreDriftDirection + const LabelManagedBy + const LabelOriginalAPIVersion + const LabelPiped + const LabelResourceKey + const ManagedByPiped + var ErrNotFound = errors.New("not found") + func Diff(first, second Manifest, opts ...diff.Option) (*diff.Result, error) + func IsKubernetesBuiltInResource(apiVersion string) bool + func MakeKubernetesResourceState(uid string, key ResourceKey, obj *unstructured.Unstructured, now time.Time) model.KubernetesResourceState + type APIVersionKind struct + APIVersion string + Kind string + type AppManifestsCache struct + AppID string + Cache cache.Cache + Logger *zap.Logger + func (c AppManifestsCache) Get(commit string) ([]Manifest, bool) + func (c AppManifestsCache) Put(commit string, manifests []Manifest) + type Applier interface + Apply func(ctx context.Context) error + ApplyManifest func(ctx context.Context, manifest Manifest) error + Delete func(ctx context.Context, key ResourceKey) error + type Helm struct + func NewHelm(version, path string, logger *zap.Logger) *Helm + func (c *Helm) TemplateLocalChart(ctx context.Context, appName, appDir, chartPath string, ...) (string, error) + func (c *Helm) TemplateRemoteChart(ctx context.Context, appName, appDir string, chart helmRemoteChart, ...) (string, error) + func (c *Helm) TemplateRemoteGitChart(ctx context.Context, appName, appDir string, chart helmRemoteGitChart, ...) (string, error) + type Kubectl struct + func NewKubectl(version, path string) *Kubectl + func (c *Kubectl) Apply(ctx context.Context, namespace string, manifest Manifest) (err error) + func (c *Kubectl) Delete(ctx context.Context, namespace string, r ResourceKey) (err error) + type Kustomize struct + func NewKustomize(version, path string, logger *zap.Logger) *Kustomize + func (c *Kustomize) Template(ctx context.Context, appName, appDir string, opts map[string]string) (string, error) + type Manifest struct + Key ResourceKey + func LoadManifestsFromYAMLFile(path string) ([]Manifest, error) + func LoadPlainYAMLManifests(dir string, names []string, configFileName string) ([]Manifest, error) + func MakeManifest(key ResourceKey, u *unstructured.Unstructured) Manifest + func ParseFromStructuredObject(s interface{}) (Manifest, error) + func ParseManifests(data string) ([]Manifest, error) + func (m Manifest) AddAnnotations(annotations map[string]string) + func (m Manifest) AddStringMapValues(values map[string]string, fields ...string) error + func (m Manifest) ConvertToStructuredObject(o interface{}) error + func (m Manifest) Duplicate(name string) Manifest + func (m Manifest) GetAnnotations() map[string]string + func (m Manifest) GetNestedStringMap(fields ...string) (map[string]string, error) + func (m Manifest) GetSpec() (interface{}, error) + func (m Manifest) MarshalJSON() ([]byte, error) + func (m Manifest) SetStructuredSpec(spec interface{}) error + func (m Manifest) YamlBytes() ([]byte, error) + type ManifestLoader interface + LoadManifests func(ctx context.Context) ([]Manifest, error) + func NewManifestLoader(appName, appDir, repoDir, configFileName string, ...) ManifestLoader + type Provider interface + func NewProvider(appName, appDir, repoDir, configFileName string, ...) Provider + type ResourceKey struct + APIVersion string + Kind string + Name string + Namespace string + func DecodeResourceKey(key string) (ResourceKey, error) + func MakeResourceKey(obj *unstructured.Unstructured) ResourceKey + func (k ResourceKey) IsConfigMap() bool + func (k ResourceKey) IsDeployment() bool + func (k ResourceKey) IsEqualWithIgnoringNamespace(a ResourceKey) bool + func (k ResourceKey) IsLess(a ResourceKey) bool + func (k ResourceKey) IsLessWithIgnoringNamespace(a ResourceKey) bool + func (k ResourceKey) IsReplicaSet() bool + func (k ResourceKey) IsSecret() bool + func (k ResourceKey) IsService() bool + func (k ResourceKey) IsWorkload() bool + func (k ResourceKey) IsZero() bool + func (k ResourceKey) ReadableString() string + func (k ResourceKey) String() string + type TemplatingMethod string + const TemplatingMethodHelm + const TemplatingMethodKustomize + const TemplatingMethodNone