model

package
v0.9.18 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 18, 2024 License: MIT Imports: 38 Imported by: 0

Documentation

Index

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 (instance ApplyOn) MarshalText() (text []byte, err error)

func (ApplyOn) OnCreate added in v0.6.0

func (instance ApplyOn) OnCreate() bool

func (ApplyOn) OnUpdate added in v0.6.0

func (instance ApplyOn) OnUpdate() bool

func (*ApplyOn) Set added in v0.6.0

func (instance *ApplyOn) Set(plain string) error

func (ApplyOn) String added in v0.6.0

func (instance ApplyOn) String() string

func (*ApplyOn) UnmarshalText added in v0.6.0

func (instance *ApplyOn) UnmarshalText(text []byte) error

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 NewClaim added in v0.7.0

func NewClaim() Claim

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 (instance CleanupOn) MarshalText() (text []byte, err error)

func (CleanupOn) OnDelete added in v0.6.0

func (instance CleanupOn) OnDelete() bool

func (CleanupOn) OnExecuted added in v0.6.0

func (instance CleanupOn) OnExecuted() bool

func (CleanupOn) OnOrphaned added in v0.6.0

func (instance CleanupOn) OnOrphaned() bool

func (*CleanupOn) Set added in v0.6.0

func (instance *CleanupOn) Set(plain string) error

func (CleanupOn) String added in v0.6.0

func (instance CleanupOn) String() string

func (*CleanupOn) UnmarshalText added in v0.6.0

func (instance *CleanupOn) UnmarshalText(text []byte) error

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

type ContentProvider func() (name string, content []byte, err error)

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 (instance DryRun) IsApplyAllowed() bool

func (DryRun) IsDryRunAllowed added in v0.6.0

func (instance DryRun) IsDryRunAllowed() bool

func (DryRun) MarshalText added in v0.6.0

func (instance DryRun) MarshalText() (text []byte, err error)

func (*DryRun) Set added in v0.6.0

func (instance *DryRun) Set(plain string) error

func (DryRun) String added in v0.6.0

func (instance DryRun) String() string

func (*DryRun) UnmarshalText added in v0.6.0

func (instance *DryRun) UnmarshalText(text []byte) error

type DryRunOn added in v0.6.0

type DryRunOn string

func (DryRunOn) MarshalText added in v0.6.0

func (instance DryRunOn) MarshalText() (text []byte, err error)

func (*DryRunOn) Set added in v0.6.0

func (instance *DryRunOn) Set(plain string) error

func (DryRunOn) String added in v0.6.0

func (instance DryRunOn) String() string

func (*DryRunOn) UnmarshalText added in v0.6.0

func (instance *DryRunOn) UnmarshalText(text []byte) error

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

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 (*GroupVersionKindsBuilder) With added in v0.6.0

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 Labels struct {
	GroupId    Label `yaml:"groupId,omitempty" json:"groupId,omitempty"`
	ArtifactId Label `yaml:"artifactId,omitempty" json:"artifactId,omitempty"`
	Release    Label `yaml:"release,omitempty" json:"release,omitempty"`
}

func NewLabels added in v0.7.0

func NewLabels() Labels

type MetaName added in v0.6.0

type MetaName string

func (MetaName) MarshalText added in v0.6.0

func (instance MetaName) MarshalText() (text []byte, err error)

func (*MetaName) Set added in v0.6.0

func (instance *MetaName) Set(plain string) error

func (MetaName) String added in v0.6.0

func (instance MetaName) String() string

func (*MetaName) UnmarshalText added in v0.6.0

func (instance *MetaName) UnmarshalText(text []byte) error

type Name added in v0.6.0

type Name string

func (Name) MarshalText added in v0.6.0

func (instance Name) MarshalText() (text []byte, err error)

func (*Name) Set added in v0.6.0

func (instance *Name) Set(plain string) error

func (Name) String added in v0.6.0

func (instance Name) String() string

func (*Name) UnmarshalText added in v0.6.0

func (instance *Name) UnmarshalText(text []byte) error

type Namespace added in v0.6.0

type Namespace Name

func (Namespace) MarshalText added in v0.6.0

func (instance Namespace) MarshalText() (text []byte, err error)

func (*Namespace) Set added in v0.6.0

func (instance *Namespace) Set(plain string) error

func (Namespace) String added in v0.6.0

func (instance Namespace) String() string

func (*Namespace) UnmarshalText added in v0.6.0

func (instance *Namespace) UnmarshalText(text []byte) error

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

type ObjectHandler struct {
	OnObject OnObject
	Project  *Project

	Deserializer runtime.Decoder
}

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 (instance Project) RenderedTemplateFile(file string, writer io.Writer) error

func (Project) RenderedTemplatesProvider

func (instance Project) RenderedTemplatesProvider() (ContentProvider, error)

func (*Project) Save

func (instance *Project) Save() error

func (Project) Validate

func (instance Project) Validate() 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)

func (*ProjectFactory) Create

func (instance *ProjectFactory) Create(context string) (*Project, error)

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 (instance Stage) MarshalText() (text []byte, err error)

func (*Stage) Set added in v0.6.0

func (instance *Stage) Set(plain string) error

func (Stage) String added in v0.6.0

func (instance Stage) String() string

func (*Stage) UnmarshalText added in v0.6.0

func (instance *Stage) UnmarshalText(text []byte) error

type StageRange added in v0.6.0

type StageRange struct {
	From *Stage
	To   *Stage
}

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 Stages added in v0.6.0

type Stages []Stage

func NewStages added in v0.8.0

func NewStages() Stages

func (Stages) Contains added in v0.6.0

func (instance Stages) Contains(what Stage) bool

func (*Stages) Set added in v0.6.0

func (instance *Stages) Set(plain string) error

func (Stages) String added in v0.6.0

func (instance Stages) String() string

func (Stages) Strings added in v0.6.0

func (instance Stages) Strings() []string

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 NewValues added in v0.7.0

func NewValues() Values

func (*Values) Get

func (instance *Values) Get() interface{}

Get returns the slice of strings set by this flag

func (*Values) IsCumulative

func (instance *Values) IsCumulative() bool

func (Values) MergeWith

func (instance Values) MergeWith(input ...Values) Values

func (*Values) Set

func (instance *Values) Set(value string) error

func (*Values) String

func (instance *Values) String() string

String returns a readable representation of this value (for usage defaults)

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 (instance WaitUntil) CopyWithTimeout(timeout *time.Duration) WaitUntil

func (WaitUntil) MarshalText added in v0.6.0

func (instance WaitUntil) MarshalText() (text []byte, err error)

func (WaitUntil) MergeWith added in v0.6.0

func (instance WaitUntil) MergeWith(child WaitUntil) (result WaitUntil)

func (*WaitUntil) Set added in v0.6.0

func (instance *WaitUntil) Set(plain string) error

func (WaitUntil) ShouldInherit added in v0.6.0

func (instance WaitUntil) ShouldInherit() bool

func (WaitUntil) String added in v0.6.0

func (instance WaitUntil) String() string

func (*WaitUntil) UnmarshalText added in v0.6.0

func (instance *WaitUntil) UnmarshalText(text []byte) error

type WaitUntilLazyFormatter added in v0.6.0

type WaitUntilLazyFormatter struct {
	WaitUntil
	Template string
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL