v1

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2019 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GroupName = "terraform-operator.cattle.io"
	Version   = "v1"
)

Variables

View Source
var (
	APIVersion = types.APIVersion{
		Group:   "terraform-operator.cattle.io",
		Version: "v1",
		Path:    "/v1-terraform-operator",
	}
	Schemas = factory.
			Schemas(&APIVersion).
			MustImport(&APIVersion, Module{}).
			MustImport(&APIVersion, Execution{}).
			MustImport(&APIVersion, ExecutionRun{})

	ModuleConditionGitUpdated = condition.Cond("GitUpdated")

	ExecutionConditionDestroyJobDeployed = condition.Cond("DestroyJobDeployed")
	ExecutionConditionJobDeployed        = condition.Cond("JobDeployed")
	ExecutionConditionMissingInfo        = condition.Cond("MissingInfo")
	ExecutionConditionWatchRunning       = condition.Cond("WatchRunning")

	ExecutionRunConditionPlanned = condition.Cond("Planned")
	ExecutionRunConditionApplied = condition.Cond("Applied")
)
View Source
var (
	ExecutionGroupVersionKind = schema.GroupVersionKind{
		Version: Version,
		Group:   GroupName,
		Kind:    "Execution",
	}
	ExecutionResource = metav1.APIResource{
		Name:         "executions",
		SingularName: "execution",
		Namespaced:   true,

		Kind: ExecutionGroupVersionKind.Kind,
	}
)
View Source
var (
	ExecutionRunGroupVersionKind = schema.GroupVersionKind{
		Version: Version,
		Group:   GroupName,
		Kind:    "ExecutionRun",
	}
	ExecutionRunResource = metav1.APIResource{
		Name:         "executionruns",
		SingularName: "executionrun",
		Namespaced:   true,

		Kind: ExecutionRunGroupVersionKind.Kind,
	}
)
View Source
var (
	ModuleGroupVersionKind = schema.GroupVersionKind{
		Version: Version,
		Group:   GroupName,
		Kind:    "Module",
	}
	ModuleResource = metav1.APIResource{
		Name:         "modules",
		SingularName: "module",
		Namespaced:   true,

		Kind: ModuleGroupVersionKind.Kind,
	}
)
View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: Version}

SchemeGroupVersion is group version used to register these objects

Functions

func Factory

func Factory(ctx context.Context, config rest.Config) (context.Context, controller.Starter, error)

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type Client

type Client struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*Client) ExecutionRuns

func (c *Client) ExecutionRuns(namespace string) ExecutionRunInterface

func (*Client) Executions

func (c *Client) Executions(namespace string) ExecutionInterface

func (*Client) Modules

func (c *Client) Modules(namespace string) ModuleInterface

func (*Client) RESTClient

func (c *Client) RESTClient() rest.Interface

func (*Client) Start

func (c *Client) Start(ctx context.Context, threadiness int) error

func (*Client) Sync

func (c *Client) Sync(ctx context.Context) error

type Clients

type Clients struct {
	Module       ModuleClient
	Execution    ExecutionClient
	ExecutionRun ExecutionRunClient
}

func ClientsFrom

func ClientsFrom(ctx context.Context) *Clients

func NewClients

func NewClients(config rest.Config) (*Clients, error)

func NewClientsFromInterface

func NewClientsFromInterface(iface Interface) *Clients

type Execution

type Execution struct {
	types.Namespaced

	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   ExecutionSpec   `json:"spec"`
	Status ExecutionStatus `json:"status"`
}

func (*Execution) DeepCopy

func (in *Execution) DeepCopy() *Execution

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Execution.

func (*Execution) DeepCopyInto

func (in *Execution) DeepCopyInto(out *Execution)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Execution) DeepCopyObject

func (in *Execution) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ExecutionChangeHandlerFunc

type ExecutionChangeHandlerFunc func(obj *Execution) (runtime.Object, error)

type ExecutionClient

type ExecutionClient interface {
	Create(*Execution) (*Execution, error)
	Get(namespace, name string, opts metav1.GetOptions) (*Execution, error)
	Update(*Execution) (*Execution, error)
	Delete(namespace, name string, options *metav1.DeleteOptions) error
	List(namespace string, opts metav1.ListOptions) (*ExecutionList, error)
	Watch(opts metav1.ListOptions) (watch.Interface, error)

	Cache() ExecutionClientCache

	OnCreate(ctx context.Context, name string, sync ExecutionChangeHandlerFunc)
	OnChange(ctx context.Context, name string, sync ExecutionChangeHandlerFunc)
	OnRemove(ctx context.Context, name string, sync ExecutionChangeHandlerFunc)
	Enqueue(namespace, name string)

	Generic() controller.GenericController
	Interface() ExecutionInterface
}

type ExecutionClientCache

type ExecutionClientCache interface {
	Get(namespace, name string) (*Execution, error)
	List(namespace string, selector labels.Selector) ([]*Execution, error)

	Index(name string, indexer ExecutionIndexer)
	GetIndexed(name, key string) ([]*Execution, error)
}

type ExecutionController

type ExecutionController interface {
	Generic() controller.GenericController
	Informer() cache.SharedIndexInformer
	Lister() ExecutionLister
	AddHandler(ctx context.Context, name string, handler ExecutionHandlerFunc)
	AddClusterScopedHandler(ctx context.Context, name, clusterName string, handler ExecutionHandlerFunc)
	Enqueue(namespace, name string)
	Sync(ctx context.Context) error
	Start(ctx context.Context, threadiness int) error
}

type ExecutionHandlerFunc

type ExecutionHandlerFunc func(key string, obj *Execution) (runtime.Object, error)

func NewExecutionLifecycleAdapter

func NewExecutionLifecycleAdapter(name string, clusterScoped bool, client ExecutionInterface, l ExecutionLifecycle) ExecutionHandlerFunc

type ExecutionIndexer

type ExecutionIndexer func(obj *Execution) ([]string, error)

type ExecutionInterface

type ExecutionInterface interface {
	ObjectClient() *objectclient.ObjectClient
	Create(*Execution) (*Execution, error)
	GetNamespaced(namespace, name string, opts metav1.GetOptions) (*Execution, error)
	Get(name string, opts metav1.GetOptions) (*Execution, error)
	Update(*Execution) (*Execution, error)
	Delete(name string, options *metav1.DeleteOptions) error
	DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error
	List(opts metav1.ListOptions) (*ExecutionList, error)
	Watch(opts metav1.ListOptions) (watch.Interface, error)
	DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error
	Controller() ExecutionController
	AddHandler(ctx context.Context, name string, sync ExecutionHandlerFunc)
	AddLifecycle(ctx context.Context, name string, lifecycle ExecutionLifecycle)
	AddClusterScopedHandler(ctx context.Context, name, clusterName string, sync ExecutionHandlerFunc)
	AddClusterScopedLifecycle(ctx context.Context, name, clusterName string, lifecycle ExecutionLifecycle)
}

type ExecutionLifecycle

type ExecutionLifecycle interface {
	Create(obj *Execution) (runtime.Object, error)
	Remove(obj *Execution) (runtime.Object, error)
	Updated(obj *Execution) (runtime.Object, error)
}

type ExecutionList

type ExecutionList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Execution
}

func (*ExecutionList) DeepCopy

func (in *ExecutionList) DeepCopy() *ExecutionList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExecutionList.

func (*ExecutionList) DeepCopyInto

func (in *ExecutionList) DeepCopyInto(out *ExecutionList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ExecutionList) DeepCopyObject

func (in *ExecutionList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ExecutionLister

type ExecutionLister interface {
	List(namespace string, selector labels.Selector) (ret []*Execution, err error)
	Get(namespace, name string) (*Execution, error)
}

type ExecutionRun

type ExecutionRun struct {
	types.Namespaced

	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   ExecutionRunSpec   `json:"spec"`
	Status ExecutionRunStatus `json:"status"`
}

func (*ExecutionRun) DeepCopy

func (in *ExecutionRun) DeepCopy() *ExecutionRun

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExecutionRun.

func (*ExecutionRun) DeepCopyInto

func (in *ExecutionRun) DeepCopyInto(out *ExecutionRun)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ExecutionRun) DeepCopyObject

func (in *ExecutionRun) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ExecutionRunChangeHandlerFunc

type ExecutionRunChangeHandlerFunc func(obj *ExecutionRun) (runtime.Object, error)

type ExecutionRunClient

type ExecutionRunClient interface {
	Create(*ExecutionRun) (*ExecutionRun, error)
	Get(namespace, name string, opts metav1.GetOptions) (*ExecutionRun, error)
	Update(*ExecutionRun) (*ExecutionRun, error)
	Delete(namespace, name string, options *metav1.DeleteOptions) error
	List(namespace string, opts metav1.ListOptions) (*ExecutionRunList, error)
	Watch(opts metav1.ListOptions) (watch.Interface, error)

	Cache() ExecutionRunClientCache

	OnCreate(ctx context.Context, name string, sync ExecutionRunChangeHandlerFunc)
	OnChange(ctx context.Context, name string, sync ExecutionRunChangeHandlerFunc)
	OnRemove(ctx context.Context, name string, sync ExecutionRunChangeHandlerFunc)
	Enqueue(namespace, name string)

	Generic() controller.GenericController
	Interface() ExecutionRunInterface
}

type ExecutionRunClientCache

type ExecutionRunClientCache interface {
	Get(namespace, name string) (*ExecutionRun, error)
	List(namespace string, selector labels.Selector) ([]*ExecutionRun, error)

	Index(name string, indexer ExecutionRunIndexer)
	GetIndexed(name, key string) ([]*ExecutionRun, error)
}

type ExecutionRunController

type ExecutionRunController interface {
	Generic() controller.GenericController
	Informer() cache.SharedIndexInformer
	Lister() ExecutionRunLister
	AddHandler(ctx context.Context, name string, handler ExecutionRunHandlerFunc)
	AddClusterScopedHandler(ctx context.Context, name, clusterName string, handler ExecutionRunHandlerFunc)
	Enqueue(namespace, name string)
	Sync(ctx context.Context) error
	Start(ctx context.Context, threadiness int) error
}

type ExecutionRunHandlerFunc

type ExecutionRunHandlerFunc func(key string, obj *ExecutionRun) (runtime.Object, error)

func NewExecutionRunLifecycleAdapter

func NewExecutionRunLifecycleAdapter(name string, clusterScoped bool, client ExecutionRunInterface, l ExecutionRunLifecycle) ExecutionRunHandlerFunc

type ExecutionRunIndexer

type ExecutionRunIndexer func(obj *ExecutionRun) ([]string, error)

type ExecutionRunInterface

type ExecutionRunInterface interface {
	ObjectClient() *objectclient.ObjectClient
	Create(*ExecutionRun) (*ExecutionRun, error)
	GetNamespaced(namespace, name string, opts metav1.GetOptions) (*ExecutionRun, error)
	Get(name string, opts metav1.GetOptions) (*ExecutionRun, error)
	Update(*ExecutionRun) (*ExecutionRun, error)
	Delete(name string, options *metav1.DeleteOptions) error
	DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error
	List(opts metav1.ListOptions) (*ExecutionRunList, error)
	Watch(opts metav1.ListOptions) (watch.Interface, error)
	DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error
	Controller() ExecutionRunController
	AddHandler(ctx context.Context, name string, sync ExecutionRunHandlerFunc)
	AddLifecycle(ctx context.Context, name string, lifecycle ExecutionRunLifecycle)
	AddClusterScopedHandler(ctx context.Context, name, clusterName string, sync ExecutionRunHandlerFunc)
	AddClusterScopedLifecycle(ctx context.Context, name, clusterName string, lifecycle ExecutionRunLifecycle)
}

type ExecutionRunLifecycle

type ExecutionRunLifecycle interface {
	Create(obj *ExecutionRun) (runtime.Object, error)
	Remove(obj *ExecutionRun) (runtime.Object, error)
	Updated(obj *ExecutionRun) (runtime.Object, error)
}

type ExecutionRunList

type ExecutionRunList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []ExecutionRun
}

func (*ExecutionRunList) DeepCopy

func (in *ExecutionRunList) DeepCopy() *ExecutionRunList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExecutionRunList.

func (*ExecutionRunList) DeepCopyInto

func (in *ExecutionRunList) DeepCopyInto(out *ExecutionRunList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ExecutionRunList) DeepCopyObject

func (in *ExecutionRunList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ExecutionRunLister

type ExecutionRunLister interface {
	List(namespace string, selector labels.Selector) (ret []*ExecutionRun, err error)
	Get(namespace, name string) (*ExecutionRun, error)
}

type ExecutionRunSpec

type ExecutionRunSpec struct {
	AutoConfirm      bool              `json:"autoConfirm,omitempty"`
	Content          ModuleContent     `json:"content,omitempty"`
	ContentHash      string            `json:"contentHash,omitempty"`
	Data             map[string]string `json:"data,omitempty"`
	ExecutionName    string            `json:"executionName,omitempty"`
	ExecutionVersion int32             `json:"executionVersion,omitempty"`
	// Secrets and config maps referenced in the Execution spec will be combined into this secret
	SecretName string `json:"secretName,omitempty"`
}

func (*ExecutionRunSpec) DeepCopy

func (in *ExecutionRunSpec) DeepCopy() *ExecutionRunSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExecutionRunSpec.

func (*ExecutionRunSpec) DeepCopyInto

func (in *ExecutionRunSpec) DeepCopyInto(out *ExecutionRunSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ExecutionRunStatus

type ExecutionRunStatus struct {
	Conditions    []condition.GenericCondition `json:"conditions,omitempty"`
	JobName       string                       `json:"jobName,omitempty"`
	PlanOutput    string                       `json:"planOutput,omitempty"`
	PlanConfirmed bool                         `json:"planConfirmed,omitempty"`
	ApplyOutput   string                       `json:"applyOutput,omitempty"`
	Outputs       string                       `json:"outputs,omitempty"`
}

func (*ExecutionRunStatus) DeepCopy

func (in *ExecutionRunStatus) DeepCopy() *ExecutionRunStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExecutionRunStatus.

func (*ExecutionRunStatus) DeepCopyInto

func (in *ExecutionRunStatus) DeepCopyInto(out *ExecutionRunStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ExecutionRunsGetter

type ExecutionRunsGetter interface {
	ExecutionRuns(namespace string) ExecutionRunInterface
}

type ExecutionSpec

type ExecutionSpec struct {
	Image      string    `json:"image,omitempty"`
	Variables  Variables `json:"variables,omitempty"`
	ModuleName string    `json:"moduleName,omitempty"`
	// Data is dataName mapped to another executionRun name
	// so terraform variable name that should be an output from the run
	Data            map[string]string `json:"data,omitempty"`
	AutoConfirm     bool              `json:"autoConfirm,omitempty"`
	DestroyOnDelete bool              `json:"destroyOnDelete,omitempty"`
	Version         int32             `json:"version,omitempty"`
}

func (*ExecutionSpec) DeepCopy

func (in *ExecutionSpec) DeepCopy() *ExecutionSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExecutionSpec.

func (*ExecutionSpec) DeepCopyInto

func (in *ExecutionSpec) DeepCopyInto(out *ExecutionSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ExecutionStatus

type ExecutionStatus struct {
	Conditions        []condition.GenericCondition `json:"conditions,omitempty"`
	ExecutionRunName  string                       `json:"executionRunName,omitempty"`
	ExecutionPlanName string                       `json:"executionPlanName,omitempty"`
}

func (*ExecutionStatus) DeepCopy

func (in *ExecutionStatus) DeepCopy() *ExecutionStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExecutionStatus.

func (*ExecutionStatus) DeepCopyInto

func (in *ExecutionStatus) DeepCopyInto(out *ExecutionStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ExecutionsGetter

type ExecutionsGetter interface {
	Executions(namespace string) ExecutionInterface
}

type GitLocation

type GitLocation struct {
	URL             string `json:"url,omitempty"`
	Branch          string `json:"branch,omitempty"`
	Tag             string `json:"tag,omitempty"`
	Commit          string `json:"commit,omitempty"`
	SecretName      string `json:"secretName,omitempty"`
	IntervalSeconds int    `json:"intervalSeconds,omitempty"`
}

func (*GitLocation) DeepCopy

func (in *GitLocation) DeepCopy() *GitLocation

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitLocation.

func (*GitLocation) DeepCopyInto

func (in *GitLocation) DeepCopyInto(out *GitLocation)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Interface

func From

func From(ctx context.Context) Interface

func NewForConfig

func NewForConfig(config rest.Config) (Interface, error)

type Module

type Module struct {
	types.Namespaced

	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   ModuleSpec   `json:"spec"`
	Status ModuleStatus `json:"status"`
}

func (*Module) DeepCopy

func (in *Module) DeepCopy() *Module

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Module.

func (*Module) DeepCopyInto

func (in *Module) DeepCopyInto(out *Module)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Module) DeepCopyObject

func (in *Module) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ModuleChangeHandlerFunc

type ModuleChangeHandlerFunc func(obj *Module) (runtime.Object, error)

type ModuleClient

type ModuleClient interface {
	Create(*Module) (*Module, error)
	Get(namespace, name string, opts metav1.GetOptions) (*Module, error)
	Update(*Module) (*Module, error)
	Delete(namespace, name string, options *metav1.DeleteOptions) error
	List(namespace string, opts metav1.ListOptions) (*ModuleList, error)
	Watch(opts metav1.ListOptions) (watch.Interface, error)

	Cache() ModuleClientCache

	OnCreate(ctx context.Context, name string, sync ModuleChangeHandlerFunc)
	OnChange(ctx context.Context, name string, sync ModuleChangeHandlerFunc)
	OnRemove(ctx context.Context, name string, sync ModuleChangeHandlerFunc)
	Enqueue(namespace, name string)

	Generic() controller.GenericController
	Interface() ModuleInterface
}

type ModuleClientCache

type ModuleClientCache interface {
	Get(namespace, name string) (*Module, error)
	List(namespace string, selector labels.Selector) ([]*Module, error)

	Index(name string, indexer ModuleIndexer)
	GetIndexed(name, key string) ([]*Module, error)
}

type ModuleContent

type ModuleContent struct {
	Content map[string]string `json:"content,omitempty"`
	Git     GitLocation       `json:"git,omitempty"`
}

func (*ModuleContent) DeepCopy

func (in *ModuleContent) DeepCopy() *ModuleContent

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ModuleContent.

func (*ModuleContent) DeepCopyInto

func (in *ModuleContent) DeepCopyInto(out *ModuleContent)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ModuleController

type ModuleController interface {
	Generic() controller.GenericController
	Informer() cache.SharedIndexInformer
	Lister() ModuleLister
	AddHandler(ctx context.Context, name string, handler ModuleHandlerFunc)
	AddClusterScopedHandler(ctx context.Context, name, clusterName string, handler ModuleHandlerFunc)
	Enqueue(namespace, name string)
	Sync(ctx context.Context) error
	Start(ctx context.Context, threadiness int) error
}

type ModuleHandlerFunc

type ModuleHandlerFunc func(key string, obj *Module) (runtime.Object, error)

func NewModuleLifecycleAdapter

func NewModuleLifecycleAdapter(name string, clusterScoped bool, client ModuleInterface, l ModuleLifecycle) ModuleHandlerFunc

type ModuleIndexer

type ModuleIndexer func(obj *Module) ([]string, error)

type ModuleInterface

type ModuleInterface interface {
	ObjectClient() *objectclient.ObjectClient
	Create(*Module) (*Module, error)
	GetNamespaced(namespace, name string, opts metav1.GetOptions) (*Module, error)
	Get(name string, opts metav1.GetOptions) (*Module, error)
	Update(*Module) (*Module, error)
	Delete(name string, options *metav1.DeleteOptions) error
	DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error
	List(opts metav1.ListOptions) (*ModuleList, error)
	Watch(opts metav1.ListOptions) (watch.Interface, error)
	DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error
	Controller() ModuleController
	AddHandler(ctx context.Context, name string, sync ModuleHandlerFunc)
	AddLifecycle(ctx context.Context, name string, lifecycle ModuleLifecycle)
	AddClusterScopedHandler(ctx context.Context, name, clusterName string, sync ModuleHandlerFunc)
	AddClusterScopedLifecycle(ctx context.Context, name, clusterName string, lifecycle ModuleLifecycle)
}

type ModuleLifecycle

type ModuleLifecycle interface {
	Create(obj *Module) (runtime.Object, error)
	Remove(obj *Module) (runtime.Object, error)
	Updated(obj *Module) (runtime.Object, error)
}

type ModuleList

type ModuleList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Module
}

func (*ModuleList) DeepCopy

func (in *ModuleList) DeepCopy() *ModuleList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ModuleList.

func (*ModuleList) DeepCopyInto

func (in *ModuleList) DeepCopyInto(out *ModuleList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ModuleList) DeepCopyObject

func (in *ModuleList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ModuleLister

type ModuleLister interface {
	List(namespace string, selector labels.Selector) (ret []*Module, err error)
	Get(namespace, name string) (*Module, error)
}

type ModuleSpec

type ModuleSpec struct {
	ModuleContent
}

func (*ModuleSpec) DeepCopy

func (in *ModuleSpec) DeepCopy() *ModuleSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ModuleSpec.

func (*ModuleSpec) DeepCopyInto

func (in *ModuleSpec) DeepCopyInto(out *ModuleSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ModuleStatus

type ModuleStatus struct {
	CheckTime   metav1.Time                  `json:"time,omitempty"`
	GitChecked  *GitLocation                 `json:"gitChecked,omitempty"`
	Content     ModuleContent                `json:"content,omitempty"`
	ContentHash string                       `json:"contentHash,omitempty"`
	Conditions  []condition.GenericCondition `json:"conditions,omitempty"`
}

func (*ModuleStatus) DeepCopy

func (in *ModuleStatus) DeepCopy() *ModuleStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ModuleStatus.

func (*ModuleStatus) DeepCopyInto

func (in *ModuleStatus) DeepCopyInto(out *ModuleStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ModulesGetter

type ModulesGetter interface {
	Modules(namespace string) ModuleInterface
}

type Variables

type Variables struct {
	EnvConfigName  []string `json:"envConfigNames,omitempty"`
	EnvSecretNames []string `json:"envSecretNames,omitempty"`
	ConfigNames    []string `json:"configNames,omitempty"`
	SecretNames    []string `json:"secretNames,omitempty"`
}

func (*Variables) DeepCopy

func (in *Variables) DeepCopy() *Variables

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Variables.

func (*Variables) DeepCopyInto

func (in *Variables) DeepCopyInto(out *Variables)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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