v2

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

Documentation

Overview

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

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.

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_ServiceStep_Create

type HttpReq_ServiceStep_Create struct {
	Args map[string]interface{} `json:"args,omitempty"`
}

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"`
}

type HttpReq_Service_create

type HttpReq_Service_create struct {
	Uuid                   string `json:"uuid"` //pk
	HttpReq_Service_Create `json:",inline"`
	Steps                  []HttpReq_ServiceStep_Create `json:"steps,omitempty"`
}

type HttpRsp_AgentServicePolling

type HttpRsp_AgentServicePolling struct {
	// Uuid    string                `json:"uuid"`              //pk
	// Created time.Time             `json:"created,omitempty"` //pk
	Service_status `json:",inline"`
	Steps          []ServiceStep_tangled `json:"steps,omitempty"`
}

HttpRsp_AgentServicePolling

http responce body; agent service polling

type HttpRsp_Service

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

type HttpRsp_ServiceStep

type HttpRsp_ServiceStep struct {
	ServiceStep_tangled `json:",inline"`
}

type HttpRsp_Service_create

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

type HttpRsp_Service_status

type HttpRsp_Service_status struct {
	Service_status `json:",inline"`
	Steps          []ServiceStep_tangled `json:"steps,omitempty"`
}

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 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 {
	Uuid              string    `column:"uuid"    json:"uuid,omitempty"`    //pk
	Created           time.Time `column:"created" json:"created,omitempty"` //pk
	Service_essential `json:",inline"`
}

func (Service) ColumnNames

func (Service) ColumnNames() []string

func (Service) ColumnNamesWithAlias

func (Service) ColumnNamesWithAlias() []string

func (*Service) Ptrs

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

func (*Service) Scan

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

func (Service) Values

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

type ServiceResult

type ServiceResult struct {
	Uuid    string    `column:"uuid"    json:"uuid,omitempty"`    //pk
	Created time.Time `column:"created" json:"created,omitempty"` //pk

	ServiceResults_essential `json:",inline"`
}

func (ServiceResult) ColumnNames

func (ServiceResult) ColumnNames() []string

func (ServiceResult) ColumnNamesWithAlias

func (ServiceResult) ColumnNamesWithAlias() []string

func (*ServiceResult) Ptrs

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

func (*ServiceResult) Scan

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

func (ServiceResult) Values

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

type ServiceResults_essential

type ServiceResults_essential struct {
	ResultSaveType ResultSaveType      `column:"result_type" json:"result_type,omitempty"`
	Result         crypto.CryptoString `column:"result"      json:"result,omitempty"`
}

func (ServiceResults_essential) ColumnNames

func (ServiceResults_essential) ColumnNames() []string

func (ServiceResults_essential) ColumnNamesWithAlias

func (ServiceResults_essential) ColumnNamesWithAlias() []string

func (*ServiceResults_essential) Ptrs

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

func (*ServiceResults_essential) Scan

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

func (ServiceResults_essential) TableName

func (ServiceResults_essential) TableName() string

func (ServiceResults_essential) Values

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

type ServiceStatus

type ServiceStatus struct {
	Uuid    string    `column:"uuid"    json:"uuid,omitempty"`    //pk
	Created time.Time `column:"created" json:"created,omitempty"` //pk

	ServiceStatus_essential `json:",inline"`
}

func (ServiceStatus) ColumnNames

func (ServiceStatus) ColumnNames() []string

func (ServiceStatus) ColumnNamesWithAlias

func (ServiceStatus) ColumnNamesWithAlias() []string

func (*ServiceStatus) Ptrs

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

func (*ServiceStatus) Scan

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

func (ServiceStatus) Values

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

type ServiceStatus_essential

type ServiceStatus_essential struct {
	AssignedClientUuid string             `column:"assigned_client_uuid" json:"assigned_client_uuid,omitempty"`
	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"`
}

func (ServiceStatus_essential) ColumnNames

func (ServiceStatus_essential) ColumnNames() []string

func (ServiceStatus_essential) ColumnNamesWithAlias

func (ServiceStatus_essential) ColumnNamesWithAlias() []string

func (*ServiceStatus_essential) Ptrs

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

func (*ServiceStatus_essential) Scan

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

func (ServiceStatus_essential) TableName

func (ServiceStatus_essential) TableName() string

func (ServiceStatus_essential) Values

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

type ServiceStep

type ServiceStep struct {
	Uuid     string    `column:"uuid"     json:"uuid,omitempty"`     //pk
	Sequence int       `column:"sequence" json:"sequence,omitempty"` //pk
	Created  time.Time `column:"created"  json:"created,omitempty"`  //pk

	ServiceStep_essential `json:",inline"`
}

func (ServiceStep) ColumnNames

func (ServiceStep) ColumnNames() []string

func (ServiceStep) ColumnNamesWithAlias

func (ServiceStep) ColumnNamesWithAlias() []string

func (*ServiceStep) Ptrs

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

func (*ServiceStep) Scan

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

func (ServiceStep) Values

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

type ServiceStepStatus

type ServiceStepStatus struct {
	Uuid     string    `column:"uuid"     json:"uuid,omitempty"`     //pk
	Sequence int       `column:"sequence" json:"sequence,omitempty"` //pk
	Created  time.Time `column:"created"  json:"created,omitempty"`  //pk

	ServiceStepStatus_essential `json:",inline"`
}

func (ServiceStepStatus) ColumnNames

func (ServiceStepStatus) ColumnNames() []string

func (ServiceStepStatus) ColumnNamesWithAlias

func (ServiceStepStatus) ColumnNamesWithAlias() []string

func (*ServiceStepStatus) Ptrs

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

func (*ServiceStepStatus) Scan

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

func (ServiceStepStatus) Values

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

type ServiceStepStatus_essential

type ServiceStepStatus_essential struct {
	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"`
}

func (ServiceStepStatus_essential) ColumnNames

func (ServiceStepStatus_essential) ColumnNames() []string

func (ServiceStepStatus_essential) ColumnNamesWithAlias

func (ServiceStepStatus_essential) ColumnNamesWithAlias() []string

func (*ServiceStepStatus_essential) Ptrs

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

func (*ServiceStepStatus_essential) Scan

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

func (ServiceStepStatus_essential) TableName

func (ServiceStepStatus_essential) TableName() string

func (ServiceStepStatus_essential) Values

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

type ServiceStep_essential

type ServiceStep_essential 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"`
}

func (ServiceStep_essential) ColumnNames

func (ServiceStep_essential) ColumnNames() []string

func (ServiceStep_essential) ColumnNamesWithAlias

func (ServiceStep_essential) ColumnNamesWithAlias() []string

func (*ServiceStep_essential) Ptrs

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

func (*ServiceStep_essential) Scan

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

func (ServiceStep_essential) TableName

func (ServiceStep_essential) TableName() string

func (ServiceStep_essential) Values

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

type ServiceStep_tangled

type ServiceStep_tangled struct {
	ServiceStep                 `json:",inline"` //step
	ServiceStepStatus_essential `json:",inline"` //status

	Updated vanilla.NullTime `column:"updated" json:"updated,omitempty" swaggertype:"string"` //pk
}

func (ServiceStep_tangled) ColumnNames

func (ServiceStep_tangled) ColumnNames() []string

func (ServiceStep_tangled) ColumnNamesWithAlias

func (ServiceStep_tangled) ColumnNamesWithAlias() []string

func (*ServiceStep_tangled) Ptrs

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

func (*ServiceStep_tangled) Scan

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

func (ServiceStep_tangled) TableName

func (record ServiceStep_tangled) TableName() string
*

` SELECT A.uuid, A.sequence, A.created,

     name, summary, method, args, result_filter,
     B.created AS updated, IFNULL(status, 0) AS status, started, ended
FROM service_step A
LEFT JOIN service_step_status B
       ON A.uuid = B.uuid
      AND A.sequence = B.sequence
      AND B.created = (
          SELECT MAX(B.created) AS MAX_created
            FROM service_step_status B
           WHERE A.uuid = B.uuid
             AND A.sequence = B.sequence
          )

`

func (ServiceStep_tangled) Values

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

type Service_essential

type Service_essential struct {
	Name              string             `column:"name"               json:"name,omitempty"`
	Summary           vanilla.NullString `column:"summary"            json:"summary,omitempty"            swaggertype:"string"`
	ClusterUuid       string             `column:"cluster_uuid"       json:"cluster_uuid,omitempty"`
	TemplateUuid      string             `column:"template_uuid"      json:"template_uuid,omitempty"`
	StepCount         int                `column:"step_count"         json:"step_count,omitempty"`
	SubscribedChannel vanilla.NullString `column:"subscribed_channel" json:"subscribed_channel,omitempty" swaggertype:"string"`
}

func (Service_essential) ColumnNames

func (Service_essential) ColumnNames() []string

func (Service_essential) ColumnNamesWithAlias

func (Service_essential) ColumnNamesWithAlias() []string

func (*Service_essential) Ptrs

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

func (*Service_essential) Scan

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

func (Service_essential) TableName

func (Service_essential) TableName() string

func (Service_essential) Values

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

type Service_status

type Service_status struct {
	Service                 `json:",inline"` //service
	ServiceStatus_essential `json:",inline"` //status

	Updated vanilla.NullTime `column:"updated" json:"updated,omitempty" swaggertype:"string"` //pk
}

func (Service_status) ColumnNames

func (Service_status) ColumnNames() []string

func (Service_status) ColumnNamesWithAlias

func (Service_status) ColumnNamesWithAlias() []string

func (*Service_status) Ptrs

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

func (*Service_status) Scan

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

func (Service_status) TableName

func (record Service_status) TableName() string

` SELECT A.uuid, A.created,

       name, summary, cluster_uuid, template_uuid, step_count, subscribed_channel,
       B.created AS updated, assigned_client_uuid, step_position, status, message
  FROM service A
  LEFT JOIN service_status B
         ON A.uuid = B.uuid
        AND B.created = (
            SELECT MAX(B.created) AS MAX_created
              FROM service_status B
             WHERE A.uuid = B.uuid
			)

`

func (Service_status) Values

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

type Service_tangled

type Service_tangled struct {
	Service                  `json:",inline"` //service
	ServiceStatus_essential  `json:",inline"` //status
	ServiceResults_essential `json:",inline"` //result

	Updated vanilla.NullTime `column:"updated" json:"updated,omitempty" swaggertype:"string"` //pk
}

func (Service_tangled) ColumnNames

func (Service_tangled) ColumnNames() []string

func (Service_tangled) ColumnNamesWithAlias

func (Service_tangled) ColumnNamesWithAlias() []string

func (*Service_tangled) Ptrs

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

func (*Service_tangled) Scan

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

func (Service_tangled) TableName

func (record Service_tangled) TableName() string

` SELECT A.uuid, A.created,

       name, summary, cluster_uuid, template_uuid, step_count, subscribed_channel,
       B.created AS updated, assigned_client_uuid, step_position, status, message, result_type, result
  FROM service A
  LEFT JOIN service_status B
         ON A.uuid = B.uuid
        AND B.created = (
            SELECT MAX(B.created) AS MAX_created
              FROM service_status B
             WHERE A.uuid = B.uuid
			)
  LEFT JOIN service_result C
         ON A.uuid = C.uuid
        AND C.created = (
            SELECT MAX(C.created) AS MAX_created
              FROM service_result C
             WHERE A.uuid = C.uuid
			)

`

func (Service_tangled) Values

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

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.

Jump to

Keyboard shortcuts

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