v1

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OnCompletionNames

func OnCompletionNames() []string

OnCompletionNames returns a list of possible string values of OnCompletion.

Types

type HttpReqService_Create

type HttpReqService_Create struct {
	metav1.LabelMeta  `json:",inline"`                             //inline labelmeta
	TemplateUuid      string                                       `json:"template_uuid"`
	ClusterUuid       string                                       `json:"cluster_uuid"`
	SubscribedChannel *string                                      `json:"subscribed_channel,omitempty"`
	OnCompletion      *int8                                        `json:"on_completion,omitempty"`
	Steps             []stepv1.HttpReqServiceStep_Create_ByService `json:"steps"`
}

type HttpReq_ServiceUpdate_ClientSide

type HttpReq_ServiceUpdate_ClientSide struct {
	metav1.UuidMeta `json:",inline" xorm:"extends"`         //inline uuidmeta
	Result          *string                                 `json:"result,omitempty"` //실행 결과(정상:'결과', 오류:'오류 메시지')
	Steps           []HttpReq_ServiceUpdate_Step_ClientSide `json:"steps,omitempty"`
}

type HttpReq_ServiceUpdate_Step_ClientSide

type HttpReq_ServiceUpdate_Step_ClientSide struct {
	metav1.UuidMeta `json:",inline" xorm:"extends"` //inline uuidmeta
	Status          *int32                          `json:"status,omitempty"`  //
	Started         *time.Time                      `json:"started,omitempty"` //
	Ended           *time.Time                      `json:"ended,omitempty"`   //
}

type HttpRspService

type HttpRspService struct {
	Service `json:",inline"`
	Steps   []stepv1.ServiceStep `json:"steps"`
}

type HttpRspService_ClientSide

type HttpRspService_ClientSide HttpRspService

type OnCompletion

type OnCompletion int8
ENUM(

none remove )

const (
	// OnCompletionNone is a OnCompletion of type None.
	OnCompletionNone OnCompletion = iota
	// OnCompletionRemove is a OnCompletion of type Remove.
	OnCompletionRemove
)

func ParseOnCompletion

func ParseOnCompletion(name string) (OnCompletion, error)

ParseOnCompletion attempts to convert a string to a OnCompletion.

func (OnCompletion) String

func (x OnCompletion) String() string

String implements the Stringer interface.

type Service

type Service struct {
	metav1.DbMeta    `json:",inline" xorm:"extends"`
	metav1.UuidMeta  `json:",inline" xorm:"extends"` //inline uuidmeta
	metav1.LabelMeta `json:",inline" xorm:"extends"` //inline labelmeta
	ServiceProperty  `json:",inline" xorm:"extends"` //inline property
}

DATABASE SCHEMA: SERVICE

func (Service) TableName

func (Service) TableName() string

type ServiceProperty

type ServiceProperty struct {
	TemplateUuid       string `json:"template_uuid,omitempty"        xorm:"'template_uuid'        char(32)     notnull index comment('template_uuid')"` //
	ClusterUuid        string `json:"cluster_uuid,omitempty"         xorm:"'cluster_uuid'         char(32)     notnull index comment('cluster_uuid')"`  //
	AssignedClientUuid string ``                                                                                                                        //
	/* 126-byte string literal not displayed */
	StepCount         *int32           `json:"step_count,omitempty"           xorm:"'step_count'           int          notnull       comment('step_count')"`         //
	StepPosition      *int32           `json:"step_position,omitempty"        xorm:"'step_position'        int          notnull       comment('step_position')"`      //
	Status            *int32           `json:"status,omitempty"               xorm:"'status'               int          notnull index comment('status')"`             //
	Result            *cryptov1.String `json:"result,omitempty"               xorm:"'result'               longtext     null          comment('result')"`             //실행 결과(정상:'결과', 오류:'오류 메시지')
	SubscribedChannel string           `json:"subscribed_channel,omitempty"   xorm:"'subscribed_channel'   varchar(255) null          comment('subscribed channel')"` //서비스 POLL 결과 전달 이벤트 채널 이름
	OnCompletion      *int8            `json:"on_completion,omitempty"        xorm:"'on_completion'        TINYINT      notnull       comment('on completion')"`      //서비스 완료 후

}

ServiceProperty Property

func (ServiceProperty) ChaniningStep

func (property ServiceProperty) ChaniningStep(steps []stepv1.ServiceStep) ServiceProperty

type Status

type Status int32
const (
	StatusRegist     Status = 0
	StatusSend       Status = 1 << 0
	StatusProcessing Status = 1 << 1
	StatusSuccess    Status = 1 << 2
	StatusFail       Status = 1 << 3
)

Jump to

Keyboard shortcuts

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