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: 13 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_ServiceStep   = tableNameWithTenant_ServiceStep()
	TableNameWithTenant_ServiceResult = tableNameWithTenant_ServiceResult()
)

Functions

func OnCompletionNames

func OnCompletionNames() []string

OnCompletionNames returns a list of possible string values of OnCompletion.

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 {
	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

http request body; agent service update

type HttpReq_Service_create

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

	IsMultiCluster 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 {
	// Uuid    string                `json:"uuid"`              //pk
	// Created time.Time             `json:"created,omitempty"` //pk
	Service `json:",inline"`
	Steps   []ServiceStep `json:"steps,omitempty"`
}

HttpRsp_AgentServicePolling

http responce body; agent service polling

func (HttpRsp_AgentServicePolling) TableName

func (HttpRsp_AgentServicePolling) TableName() string

type HttpRsp_Service

type HttpRsp_Service struct {
	Service `json:",inline"`
	Steps   []ServiceStep `json:"steps,omitempty"`
}

func (HttpRsp_Service) TableName

func (HttpRsp_Service) TableName() string

type HttpRsp_ServiceResult

type HttpRsp_ServiceResult = ServiceResult

type HttpRsp_ServiceStep

type HttpRsp_ServiceStep = ServiceStep

type HttpRsp_Service_create

type HttpRsp_Service_create struct {
	Service_create `json:",inline"`
	Steps          []ServiceStep_create `json:"steps,omitempty"`
}

func (HttpRsp_Service_create) TableName

func (HttpRsp_Service_create) TableName() string

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 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"`
	StepCount          int                `column:"step_count"           json:"step_count,omitempty"`
	Priority           Priority           `column:"priority"             json:"priority,omitempty"`
	SubscribedChannel  vanilla.NullString `column:"subscribed_channel"   json:"subscribed_channel,omitempty"   swaggertype:"string"`
	AssignedClientUuid vanilla.NullString `column:"assigned_client_uuid" json:"assigned_client_uuid,omitempty" swaggertype:"string"`
	StepPosition       int                `column:"step_position"        json:"step_position,omitempty"`
	Status             StepStatus         `column:"status"               json:"status,omitempty"`
	Message            vanilla.NullString `column:"message"              json:"message,omitempty"              swaggertype:"string"`
	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"`
	// 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 ServiceStep

type ServiceStep struct {
	Name         string                `column:"name"          json:"name,omitempty"`
	Summary      vanilla.NullString    `column:"summary"       json:"summary,omitempty"       swaggertype:"string"`
	Method       string                `column:"method"        json:"method,omitempty"`
	Args         cryptov2.CryptoObject `column:"args"          json:"args,omitempty"          swaggertype:"object"`
	ResultFilter vanilla.NullString    `column:"result_filter" json:"result_filter,omitempty" swaggertype:"string"`
	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"`
	Created      time.Time             `column:"created"       json:"created,omitempty"`
	// contains filtered or unexported fields
}

func (ServiceStep) ColumnNames

func (ServiceStep) ColumnNames() []string

func (*ServiceStep) Ptrs

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

func (*ServiceStep) Scan

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

func (ServiceStep) TableName

func (ServiceStep) TableName() string

func (ServiceStep) Values

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

type ServiceStep_create

type ServiceStep_create struct {
	Name         string                `column:"name"          json:"name,omitempty"`
	Summary      vanilla.NullString    `column:"summary"       json:"summary,omitempty"       swaggertype:"string"`
	Method       string                `column:"method"        json:"method,omitempty"`
	Args         cryptov2.CryptoObject `column:"args"          json:"args,omitempty"          swaggertype:"object"`
	ResultFilter vanilla.NullString    `column:"result_filter" json:"result_filter,omitempty" swaggertype:"string"`
	Status       StepStatus            `column:"status"        json:"status,omitempty"`
	Created      time.Time             `column:"created"       json:"created,omitempty"`
	// contains filtered or unexported fields
}

func (ServiceStep_create) ColumnNames

func (ServiceStep_create) ColumnNames() []string

func (*ServiceStep_create) Ptrs

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

func (*ServiceStep_create) Scan

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

func (ServiceStep_create) TableName

func (ServiceStep_create) TableName() string

func (ServiceStep_create) Values

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

type ServiceStep_update

type ServiceStep_update struct {
	Status    StepStatus
	Started   vanilla.NullTime
	Ended     vanilla.NullTime
	Timestamp time.Time
	// contains filtered or unexported fields
}

func (ServiceStep_update) TableName

func (ServiceStep_update) TableName() string

type Service_create

type Service_create 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"`
	StepCount         int                `column:"step_count"         json:"step_count,omitempty"`
	Priority          Priority           `column:"priority"           json:"priority,omitempty"`
	SubscribedChannel vanilla.NullString `column:"subscribed_channel" json:"subscribed_channel,omitempty" swaggertype:"string"`
	StepPosition      int                `column:"step_position"      json:"step_position,omitempty"`
	Status            StepStatus         `column:"status"             json:"status,omitempty"`
	Created           time.Time          `column:"created"            json:"created,omitempty"`
	// contains filtered or unexported fields
}

func (Service_create) ColumnNames

func (Service_create) ColumnNames() []string

func (*Service_create) Ptrs

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

func (*Service_create) Scan

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

func (Service_create) TableName

func (Service_create) TableName() string

func (Service_create) Values

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

type Service_polling

type Service_polling struct {
	Uuid      string     `column:"uuid"`
	Timestamp time.Time  `column:"timestamp"`
	Priority  Priority   `column:"priority"`
	Status    StepStatus `column:"status"`
	Created   time.Time  `column:"created"`
	// 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 Service_update

type Service_update struct {
	AssignedClientUuid vanilla.NullString
	StepPosition       int
	Status             StepStatus
	Message            vanilla.NullString
	Timestamp          time.Time
	// contains filtered or unexported fields
}

func (Service_update) TableName

func (Service_update) TableName() string

type StepStatus

type StepStatus int
 ENUM(
	regist 		= 0
	send 		= 1
	processing	= 2
	success		= 4
	fail		= 8

)

const (
	// StepStatusRegist is a StepStatus of type Regist.
	StepStatusRegist StepStatus = iota
	// StepStatusSend is a StepStatus of type Send.
	StepStatusSend
	// StepStatusProcessing is a StepStatus of type Processing.
	StepStatusProcessing
	// StepStatusSuccess is a StepStatus of type Success.
	StepStatusSuccess StepStatus = iota + 1
	// StepStatusFail is a StepStatus of type Fail.
	StepStatusFail 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