v1

package
v0.0.1-beta Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent struct {
	Url, Token string
}

Agent agent info

type AgentDeployableResource

type AgentDeployableResource struct {
	Step        string                       `json:"step"`
	ProcessId   string                       `json:"process_id"`
	Descriptors *[]unstructured.Unstructured `json:"descriptors" yaml:"descriptors"`
	Type        enums.PIPELINE_RESOURCE_TYPE `json:"type"`
	Name        string                       `json:"name"`
	Namespace   string                       `json:"namespace"`
	Images      []string                     `json:"images"`
}

AgentDeployableResource agent applicable workload info.

type CompanyMetadata

type CompanyMetadata struct {
	Labels                    map[string]string `bson:"labels" json:"labels" yaml:"labels"`
	NumberOfConcurrentProcess int64             `bson:"number_of_concurrent_process" json:"number_of_concurrent_process" yaml:"number_of_concurrent_process"`
	TotalProcessPerDay        int64             `bson:"total_process_per_day" json:"total_process_per_day" yaml:"total_process_per_day"`
}

CompanyMetadata company metadata

type Jwt

type Jwt struct {
	PublicKey *rsa.PublicKey
}

Jwt Struct of Jwt keys

type LogEvent

type LogEvent struct {
	ProcessId string    `bson:"process_id"`
	Log       string    `bson:"log"`
	Step      string    `bson:"step"`
	Footmark  string    `bson:"footmark"`
	CreatedAt time.Time `bson:"created_at"`
	Claim     int       `bson:"claim" json:"claim"`
}

LogEvent LogEvent struct

type LogEventQueryOption

type LogEventQueryOption struct {
	Pagination struct {
		Page  int64
		Limit int64
	}
	Step string
}

LogEventQueryOption log event query params

type Pipeline

type Pipeline struct {
	MetaData   PipelineMetadata    `json:"_metadata" yaml:"_metadata"`
	Option     PipelineApplyOption `json:"option" yaml:"option"`
	ApiVersion string              `json:"api_version" yaml:"api_version"`
	Name       string              `json:"name"  yaml:"name"`
	ProcessId  string              `json:"process_id" yaml:"process_id"`
	Label      map[string]string   `json:"label" yaml:"label"`
	Steps      []Step              `json:"steps" yaml:"steps"`
}

Pipeline Pipeline struct

func (Pipeline) Validate

func (pipeline Pipeline) Validate() error

Validate validates pipeline.

type PipelineApplyOption

type PipelineApplyOption struct {
	Purging enums.PIPELINE_PURGING
}

PipelineApplyOption pipeline apply options

type PipelineMetadata

type PipelineMetadata struct {
	CompanyId       string          `json:"company_id" yaml:"company_id"`
	CompanyMetadata CompanyMetadata `json:"company_metadata" yaml:"company_metadata"`
}

PipelineMetadata pipeline metadata

type PodListGetOption

type PodListGetOption struct {
	Wait     bool
	Duration int
}

PodListGetOption pod list get options

type ProcessEvent

type ProcessEvent struct {
	ProcessId string                 `bson:"process_id" json:"process_id"`
	CompanyId string                 `bson:"company_id" json:"company_id"`
	Data      map[string]interface{} `bson:"data" json:"data"`
}

ProcessEvent Pipeline ProcessEvent struct

type ProcessLifeCycleEvent

type ProcessLifeCycleEvent struct {
	ProcessId string               `bson:"process_id" json:"process_id"`
	Step      string               `bson:"step" json:"step"`
	StepType  enums.STEP_TYPE      `bson:"step_type" json:"step_type"`
	Status    enums.PROCESS_STATUS `bson:"status" json:"status"`
	Next      []string             `bson:"next" json:"next"`
	Agent     string               `bson:"agent" json:"agent"`
	Pipeline  *Pipeline            `bson:"pipeline" json:"pipeline"`
	CreatedAt time.Time            `bson:"created_at" json:"created_at"`
	Trigger   enums.TRIGGER        `bson:"trigger" json:"trigger"`
	Claim     int                  `bson:"claim" json:"claim"`
}

ProcessLifeCycleEvent Pipeline ProcessLifeCycleEvent struct

type Step

type Step struct {
	Name        string                       `json:"name" yaml:"name"`
	Type        enums.STEP_TYPE              `json:"type" yaml:"type"`
	Trigger     enums.TRIGGER                `json:"trigger" yaml:"trigger"`
	Params      map[enums.PARAMS]string      `json:"params" yaml:"params"`
	Next        []string                     `json:"next" yaml:"next"`
	ArgData     map[string]string            `json:"arg_data"  yaml:"arg_data"`
	EnvData     map[string]string            `json:"env_data"  yaml:"env_data"`
	Descriptors *[]unstructured.Unstructured `json:"descriptors" yaml:"descriptors"`
}

Step pipeline step.

func (Step) Validate

func (step Step) Validate() error

Validate validates pipeline steps.

type Subject

type Subject struct {
	Step, Log    string
	StepType     enums.STEP_TYPE
	EventData    map[string]interface{}
	ProcessLabel map[string]string
	Pipeline     Pipeline
}

Subject subject that observers listen

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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