v1

package
v0.0.0-...-db4638b Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "trinity.cloudlego.com", Version: "v1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type MinioCreds

type MinioCreds struct {
	AccessKey string `json:"accesskey"`
	SecretKey string `json:"secretkey"`
}

Artifact store credentials

type TaskStatus

type TaskStatus struct {
	Name string `json:"name"`
	//Command string   `json:"command"`
	//Args    []string `json:"args"`
	Status string `json:"status"`
	Output string `json:"output"`
	Error  string `json:"error"`
}

type WorkFlowClient

type WorkFlowClient struct {
	// contains filtered or unexported fields
}

func NewForConfig

func NewForConfig(config *rest.Config) (*WorkFlowClient, error)

func (*WorkFlowClient) WorkFlows

func (c *WorkFlowClient) WorkFlows(namespace string) WorkFlowInterface

type WorkFlowInterface

type WorkFlowInterface interface {
	List() (*WorkflowList, error)
	Get(name string) (*Workflow, error)
	Put(name string, workflow *Workflow) (*Workflow, error)
}

type WorkFlowV1Interface

type WorkFlowV1Interface interface {
	WorkFlows(namespace string) WorkFlowInterface
}

type Workflow

type Workflow struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`

	Spec   WorkflowSpec   `json:"spec"`
	Status WorkflowStatus `json:"status"`
}

Workflow is the Schema for the workflows API

func (*Workflow) DeepCopy

func (in *Workflow) DeepCopy() *Workflow

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

func (*Workflow) DeepCopyInto

func (in *Workflow) DeepCopyInto(out *Workflow)

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

func (*Workflow) DeepCopyObject

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

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

type WorkflowList

type WorkflowList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`
	Items           []Workflow `json:"items"`
}

WorkflowList contains a list of Workflow

func (*WorkflowList) DeepCopy

func (in *WorkflowList) DeepCopy() *WorkflowList

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

func (*WorkflowList) DeepCopyInto

func (in *WorkflowList) DeepCopyInto(out *WorkflowList)

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

func (*WorkflowList) DeepCopyObject

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

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

type WorkflowSpec

type WorkflowSpec struct {
	Schedule       string         `json:"schedule"`
	StoreArtifacts bool           `json:"storeartifacts"`
	Tasks          []Workflowtask `json:"tasks"`
}

WorkflowSpec defines the desired state of Workflow

func (*WorkflowSpec) DeepCopy

func (in *WorkflowSpec) DeepCopy() *WorkflowSpec

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

func (*WorkflowSpec) DeepCopyInto

func (in *WorkflowSpec) DeepCopyInto(out *WorkflowSpec)

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

type WorkflowStatus

type WorkflowStatus struct {
	Runs []Workflowruns `json:"runs"`
}

WorkflowStatus defines the observed state of Workflow

func (*WorkflowStatus) DeepCopy

func (in *WorkflowStatus) DeepCopy() *WorkflowStatus

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

func (*WorkflowStatus) DeepCopyInto

func (in *WorkflowStatus) DeepCopyInto(out *WorkflowStatus)

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

type Workflowruns

type Workflowruns struct {
	ID        int          `json:"id"`
	Phase     string       `json:"phase"`
	StartedAt string       `json:"started_at"`
	EndedAt   string       `json:"ended_at"`
	Tasks     []TaskStatus `json:"tasks"`
}

type Workflowtask

type Workflowtask struct {
	Name string `json:"name"`
	//Type    string   `json:"type"`
	Command struct {
		Inline struct {
			Command string   `json:"command"`
			Args    []string `json:"args"`
		} `json:"inline"`

		Script string `json:"script"`
	} `json:"command"`
}

Jump to

Keyboard shortcuts

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