Documentation ¶
Index ¶
- Constants
- Variables
- type Annotation
- type AnnotationAction
- type Annotations
- func (instance Annotations) GetApplyOnFor(v *unstructured.Unstructured) (ApplyOn, error)
- func (instance Annotations) GetCleanupOn(v *unstructured.Unstructured) (CleanupOn, error)
- func (instance Annotations) GetDryRunOnFor(v *unstructured.Unstructured, def DryRunOn) (DryRunOn, error)
- func (instance Annotations) GetStageFor(v *unstructured.Unstructured) (Stage, error)
- func (instance Annotations) GetTransformation(v *unstructured.Unstructured, name TransformationName) (result Transformation, err error)
- func (instance Annotations) GetWaitUntilFor(v *unstructured.Unstructured) (WaitUntil, error)
- type ApplyOn
- type Claim
- type CleanupOn
- func (instance CleanupOn) MarshalText() (text []byte, err error)
- func (instance CleanupOn) OnDelete() bool
- func (instance CleanupOn) OnExecuted() bool
- func (instance CleanupOn) OnOrphaned() bool
- func (instance *CleanupOn) Set(plain string) error
- func (instance CleanupOn) String() string
- func (instance *CleanupOn) UnmarshalText(text []byte) error
- type ConditionalValues
- type ContentProvider
- type DryRun
- type DryRunOn
- type GroupVersionKind
- func (instance GroupVersionKind) Bare() schema.GroupVersionKind
- func (instance GroupVersionKind) GroupKind() schema.GroupKind
- func (instance GroupVersionKind) GroupVersion() schema.GroupVersion
- func (instance GroupVersionKind) GuessToResource() (plural, singular schema.GroupVersionResource)
- func (instance GroupVersionKind) Normalize() GroupVersionKind
- func (instance GroupVersionKind) String() string
- type GroupVersionKindRegistry
- func (instance *GroupVersionKindRegistry) AreTwins(left, right GroupVersionKind) bool
- func (instance *GroupVersionKindRegistry) AsGroupVersionKinds() (result GroupVersionKinds)
- func (instance *GroupVersionKindRegistry) GetTwins(of GroupVersionKind) (result GroupVersionKinds)
- func (instance *GroupVersionKindRegistry) With(twins GroupVersionKinds) *GroupVersionKindRegistry
- type GroupVersionKinds
- func (instance GroupVersionKinds) Contains(v GroupVersionKind) bool
- func (instance GroupVersionKinds) MarshalJSON() ([]byte, error)
- func (instance GroupVersionKinds) MarshalYAML() (interface{}, error)
- func (instance GroupVersionKinds) String() string
- func (instance GroupVersionKinds) Strings() []string
- func (instance *GroupVersionKinds) UnmarshalJSON(b []byte) error
- func (instance *GroupVersionKinds) UnmarshalYAML(unmarshal func(interface{}) error) error
- type GroupVersionKindsBuilder
- type Label
- type LabelAction
- type LabelValue
- type Labels
- type MetaName
- type Name
- type Namespace
- type Namespaces
- type ObjectHandler
- type ObjectReference
- type OnObject
- type Project
- func (instance Project) GetTransformation(v *unstructured.Unstructured, name TransformationName) (result Transformation, err error)
- func (instance Project) RenderedTemplateFile(file string, writer io.Writer) error
- func (instance Project) RenderedTemplatesProvider() (ContentProvider, error)
- func (instance *Project) Save() error
- func (instance Project) Validate() error
- type ProjectFactory
- type SchemaValidationNamespaced
- type Scheme
- type Stage
- type StageRange
- func (instance StageRange) IsRelevant() bool
- func (instance StageRange) MarshalText() (text []byte, err error)
- func (instance StageRange) Matches(stages Stages, stage Stage) bool
- func (instance *StageRange) Set(plain string) error
- func (instance StageRange) String() string
- func (instance *StageRange) UnmarshalText(text []byte) error
- type Stages
- type StreamTarget
- type Templating
- type Transformation
- type TransformationName
- type Transformations
- type Values
- type WaitUntil
- func (instance WaitUntil) AsLazyFormatter(template string) *WaitUntilLazyFormatter
- func (instance WaitUntil) CopyWithTimeout(timeout *time.Duration) WaitUntil
- func (instance WaitUntil) MarshalText() (text []byte, err error)
- func (instance WaitUntil) MergeWith(child WaitUntil) (result WaitUntil)
- func (instance *WaitUntil) Set(plain string) error
- func (instance WaitUntil) ShouldInherit() bool
- func (instance WaitUntil) String() string
- func (instance *WaitUntil) UnmarshalText(text []byte) error
- type WaitUntilLazyFormatter
- type WaitUntilStage
Constants ¶
View Source
const ( AnnotationActionDrop = AnnotationAction(0) AnnotationActionLeave = AnnotationAction(1) )
View Source
const ( AnnotationStage = "kubor.echocat.org/stage" AnnotationApplyOn = "kubor.echocat.org/apply-on" AnnotationDryRunOn = "kubor.echocat.org/dry-run-on" AnnotationWaitUntil = "kubor.echocat.org/wait-until" AnnotationCleanupOn = "kubor.echocat.org/cleanup-on" AnnotationTransformationPrefix = "transformation.kubor.echocat.org/" )
View Source
const ( ApplyOnAlways = ApplyOn("always") ApplyOnCreate = ApplyOn("create") ApplyOnUpdate = ApplyOn("update") ApplyOnNever = ApplyOn("never") )
View Source
const ( CleanupOnAutomatic = CleanupOn(0) CleanupOnNever = CleanupOn(1) CleanupOnOrphaned = CleanupOn(2) CleanupOnExecuted = CleanupOn(3) CleanupOnDelete = CleanupOn(4) )
View Source
const ( DryRunBefore = DryRun(0) DryRunOnly = DryRun(1) DryRunNever = DryRun(2) )
View Source
const ( DryRunNowhere = DryRunOn("nowhere") DryRunOnClient = DryRunOn("client") DryRunOnServer = DryRunOn("server") DryRunOnServerIfPossible = DryRunOn("serverIfPossible") )
View Source
const ( LabelActionSetIfAbsent = LabelAction(0) LabelActionSet = LabelAction(1) LabelActionSetIfExists = LabelAction(2) LabelActionLeave = LabelAction(3) LabelActionDrop = LabelAction(4) )
View Source
const ( LabelGroupId = "kubor.echocat.org/group-id" LabelArtifactId = "kubor.echocat.org/artifact-id" LabelRelease = "kubor.echocat.org/release" )
View Source
const ( StreamTargetStdout = StreamTarget("stdout") StreamTargetStderr = StreamTarget("stderr") )
View Source
const ( WaitUntilStageDefault = WaitUntilStage(0) WaitUntilStageNever = WaitUntilStage(1) WaitUntilStageApplied = WaitUntilStage(2) WaitUntilStageExecuted = WaitUntilStage(3) )
View Source
const (
StageDefault = Stage("deploy")
)
Variables ¶
View Source
var ( ErrIllegalStage = errors.New("illegal stage") ErrIllegalStageRange = errors.New("illegal stage-range") )
View Source
var ( ErrIllegalWaitUntil = errors.New("illegal wait-until") ErrIllegalWaitUntilStage = errors.New("illegal wait-until-stage") WaitUntilDefault = WaitUntil{ Stage: WaitUntilStageDefault, } )
View Source
var (
DefaultClaimedGroupVersionKinds = DefaultGroupVersionKindRegistry.AsGroupVersionKinds()
)
View Source
var DefaultGroupVersionKindRegistry = (&GroupVersionKindRegistry{}). With(BuildGroupVersionKinds(rbacv1.SchemeGroupVersion, &rbacv1.Role{}).Build()). With(BuildGroupVersionKinds(rbacv1.SchemeGroupVersion, &rbacv1.RoleBinding{}).Build()). With(BuildGroupVersionKinds(rbacv1.SchemeGroupVersion, &rbacv1.ClusterRole{}).Build()). With(BuildGroupVersionKinds(rbacv1.SchemeGroupVersion, &rbacv1.ClusterRoleBinding{}).Build()). With(BuildGroupVersionKinds(v1.SchemeGroupVersion, &v1.Namespace{}).Build()). With(BuildGroupVersionKinds(v1.SchemeGroupVersion, &v1.Service{}).Build()). With(BuildGroupVersionKinds(v1.SchemeGroupVersion, &v1.Secret{}).Build()). With(BuildGroupVersionKinds(v1.SchemeGroupVersion, &v1.ServiceAccount{}).Build()). With(BuildGroupVersionKinds(v1.SchemeGroupVersion, &v1.Pod{}).Build()). With(BuildGroupVersionKinds(v1.SchemeGroupVersion, &v1.PersistentVolume{}).Build()). With(BuildGroupVersionKinds(v1.SchemeGroupVersion, &v1.PersistentVolumeClaim{}).Build()). With(BuildGroupVersionKinds(v1.SchemeGroupVersion, &v1.ConfigMap{}).Build()). With(BuildGroupVersionKinds(appsv1.SchemeGroupVersion, &appsv1.Deployment{}). With(appsv1beta1.SchemeGroupVersion, &appsv1beta1.Deployment{}). With(appsv1beta2.SchemeGroupVersion, &appsv1beta2.Deployment{}). With(extensionsv1beta1.SchemeGroupVersion, &extensionsv1beta1.Deployment{}). Build()). With(BuildGroupVersionKinds(appsv1.SchemeGroupVersion, &appsv1.StatefulSet{}). With(appsv1beta1.SchemeGroupVersion, &appsv1beta1.StatefulSet{}). With(appsv1beta2.SchemeGroupVersion, &appsv1beta2.StatefulSet{}). Build()). With(BuildGroupVersionKinds(appsv1.SchemeGroupVersion, &appsv1.DaemonSet{}). With(appsv1beta2.SchemeGroupVersion, &appsv1beta2.DaemonSet{}). With(extensionsv1beta1.SchemeGroupVersion, &extensionsv1beta1.DaemonSet{}). Build()). With(BuildGroupVersionKinds(appsv1.SchemeGroupVersion, &appsv1.ReplicaSet{}). With(appsv1beta2.SchemeGroupVersion, &appsv1beta2.ReplicaSet{}). With(extensionsv1beta1.SchemeGroupVersion, &extensionsv1beta1.ReplicaSet{}). Build()). With(BuildGroupVersionKinds(apiextensionsv1.SchemeGroupVersion, &apiextensionsv1.CustomResourceDefinition{}). With(apiextensions.SchemeGroupVersion, &apiextensions.CustomResourceDefinition{}). With(apiextensionsv1beta1.SchemeGroupVersion, &apiextensionsv1beta1.CustomResourceDefinition{}). Build()). With(BuildGroupVersionKinds(networkingv1.SchemeGroupVersion, &networkingv1.NetworkPolicy{}). With(extensionsv1beta1.SchemeGroupVersion, &extensionsv1beta1.NetworkPolicy{}). Build()). With(BuildGroupVersionKinds(networkingv1beta1.SchemeGroupVersion, &networkingv1beta1.Ingress{}). With(extensionsv1beta1.SchemeGroupVersion, &extensionsv1beta1.Ingress{}). Build()). With(BuildGroupVersionKinds(batchv1.SchemeGroupVersion, &batchv1.Job{}).Build()). With(BuildGroupVersionKinds(batchv1beta1.SchemeGroupVersion, &batchv1beta1.CronJob{}). With(batchv1beta1.SchemeGroupVersion, &batchv1beta1.CronJob{}). Build())
View Source
var (
ErrIllegalAnnotationAction = errors.New("illegal annotation-action")
)
View Source
var (
ErrIllegalApplyOn = errors.New("illegal apply-on")
)
View Source
var (
ErrIllegalCleanupOn = errors.New("illegal cleanup-on")
)
View Source
var (
ErrIllegalDryRun = errors.New("illegal dry-Run")
)
View Source
var (
ErrIllegalDryRunOn = errors.New("illegal dryRunOn")
)
View Source
var (
ErrIllegalLabelAction = errors.New("illegal label-action")
)
View Source
var (
ErrIllegalLabelValue = errors.New("illegal label-value")
)
View Source
var (
ErrIllegalMetaName = errors.New("illegal meta-name")
)
View Source
var (
ErrIllegalName = errors.New("illegal name")
)
View Source
var (
ErrIllegalNamespace = errors.New("illegal namespace")
)
View Source
var (
ErrIllegalTransformationName = errors.New("illegal transformation name")
)
Functions ¶
This section is empty.
Types ¶
type Annotation ¶ added in v0.6.0
type Annotation struct { Name MetaName `yaml:"name" json:"name"` Action AnnotationAction `yaml:"action" json:"action"` }
type AnnotationAction ¶ added in v0.6.0
type AnnotationAction uint8
func (AnnotationAction) MarshalText ¶ added in v0.6.0
func (instance AnnotationAction) MarshalText() (text []byte, err error)
func (*AnnotationAction) Set ¶ added in v0.6.0
func (instance *AnnotationAction) Set(plain string) error
func (AnnotationAction) String ¶ added in v0.6.0
func (instance AnnotationAction) String() string
func (*AnnotationAction) UnmarshalText ¶ added in v0.6.0
func (instance *AnnotationAction) UnmarshalText(text []byte) error
type Annotations ¶ added in v0.6.0
type Annotations struct { Stage Annotation `yaml:"stage,omitempty" json:"stage,omitempty"` ApplyOn Annotation `yaml:"applyOn,omitempty" json:"applyOn,omitempty"` DryRunOn Annotation `yaml:"dryRunOn,omitempty" json:"dryRunOn,omitempty"` WaitUntil Annotation `yaml:"waitUntil,omitempty" json:"waitUntil,omitempty"` CleanupOn Annotation `yaml:"cleanupOn,omitempty" json:"cleanupOn,omitempty"` Transformations Annotation `yaml:"transformations,omitempty" json:"transformations,omitempty"` }
func NewAnnotations ¶ added in v0.7.0
func NewAnnotations() Annotations
func (Annotations) GetApplyOnFor ¶ added in v0.6.0
func (instance Annotations) GetApplyOnFor(v *unstructured.Unstructured) (ApplyOn, error)
func (Annotations) GetCleanupOn ¶ added in v0.6.0
func (instance Annotations) GetCleanupOn(v *unstructured.Unstructured) (CleanupOn, error)
func (Annotations) GetDryRunOnFor ¶ added in v0.6.0
func (instance Annotations) GetDryRunOnFor(v *unstructured.Unstructured, def DryRunOn) (DryRunOn, error)
func (Annotations) GetStageFor ¶ added in v0.6.0
func (instance Annotations) GetStageFor(v *unstructured.Unstructured) (Stage, error)
func (Annotations) GetTransformation ¶ added in v0.8.0
func (instance Annotations) GetTransformation(v *unstructured.Unstructured, name TransformationName) (result Transformation, err error)
func (Annotations) GetWaitUntilFor ¶ added in v0.6.0
func (instance Annotations) GetWaitUntilFor(v *unstructured.Unstructured) (WaitUntil, error)
type ApplyOn ¶ added in v0.6.0
type ApplyOn string
func (ApplyOn) MarshalText ¶ added in v0.6.0
func (*ApplyOn) UnmarshalText ¶ added in v0.6.0
type Claim ¶ added in v0.6.0
type Claim struct { GroupVersionKinds GroupVersionKinds `yaml:"gvks,omitempty" json:"gvks,omitempty"` SourceNamespaces []string `yaml:"namespaces,omitempty" json:"namespaces,omitempty"` // Values set using implicitly. Namespaces Namespaces `yaml:"-" json:"-"` }
func (Claim) Validate ¶ added in v0.6.0
func (instance Claim) Validate(reference ObjectReference) error
type CleanupOn ¶ added in v0.6.0
type CleanupOn uint8
func (CleanupOn) MarshalText ¶ added in v0.6.0
func (CleanupOn) OnExecuted ¶ added in v0.6.0
func (CleanupOn) OnOrphaned ¶ added in v0.6.0
func (*CleanupOn) UnmarshalText ¶ added in v0.6.0
type ConditionalValues ¶
type ConditionalValues struct { On common.EvaluatingPredicate `yaml:"on,omitempty" json:"on,omitempty"` Values Values `yaml:",inline" json:",inline"` }
func NewConditionalValuesSlice ¶ added in v0.7.0
func NewConditionalValuesSlice() []ConditionalValues
type ContentProvider ¶
ContentProvider provides the next resource and returns an error of io.EOF if no more element is available.
type DryRun ¶ added in v0.6.0
type DryRun uint8
func (DryRun) IsApplyAllowed ¶ added in v0.6.0
func (DryRun) IsDryRunAllowed ¶ added in v0.6.0
func (DryRun) MarshalText ¶ added in v0.6.0
func (*DryRun) UnmarshalText ¶ added in v0.6.0
type DryRunOn ¶ added in v0.6.0
type DryRunOn string
func (DryRunOn) MarshalText ¶ added in v0.6.0
func (*DryRunOn) UnmarshalText ¶ added in v0.6.0
type GroupVersionKind ¶ added in v0.5.0
type GroupVersionKind schema.GroupVersionKind
func (GroupVersionKind) Bare ¶ added in v0.6.0
func (instance GroupVersionKind) Bare() schema.GroupVersionKind
func (GroupVersionKind) GroupKind ¶ added in v0.6.0
func (instance GroupVersionKind) GroupKind() schema.GroupKind
func (GroupVersionKind) GroupVersion ¶ added in v0.6.0
func (instance GroupVersionKind) GroupVersion() schema.GroupVersion
func (GroupVersionKind) GuessToResource ¶ added in v0.6.0
func (instance GroupVersionKind) GuessToResource() (plural, singular schema.GroupVersionResource)
func (GroupVersionKind) Normalize ¶ added in v0.6.0
func (instance GroupVersionKind) Normalize() GroupVersionKind
func (GroupVersionKind) String ¶ added in v0.6.0
func (instance GroupVersionKind) String() string
type GroupVersionKindRegistry ¶ added in v0.6.0
type GroupVersionKindRegistry struct {
// contains filtered or unexported fields
}
func (*GroupVersionKindRegistry) AreTwins ¶ added in v0.6.0
func (instance *GroupVersionKindRegistry) AreTwins(left, right GroupVersionKind) bool
func (*GroupVersionKindRegistry) AsGroupVersionKinds ¶ added in v0.6.0
func (instance *GroupVersionKindRegistry) AsGroupVersionKinds() (result GroupVersionKinds)
func (*GroupVersionKindRegistry) GetTwins ¶ added in v0.6.0
func (instance *GroupVersionKindRegistry) GetTwins(of GroupVersionKind) (result GroupVersionKinds)
func (*GroupVersionKindRegistry) With ¶ added in v0.6.0
func (instance *GroupVersionKindRegistry) With(twins GroupVersionKinds) *GroupVersionKindRegistry
type GroupVersionKinds ¶ added in v0.6.0
type GroupVersionKinds map[GroupVersionKind]bool
func MapToGroupVersionKinds ¶ added in v0.6.0
func MapToGroupVersionKinds(in map[schema.GroupVersionKind]reflect.Type) GroupVersionKinds
func (GroupVersionKinds) Contains ¶ added in v0.6.0
func (instance GroupVersionKinds) Contains(v GroupVersionKind) bool
func (GroupVersionKinds) MarshalJSON ¶ added in v0.6.0
func (instance GroupVersionKinds) MarshalJSON() ([]byte, error)
func (GroupVersionKinds) MarshalYAML ¶ added in v0.6.0
func (instance GroupVersionKinds) MarshalYAML() (interface{}, error)
func (GroupVersionKinds) String ¶ added in v0.6.0
func (instance GroupVersionKinds) String() string
func (GroupVersionKinds) Strings ¶ added in v0.6.0
func (instance GroupVersionKinds) Strings() []string
func (*GroupVersionKinds) UnmarshalJSON ¶ added in v0.6.0
func (instance *GroupVersionKinds) UnmarshalJSON(b []byte) error
func (*GroupVersionKinds) UnmarshalYAML ¶ added in v0.6.0
func (instance *GroupVersionKinds) UnmarshalYAML(unmarshal func(interface{}) error) error
type GroupVersionKindsBuilder ¶ added in v0.6.0
type GroupVersionKindsBuilder []groupVersionKindsBuilderEntry
func BuildGroupVersionKinds ¶ added in v0.6.0
func BuildGroupVersionKinds(gv schema.GroupVersion, obj runtime.Object) *GroupVersionKindsBuilder
func (GroupVersionKindsBuilder) Build ¶ added in v0.6.0
func (instance GroupVersionKindsBuilder) Build() GroupVersionKinds
func (*GroupVersionKindsBuilder) With ¶ added in v0.6.0
func (instance *GroupVersionKindsBuilder) With(gv schema.GroupVersion, obj runtime.Object) *GroupVersionKindsBuilder
type Label ¶ added in v0.6.0
type Label struct { Name MetaName `yaml:"name" json:"name"` Action LabelAction `yaml:"action" json:"action"` }
type LabelAction ¶ added in v0.6.0
type LabelAction uint8
func (LabelAction) MarshalText ¶ added in v0.6.0
func (instance LabelAction) MarshalText() (text []byte, err error)
func (*LabelAction) Set ¶ added in v0.6.0
func (instance *LabelAction) Set(plain string) error
func (LabelAction) String ¶ added in v0.6.0
func (instance LabelAction) String() string
func (*LabelAction) UnmarshalText ¶ added in v0.6.0
func (instance *LabelAction) UnmarshalText(text []byte) error
type LabelValue ¶ added in v0.6.0
type LabelValue string
func (LabelValue) MarshalText ¶ added in v0.6.0
func (instance LabelValue) MarshalText() (text []byte, err error)
func (*LabelValue) Set ¶ added in v0.6.0
func (instance *LabelValue) Set(plain string) error
func (LabelValue) String ¶ added in v0.6.0
func (instance LabelValue) String() string
func (*LabelValue) UnmarshalText ¶ added in v0.6.0
func (instance *LabelValue) UnmarshalText(text []byte) error
type Labels ¶ added in v0.6.0
type MetaName ¶ added in v0.6.0
type MetaName string
func (MetaName) MarshalText ¶ added in v0.6.0
func (*MetaName) UnmarshalText ¶ added in v0.6.0
type Name ¶ added in v0.6.0
type Name string
func (Name) MarshalText ¶ added in v0.6.0
func (*Name) UnmarshalText ¶ added in v0.6.0
type Namespace ¶ added in v0.6.0
type Namespace Name
func (Namespace) MarshalText ¶ added in v0.6.0
func (*Namespace) UnmarshalText ¶ added in v0.6.0
type Namespaces ¶ added in v0.6.0
type Namespaces []Namespace
func (Namespaces) Contains ¶ added in v0.6.0
func (instance Namespaces) Contains(what Namespace) bool
func (*Namespaces) Set ¶ added in v0.6.0
func (instance *Namespaces) Set(plain string) error
func (Namespaces) String ¶ added in v0.6.0
func (instance Namespaces) String() string
func (Namespaces) Strings ¶ added in v0.6.0
func (instance Namespaces) Strings() []string
type ObjectHandler ¶
func NewObjectHandler ¶
func NewObjectHandler(onObject OnObject, project *Project) (*ObjectHandler, error)
func (*ObjectHandler) Handle ¶
func (instance *ObjectHandler) Handle(cp ContentProvider) error
type ObjectReference ¶ added in v0.6.0
type ObjectReference struct { GroupVersionKind Name Name Namespace Namespace }
func (ObjectReference) AllTwinsBy ¶ added in v0.6.0
func (instance ObjectReference) AllTwinsBy(registry *GroupVersionKindRegistry) (result []ObjectReference)
func (ObjectReference) String ¶ added in v0.6.0
func (instance ObjectReference) String() string
type OnObject ¶
type OnObject func(source string, object runtime.Object, unstructured *unstructured.Unstructured) error
type Project ¶
type Project struct { // Values set using Load() method. GroupId Name `yaml:"groupId,omitempty" json:"groupId,omitempty"` ArtifactId Name `yaml:"artifactId" json:"artifactId"` Release string `yaml:"release,omitempty" json:"release,omitempty"` Claim Claim `yaml:"claim,omitempty" json:"claim,omitempty"` Stages Stages `yaml:"stages,omitempty" json:"stages,omitempty"` Templating Templating `yaml:"templating,omitempty" json:"templating,omitempty"` ConditionalValues []ConditionalValues `yaml:"values,omitempty" json:"values,omitempty"` Labels Labels `yaml:"labels,omitempty" json:"labels,omitempty"` Annotations Annotations `yaml:"annotations,omitempty" json:"annotations,omitempty"` Transformations Transformations `yaml:"transformations,omitempty" json:"transformations,omitempty"` Scheme Scheme `yaml:"scheme,omitempty" json:"scheme,omitempty"` // Values set using implicitly. Source string `yaml:"-" json:"-"` Root string `yaml:"-" json:"-"` Values Values `yaml:"-" json:"-"` Env map[string]string `yaml:"-" json:"-"` Context string `yaml:"-" json:"-"` }
func NewProject ¶ added in v0.7.0
func NewProject() Project
func (Project) GetTransformation ¶ added in v0.8.0
func (instance Project) GetTransformation(v *unstructured.Unstructured, name TransformationName) (result Transformation, err error)
func (Project) RenderedTemplateFile ¶
func (Project) RenderedTemplatesProvider ¶
func (instance Project) RenderedTemplatesProvider() (ContentProvider, error)
type ProjectFactory ¶
type ProjectFactory struct {
// contains filtered or unexported fields
}
func NewProjectFactory ¶
func NewProjectFactory() *ProjectFactory
func (*ProjectFactory) ConfigureFlags ¶
func (instance *ProjectFactory) ConfigureFlags(hf common.HasFlags)
type SchemaValidationNamespaced ¶ added in v0.5.1
type SchemaValidationNamespaced struct { Expectation bool `json:"expectation" yaml:"expectation"` // contains filtered or unexported fields }
type Scheme ¶ added in v0.6.0
type Scheme struct { Ignored GroupVersionKinds `json:"ignored,omitempty" yaml:"ignored,omitempty"` Namespaced []SchemaValidationNamespaced `json:"namespaced,omitempty" yaml:"namespaced,omitempty"` }
func (Scheme) IsIgnored ¶ added in v0.6.0
func (instance Scheme) IsIgnored(what GroupVersionKind) bool
func (Scheme) IsNamespaced ¶ added in v0.6.0
func (instance Scheme) IsNamespaced(what GroupVersionKind) *bool
type Stage ¶ added in v0.6.0
type Stage string
func (Stage) MarshalText ¶ added in v0.6.0
func (*Stage) UnmarshalText ¶ added in v0.6.0
type StageRange ¶ added in v0.6.0
func (StageRange) IsRelevant ¶ added in v0.6.0
func (instance StageRange) IsRelevant() bool
func (StageRange) MarshalText ¶ added in v0.6.0
func (instance StageRange) MarshalText() (text []byte, err error)
func (StageRange) Matches ¶ added in v0.6.0
func (instance StageRange) Matches(stages Stages, stage Stage) bool
func (*StageRange) Set ¶ added in v0.6.0
func (instance *StageRange) Set(plain string) error
func (StageRange) String ¶ added in v0.6.0
func (instance StageRange) String() string
func (*StageRange) UnmarshalText ¶ added in v0.6.0
func (instance *StageRange) UnmarshalText(text []byte) error
type StreamTarget ¶ added in v0.6.0
type StreamTarget string
func (StreamTarget) MarshalText ¶ added in v0.6.0
func (instance StreamTarget) MarshalText() (text []byte, err error)
func (StreamTarget) OpenForWrite ¶ added in v0.6.0
func (instance StreamTarget) OpenForWrite() (io.WriteCloser, error)
func (*StreamTarget) Set ¶ added in v0.6.0
func (instance *StreamTarget) Set(plain string) error
func (StreamTarget) String ¶ added in v0.6.0
func (instance StreamTarget) String() string
func (*StreamTarget) UnmarshalText ¶ added in v0.6.0
func (instance *StreamTarget) UnmarshalText(text []byte) error
type Templating ¶
type Templating struct {
TemplateFilePattern []string `yaml:"templateFilePattern" json:"templateFilePattern"`
}
func NewTemplating ¶ added in v0.7.0
func NewTemplating() Templating
func (Templating) RenderTemplateFile ¶
func (instance Templating) RenderTemplateFile(file string, data interface{}, writer io.Writer) error
func (Templating) RenderedTemplatesProvider ¶
func (instance Templating) RenderedTemplatesProvider(data interface{}) (ContentProvider, error)
func (Templating) TemplateFiles ¶
func (instance Templating) TemplateFiles(data interface{}) ([]string, error)
type Transformation ¶ added in v0.8.0
type Transformation struct { Enabled *bool `yaml:"enabled,omitempty" json:"enabled,omitempty"` Argument *string `yaml:"argument,omitempty" json:"argument,omitempty"` }
func (Transformation) ArgumentAsString ¶ added in v0.8.0
func (instance Transformation) ArgumentAsString() string
func (Transformation) IsEnabled ¶ added in v0.8.0
func (instance Transformation) IsEnabled(def bool) bool
func (Transformation) Merge ¶ added in v0.8.0
func (instance Transformation) Merge(with Transformation) Transformation
type TransformationName ¶ added in v0.8.0
type TransformationName Name
func (TransformationName) MarshalText ¶ added in v0.8.0
func (instance TransformationName) MarshalText() (text []byte, err error)
func (*TransformationName) Set ¶ added in v0.8.0
func (instance *TransformationName) Set(plain string) error
func (TransformationName) String ¶ added in v0.8.0
func (instance TransformationName) String() string
func (*TransformationName) UnmarshalText ¶ added in v0.8.0
func (instance *TransformationName) UnmarshalText(text []byte) error
type Transformations ¶ added in v0.8.0
type Transformations map[TransformationName]Transformation
func NewTransformations ¶ added in v0.8.0
func NewTransformations() Transformations
func (Transformations) Get ¶ added in v0.8.0
func (instance Transformations) Get(name TransformationName) (result Transformation, err error)
type Values ¶
type Values map[string]interface{}
func (*Values) Get ¶
func (instance *Values) Get() interface{}
Get returns the slice of strings set by this flag
func (*Values) IsCumulative ¶
type WaitUntil ¶ added in v0.6.0
type WaitUntil struct { Stage WaitUntilStage Timeout *time.Duration LogConsumer *StreamTarget LogSourceContainerName string }
func (WaitUntil) AsLazyFormatter ¶ added in v0.6.0
func (instance WaitUntil) AsLazyFormatter(template string) *WaitUntilLazyFormatter
func (WaitUntil) CopyWithTimeout ¶ added in v0.6.0
func (WaitUntil) MarshalText ¶ added in v0.6.0
func (WaitUntil) ShouldInherit ¶ added in v0.6.0
func (*WaitUntil) UnmarshalText ¶ added in v0.6.0
type WaitUntilLazyFormatter ¶ added in v0.6.0
func (WaitUntilLazyFormatter) MarshalText ¶ added in v0.6.0
func (instance WaitUntilLazyFormatter) MarshalText() (text []byte, err error)
func (WaitUntilLazyFormatter) String ¶ added in v0.6.0
func (instance WaitUntilLazyFormatter) String() string
type WaitUntilStage ¶ added in v0.6.0
type WaitUntilStage uint8
func (WaitUntilStage) MarshalText ¶ added in v0.6.0
func (instance WaitUntilStage) MarshalText() (text []byte, err error)
func (*WaitUntilStage) Set ¶ added in v0.6.0
func (instance *WaitUntilStage) Set(plain string) error
func (WaitUntilStage) String ¶ added in v0.6.0
func (instance WaitUntilStage) String() string
func (*WaitUntilStage) UnmarshalText ¶ added in v0.6.0
func (instance *WaitUntilStage) UnmarshalText(text []byte) error
Source Files ¶
- annotation.go
- annotation_action.go
- annotations.go
- applyOn.go
- claim.go
- cleanupOn.go
- dryRun.go
- dryRunOn.go
- gvk.go
- gvk_builder.go
- gvk_registry.go
- label.go
- label_action.go
- labels.go
- meta_name.go
- name.go
- namespace.go
- object_reference.go
- objects.go
- project.go
- scheme.go
- stage.go
- streamTarget.go
- templating.go
- transformation.go
- transformation_name.go
- transformations.go
- values.go
- waitUntil.go
Click to show internal directories.
Click to hide internal directories.