service

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: 15 Imported by: 0

Documentation

Overview

Code generated by Ice-cream-maker DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
var (
	TableNameWithTenant_Service       = tableNameWithTenant_Service()
	TableNameWithTenant_ServiceStatus = tableNameWithTenant_ServiceStatus()
	TableNameWithTenant_ServiceResult = tableNameWithTenant_ServiceResult()
)
View Source
var ErrInvalidPriority = fmt.Errorf("not a valid Priority, try [%s]", strings.Join(_PriorityNames, ", "))
View Source
var ErrInvalidResultSaveType = fmt.Errorf("not a valid ResultSaveType, try [%s]", strings.Join(_ResultSaveTypeNames, ", "))
View Source
var ErrInvalidStepStatus = fmt.Errorf("not a valid StepStatus, try [%s]", strings.Join(_StepStatusNames, ", "))

Functions

func PriorityNames

func PriorityNames() []string

PriorityNames returns a list of possible string values of Priority.

func ResultSaveTypeNames

func ResultSaveTypeNames() []string

ResultSaveTypeNames returns a list of possible string values of ResultSaveType.

func StepStatusNames

func StepStatusNames() []string

StepStatusNames returns a list of possible string values of StepStatus.

Types

type HttpReq_AgentServiceUpdate

type HttpReq_AgentServiceUpdate struct {
	Version string `json:"version" enum:"v3,v4"`

	V3 v3.HttpReq_AgentServiceUpdate        `json:"-"`
	V4 HttpReq_AgentServiceUpdate_multistep `json:"-"`
}

func (HttpReq_AgentServiceUpdate) MarshalJSON

func (obj HttpReq_AgentServiceUpdate) MarshalJSON() ([]byte, error)

func (*HttpReq_AgentServiceUpdate) UnmarshalJSON

func (obj *HttpReq_AgentServiceUpdate) UnmarshalJSON(bytes []byte) error

type HttpReq_AgentServiceUpdate_multistep

type HttpReq_AgentServiceUpdate_multistep struct {
	Uuid     string     `json:"uuid"`     //pk
	Sequence int        `json:"sequence"` //pk
	Status   StepStatus `json:"status"`
	Result   string     `json:"result"` //StepStatus 값에 따라; 결과 혹은 에러 메시지
	Started  time.Time  `json:"started"`
	Ended    time.Time  `json:"ended"`
}

HttpReq_AgentServiceUpdate_multistep

http request body; agent service update

type HttpReq_Service_create

type HttpReq_Service_create struct {
	ClusterUuid       []string               `json:"cluster_uuid,omitempty"`
	Name              string                 `json:"name,omitempty"`
	Summary           string                 `json:"summary,omitempty"`
	TemplateUuid      string                 `json:"template_uuid,omitempty"`
	Inputs            map[string]interface{} `json:"inputs,omitempty"`
	SubscribedChannel string                 `json:"subscribed_channel,omitempty"`

	IsMultiCluster bool `json:"-"`
	IsMultiSteps   bool `json:"-"`
}

func (HttpReq_Service_create) MarshalJSON

func (obj HttpReq_Service_create) MarshalJSON() ([]byte, error)

func (*HttpReq_Service_create) UnmarshalJSON

func (obj *HttpReq_Service_create) UnmarshalJSON(bytes []byte) error

type HttpRsp_AgentServicePolling

type HttpRsp_AgentServicePolling struct {
	Version string `json:"version" enum:"v3,v4"`

	V3 v3.HttpRsp_AgentServicePolling        `json:"-"`
	V4 HttpRsp_AgentServicePolling_multistep `json:"-"`
}

func (HttpRsp_AgentServicePolling) MarshalJSON

func (obj HttpRsp_AgentServicePolling) MarshalJSON() ([]byte, error)

func (*HttpRsp_AgentServicePolling) UnmarshalJSON

func (obj *HttpRsp_AgentServicePolling) UnmarshalJSON(bytes []byte) error

type HttpRsp_AgentServicePolling_multistep

type HttpRsp_AgentServicePolling_multistep = Service

HttpRsp_AgentServicePolling

http responce body; agent service polling

type HttpRsp_Service

type HttpRsp_Service struct {
	Service       `json:",inline"`
	StatusRecords []ServiceStatus `json:"status_records,omitempty"`
}

func (HttpRsp_Service) TableName

func (HttpRsp_Service) TableName() string

type HttpRsp_ServiceResult

type HttpRsp_ServiceResult = ServiceResult

type HttpRsp_ServiceStatues

type HttpRsp_ServiceStatues = ServiceStatus

type HttpRsp_Service_create

type HttpRsp_Service_create = Service

type Priority

type Priority int
 ENUM(
	low
	middle
	high

)

const (
	// PriorityLow is a Priority of type Low.
	PriorityLow Priority = iota
	// PriorityMiddle is a Priority of type Middle.
	PriorityMiddle
	// PriorityHigh is a Priority of type High.
	PriorityHigh
)

func ParsePriority

func ParsePriority(name string) (Priority, error)

ParsePriority attempts to convert a string to a Priority.

func (Priority) String

func (x Priority) String() string

String implements the Stringer interface.

type ResultSaveType

type ResultSaveType int
 ENUM(
	none
	database
	DigitalOcean:Spaces

)

const (
	// ResultSaveTypeNone is a ResultSaveType of type None.
	ResultSaveTypeNone ResultSaveType = iota
	// ResultSaveTypeDatabase is a ResultSaveType of type Database.
	ResultSaveTypeDatabase
	// ResultSaveTypeDigitalOceanSpaces is a ResultSaveType of type DigitalOcean:Spaces.
	ResultSaveTypeDigitalOceanSpaces
)

func ParseResultSaveType

func ParseResultSaveType(name string) (ResultSaveType, error)

ParseResultSaveType attempts to convert a string to a ResultSaveType.

func (ResultSaveType) String

func (x ResultSaveType) String() string

String implements the Stringer interface.

type Scanner

type Scanner interface {
	Scan(dest ...interface{}) error
}

type Service

type Service struct {
	Name              string                `column:"name"               json:"name,omitempty"`
	Summary           vanilla.NullString    `column:"summary"            json:"summary,omitempty"            swaggertype:"string"`
	TemplateUuid      string                `column:"template_uuid"      json:"template_uuid,omitempty"`
	Flow              string                `column:"flow"               json:"flow,omitempty"`
	Inputs            cryptov2.CryptoObject `column:"inputs"             json:"inputs,omitempty"             swaggertype:"object"`
	StepMax           int                   `column:"step_max"           json:"step_max,omitempty"`
	SubscribedChannel vanilla.NullString    `column:"subscribed_channel" json:"subscribed_channel,omitempty" swaggertype:"string"`
	Priority          Priority              `column:"priority"           json:"priority,omitempty"`
	Created           time.Time             `column:"created"            json:"created,omitempty"`
	// contains filtered or unexported fields
}

func (Service) ColumnNames

func (Service) ColumnNames() []string

func (*Service) Ptrs

func (row *Service) Ptrs() []interface{}

func (*Service) Scan

func (row *Service) Scan(scanner Scanner) error

func (Service) TableName

func (Service) TableName() string

func (Service) Values

func (row Service) Values() []interface{}

type ServiceResult

type ServiceResult struct {
	ResultSaveType ResultSaveType      `column:"result_type" json:"result_type,omitempty"`
	Result         crypto.CryptoString `column:"result"      json:"result,omitempty"`
	Created        time.Time           `column:"created"     json:"created"`
	// contains filtered or unexported fields
}

func (ServiceResult) ColumnNames

func (ServiceResult) ColumnNames() []string

func (*ServiceResult) Ptrs

func (row *ServiceResult) Ptrs() []interface{}

func (*ServiceResult) Scan

func (row *ServiceResult) Scan(scanner Scanner) error

func (ServiceResult) TableName

func (ServiceResult) TableName() string

func (ServiceResult) Values

func (row ServiceResult) Values() []interface{}

type ServiceStatus

type ServiceStatus struct {
	StepMax int                `column:"step_max" json:"step_max,omitempty"`
	StepSeq int                `column:"step_seq" json:"step_seq,omitempty"`
	Status  StepStatus         `column:"status"   json:"status,omitempty"`
	Started vanilla.NullTime   `column:"started"  json:"started,omitempty"       swaggertype:"string"`
	Ended   vanilla.NullTime   `column:"ended"    json:"ended,omitempty"         swaggertype:"string"`
	Message vanilla.NullString `column:"message"  json:"message,omitempty"       swaggertype:"string"`
	// contains filtered or unexported fields
}

func (ServiceStatus) ColumnNames

func (ServiceStatus) ColumnNames() []string

func (*ServiceStatus) Ptrs

func (row *ServiceStatus) Ptrs() []interface{}

func (*ServiceStatus) Scan

func (row *ServiceStatus) Scan(scanner Scanner) error

func (ServiceStatus) TableName

func (ServiceStatus) TableName() string

func (ServiceStatus) Values

func (row ServiceStatus) Values() []interface{}

type Service_polling

type Service_polling struct {
	Created  time.Time `column:"created"`
	Priority Priority  `column:"priority"`
	// contains filtered or unexported fields
}

func (Service_polling) ColumnNames

func (Service_polling) ColumnNames() []string

func (*Service_polling) Ptrs

func (row *Service_polling) Ptrs() []interface{}

func (*Service_polling) Scan

func (row *Service_polling) Scan(scanner Scanner) error

func (Service_polling) TableName

func (Service_polling) TableName() string

func (Service_polling) Values

func (row Service_polling) Values() []interface{}

type StepStatus

type StepStatus int
 ENUM(
	regist 		= 0
	sent 		= 1
	processing	= 2
	succeeded   = 4
	failed		= 8

)

const (
	// StepStatusRegist is a StepStatus of type Regist.
	StepStatusRegist StepStatus = iota
	// StepStatusSent is a StepStatus of type Sent.
	StepStatusSent
	// StepStatusProcessing is a StepStatus of type Processing.
	StepStatusProcessing
	// StepStatusSucceeded is a StepStatus of type Succeeded.
	StepStatusSucceeded StepStatus = iota + 1
	// StepStatusFailed is a StepStatus of type Failed.
	StepStatusFailed StepStatus = iota + 4
)

func ParseStepStatus

func ParseStepStatus(name string) (StepStatus, error)

ParseStepStatus attempts to convert a string to a StepStatus.

func (StepStatus) String

func (x StepStatus) String() string

String implements the Stringer interface.

func (StepStatus) Valid

func (status StepStatus) Valid() error

Jump to

Keyboard shortcuts

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