model

package
v0.0.0-...-e8da0a6 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidClusterClientSessionFields = fmt.Errorf("not a valid ClusterClientSessionFields, try [%s]", strings.Join(_ClusterClientSessionFieldsNames, ", "))
View Source
var ErrInvalidClusterClientTokenFields = fmt.Errorf("not a valid ClusterClientTokenFields, try [%s]", strings.Join(_ClusterClientTokenFieldsNames, ", "))
View Source
var ErrInvalidClusterFields = fmt.Errorf("not a valid ClusterFields, try [%s]", strings.Join(_ClusterFieldsNames, ", "))
View Source
var ErrInvalidClusterInformationFields = fmt.Errorf("not a valid ClusterInformationFields, try [%s]", strings.Join(_ClusterInformationFieldsNames, ", "))
View Source
var ErrInvalidClusterServiceFields = fmt.Errorf("not a valid ClusterServiceFields, try [%s]", strings.Join(_ClusterServiceFieldsNames, ", "))
View Source
var ErrInvalidClusterServiceResultFields = fmt.Errorf("not a valid ClusterServiceResultFields, try [%s]", strings.Join(_ClusterServiceResultFieldsNames, ", "))
View Source
var ErrInvalidClusterServiceStatusFields = fmt.Errorf("not a valid ClusterServiceStatusFields, try [%s]", strings.Join(_ClusterServiceStatusFieldsNames, ", "))
View Source
var ErrInvalidGlobalVariableFields = fmt.Errorf("not a valid GlobalVariableFields, try [%s]", strings.Join(_GlobalVariableFieldsNames, ", "))
View Source
var ErrInvalidOrigin = fmt.Errorf("not a valid Origin, try [%s]", strings.Join(_OriginNames, ", "))
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, ", "))
View Source
var ErrInvalidTemplateFields = fmt.Errorf("not a valid TemplateFields, try [%s]", strings.Join(_TemplateFieldsNames, ", "))
View Source
var ErrInvalidWebhookConditionValidator = fmt.Errorf("not a valid WebhookConditionValidator, try [%s]", strings.Join(_WebhookConditionValidatorNames, ", "))
View Source
var ErrInvalidWebhookFields = fmt.Errorf("not a valid WebhookFields, try [%s]", strings.Join(_WebhookFieldsNames, ", "))

Functions

func ClusterClientSessionFieldsNames

func ClusterClientSessionFieldsNames() []string

ClusterClientSessionFieldsNames returns a list of possible string values of ClusterClientSessionFields.

func ClusterClientTokenFieldsNames

func ClusterClientTokenFieldsNames() []string

ClusterClientTokenFieldsNames returns a list of possible string values of ClusterClientTokenFields.

func ClusterFieldsNames

func ClusterFieldsNames() []string

ClusterFieldsNames returns a list of possible string values of ClusterFields.

func ClusterInformationFieldsNames

func ClusterInformationFieldsNames() []string

ClusterInformationFieldsNames returns a list of possible string values of ClusterInformationFields.

func ClusterServiceFieldsNames

func ClusterServiceFieldsNames() []string

ClusterServiceFieldsNames returns a list of possible string values of ClusterServiceFields.

func ClusterServiceResultFieldsNames

func ClusterServiceResultFieldsNames() []string

ClusterServiceResultFieldsNames returns a list of possible string values of ClusterServiceResultFields.

func ClusterServiceStatusFieldsNames

func ClusterServiceStatusFieldsNames() []string

ClusterServiceStatusFieldsNames returns a list of possible string values of ClusterServiceStatusFields.

func GlobalVariableFieldsNames

func GlobalVariableFieldsNames() []string

GlobalVariableFieldsNames returns a list of possible string values of GlobalVariableFields.

func OriginNames

func OriginNames() []string

OriginNames returns a list of possible string values of Origin.

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.

func TemplateFieldsNames

func TemplateFieldsNames() []string

TemplateFieldsNames returns a list of possible string values of TemplateFields.

func WebhookConditionValidatorNames

func WebhookConditionValidatorNames() []string

WebhookConditionValidatorNames returns a list of possible string values of WebhookConditionValidator.

func WebhookFieldsNames

func WebhookFieldsNames() []string

WebhookFieldsNames returns a list of possible string values of WebhookFields.

Types

type Cluster

type Cluster struct {
	ID      int64          `column:"id"`   // pk
	UUID    string         `column:"uuid"` // uuid
	Name    string         `column:"name"`
	Summary sql.NullString `column:"summary"`
	Created time.Time      `column:"created"`
	Updated time.Time      `column:"updated"`
}

func (Cluster) ColumnNames

func (Cluster) ColumnNames() []string

func (Cluster) ColumnValues

func (r Cluster) ColumnValues() []any

func (*Cluster) Scan

func (r *Cluster) Scan(s Scanner) error

func (Cluster) TableName

func (Cluster) TableName() string

type ClusterClientSession

type ClusterClientSession struct {
	ID                     int64     `column:"id"`   // pk
	UUID                   string    `column:"uuid"` // uuid
	ClusterUUID            string    `column:"cluster_uuid"`
	ClusterClientTokenUUID string    `column:"cluster_client_token_uuid"`
	Token                  string    `column:"token"`
	IssuedAtTime           time.Time `column:"issued_at_time"`
	ExpirationTime         time.Time `column:"expiration_time"`
	Created                time.Time `column:"created"`
	Updated                time.Time `column:"updated"`
}

func (ClusterClientSession) ColumnNames

func (ClusterClientSession) ColumnNames() []string

func (ClusterClientSession) ColumnValues

func (r ClusterClientSession) ColumnValues() []any

func (*ClusterClientSession) Scan

func (r *ClusterClientSession) Scan(s Scanner) error

func (ClusterClientSession) TableName

func (ClusterClientSession) TableName() string

type ClusterClientSessionClaim

type ClusterClientSessionClaim struct {
	ClusterUUID            string `json:"cluster-uuid,omitempty"`
	ClusterClientTokenUUID string `json:"cluster-client-token-uuid,omitempty"`
	UUID                   string `json:"uuid,omitempty"`
	IssuedAt               int64  `json:"iat,omitempty"`
	ExpiresAt              int64  `json:"exp,omitempty"`
	ClientVersion          string `json:"client-version,omitempty"`
	ClientLibVersion       string `json:"client_lib_version"`
}

func NewClusterClientSessionClaim

func NewClusterClientSessionClaim(clusterUUID, clientTokenUUID, clientSessionUUID string, iat, exp time.Time, clientVersion, clientLibVersion string) *ClusterClientSessionClaim

func (ClusterClientSessionClaim) Valid

func (claim ClusterClientSessionClaim) Valid() error

func (ClusterClientSessionClaim) VerifyExpiresAt

func (claim ClusterClientSessionClaim) VerifyExpiresAt(cmp int64, req bool) bool

func (ClusterClientSessionClaim) VerifyIssuedAt

func (claim ClusterClientSessionClaim) VerifyIssuedAt(cmp int64, req bool) bool

type ClusterClientSessionFields

type ClusterClientSessionFields int

ENUM( id uuid cluster_client_token_uuid cluster_uuid token issued_at_time expiration_time created updated )

const (
	// ClusterClientSessionFieldsId is a ClusterClientSessionFields of type Id.
	ClusterClientSessionFieldsId ClusterClientSessionFields = iota
	// ClusterClientSessionFieldsUuid is a ClusterClientSessionFields of type Uuid.
	ClusterClientSessionFieldsUuid
	// ClusterClientSessionFieldsClusterClientTokenUuid is a ClusterClientSessionFields of type Cluster_client_token_uuid.
	ClusterClientSessionFieldsClusterClientTokenUuid
	// ClusterClientSessionFieldsClusterUuid is a ClusterClientSessionFields of type Cluster_uuid.
	ClusterClientSessionFieldsClusterUuid
	// ClusterClientSessionFieldsToken is a ClusterClientSessionFields of type Token.
	ClusterClientSessionFieldsToken
	// ClusterClientSessionFieldsIssuedAtTime is a ClusterClientSessionFields of type Issued_at_time.
	ClusterClientSessionFieldsIssuedAtTime
	// ClusterClientSessionFieldsExpirationTime is a ClusterClientSessionFields of type Expiration_time.
	ClusterClientSessionFieldsExpirationTime
	// ClusterClientSessionFieldsCreated is a ClusterClientSessionFields of type Created.
	ClusterClientSessionFieldsCreated
	// ClusterClientSessionFieldsUpdated is a ClusterClientSessionFields of type Updated.
	ClusterClientSessionFieldsUpdated
)

func ParseClusterClientSessionFields

func ParseClusterClientSessionFields(name string) (ClusterClientSessionFields, error)

ParseClusterClientSessionFields attempts to convert a string to a ClusterClientSessionFields.

func (ClusterClientSessionFields) IsValid

func (x ClusterClientSessionFields) IsValid() bool

IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values

func (ClusterClientSessionFields) String

String implements the Stringer interface.

type ClusterClientToken

type ClusterClientToken struct {
	ID             int64          `column:"id"`   // pk
	UUID           string         `column:"uuid"` // uuid
	Name           string         `column:"name"`
	Summary        sql.NullString `column:"summary"`
	ClusterUUID    string         `column:"cluster_uuid"`
	Token          string         `column:"token"`
	IssuedAtTime   time.Time      `column:"issued_at_time"`
	ExpirationTime time.Time      `column:"expiration_time"`
	Created        time.Time      `column:"created"`
	Updated        time.Time      `column:"updated"`
}

func (ClusterClientToken) ColumnNames

func (ClusterClientToken) ColumnNames() []string

func (ClusterClientToken) ColumnValues

func (r ClusterClientToken) ColumnValues() []any

func (*ClusterClientToken) Scan

func (r *ClusterClientToken) Scan(s Scanner) error

func (ClusterClientToken) TableName

func (ClusterClientToken) TableName() string

type ClusterClientTokenFields

type ClusterClientTokenFields int

ENUM( id uuid name summary cluster_uuid token issued_at_time expiration_time created updated )

const (
	// ClusterClientTokenFieldsId is a ClusterClientTokenFields of type Id.
	ClusterClientTokenFieldsId ClusterClientTokenFields = iota
	// ClusterClientTokenFieldsUuid is a ClusterClientTokenFields of type Uuid.
	ClusterClientTokenFieldsUuid
	// ClusterClientTokenFieldsName is a ClusterClientTokenFields of type Name.
	ClusterClientTokenFieldsName
	// ClusterClientTokenFieldsSummary is a ClusterClientTokenFields of type Summary.
	ClusterClientTokenFieldsSummary
	// ClusterClientTokenFieldsClusterUuid is a ClusterClientTokenFields of type Cluster_uuid.
	ClusterClientTokenFieldsClusterUuid
	// ClusterClientTokenFieldsToken is a ClusterClientTokenFields of type Token.
	ClusterClientTokenFieldsToken
	// ClusterClientTokenFieldsIssuedAtTime is a ClusterClientTokenFields of type Issued_at_time.
	ClusterClientTokenFieldsIssuedAtTime
	// ClusterClientTokenFieldsExpirationTime is a ClusterClientTokenFields of type Expiration_time.
	ClusterClientTokenFieldsExpirationTime
	// ClusterClientTokenFieldsCreated is a ClusterClientTokenFields of type Created.
	ClusterClientTokenFieldsCreated
	// ClusterClientTokenFieldsUpdated is a ClusterClientTokenFields of type Updated.
	ClusterClientTokenFieldsUpdated
)

func ParseClusterClientTokenFields

func ParseClusterClientTokenFields(name string) (ClusterClientTokenFields, error)

ParseClusterClientTokenFields attempts to convert a string to a ClusterClientTokenFields.

func (ClusterClientTokenFields) IsValid

func (x ClusterClientTokenFields) IsValid() bool

IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values

func (ClusterClientTokenFields) String

func (x ClusterClientTokenFields) String() string

String implements the Stringer interface.

type ClusterFields

type ClusterFields int

ENUM( id uuid name summary created updated )

const (
	// ClusterFieldsId is a ClusterFields of type Id.
	ClusterFieldsId ClusterFields = iota
	// ClusterFieldsUuid is a ClusterFields of type Uuid.
	ClusterFieldsUuid
	// ClusterFieldsName is a ClusterFields of type Name.
	ClusterFieldsName
	// ClusterFieldsSummary is a ClusterFields of type Summary.
	ClusterFieldsSummary
	// ClusterFieldsCreated is a ClusterFields of type Created.
	ClusterFieldsCreated
	// ClusterFieldsUpdated is a ClusterFields of type Updated.
	ClusterFieldsUpdated
)

func ParseClusterFields

func ParseClusterFields(name string) (ClusterFields, error)

ParseClusterFields attempts to convert a string to a ClusterFields.

func (ClusterFields) IsValid

func (x ClusterFields) IsValid() bool

IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values

func (ClusterFields) String

func (x ClusterFields) String() string

String implements the Stringer interface.

type ClusterInformation

type ClusterInformation struct {
	ID          uint   `column:"id"`
	ClusterUUID string `column:"cluster_uuid"`
	// PollingCount int    `column:"polling_count"`
	PollingOffset time.Time `column:"polling_offset"`
	Created       time.Time `column:"created"`
	Updated       time.Time `column:"updated"`
}

func (ClusterInformation) ColumnNames

func (ClusterInformation) ColumnNames() []string

func (ClusterInformation) ColumnValues

func (r ClusterInformation) ColumnValues() []any

func (*ClusterInformation) Scan

func (r *ClusterInformation) Scan(s Scanner) error

func (ClusterInformation) TableName

func (ClusterInformation) TableName() string

type ClusterInformationFields

type ClusterInformationFields int

ENUM( id cluster_uuid polling_offset created updated )

const (
	// ClusterInformationFieldsId is a ClusterInformationFields of type Id.
	ClusterInformationFieldsId ClusterInformationFields = iota
	// ClusterInformationFieldsClusterUuid is a ClusterInformationFields of type Cluster_uuid.
	ClusterInformationFieldsClusterUuid
	// ClusterInformationFieldsPollingOffset is a ClusterInformationFields of type Polling_offset.
	ClusterInformationFieldsPollingOffset
	// ClusterInformationFieldsCreated is a ClusterInformationFields of type Created.
	ClusterInformationFieldsCreated
	// ClusterInformationFieldsUpdated is a ClusterInformationFields of type Updated.
	ClusterInformationFieldsUpdated
)

func ParseClusterInformationFields

func ParseClusterInformationFields(name string) (ClusterInformationFields, error)

ParseClusterInformationFields attempts to convert a string to a ClusterInformationFields.

func (ClusterInformationFields) IsValid

func (x ClusterInformationFields) IsValid() bool

IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values

func (ClusterInformationFields) String

func (x ClusterInformationFields) String() string

String implements the Stringer interface.

type ClusterService

type ClusterService struct {
	PartitionDate     time.Time                 `column:"pdate"`        // PK date
	ClusterUUID       string                    `column:"cluster_uuid"` // PK char(32) cluster.uuid
	UUID              string                    `column:"uuid"`         // PK char(32) service.uuid
	Name              string                    `column:"name"`
	Summary           sql.NullString            `column:"summary"`
	TemplateUUID      string                    `column:"template_uuid"`
	Flow              string                    `column:"flow"`
	Inputs            cryptography.CipherObject `column:"inputs"`
	StepMax           int                       `column:"step_max"`
	SubscribedChannel sql.NullString            `column:"subscribed_channel"`
	Priority          Priority                  `column:"priority"`
	Created           time.Time                 `column:"created"`
}

func (ClusterService) ColumnNames

func (ClusterService) ColumnNames() []string

func (ClusterService) ColumnValues

func (r ClusterService) ColumnValues() []any

func (*ClusterService) Scan

func (r *ClusterService) Scan(s Scanner) error

func (ClusterService) TableName

func (ClusterService) TableName() string

type ClusterServiceFields

type ClusterServiceFields int

ENUM( pdate cluster_uuid uuid name summary template_uuid flow inputs step_max subscribed_channel priority created )

const (
	// ClusterServiceFieldsPdate is a ClusterServiceFields of type Pdate.
	ClusterServiceFieldsPdate ClusterServiceFields = iota
	// ClusterServiceFieldsClusterUuid is a ClusterServiceFields of type Cluster_uuid.
	ClusterServiceFieldsClusterUuid
	// ClusterServiceFieldsUuid is a ClusterServiceFields of type Uuid.
	ClusterServiceFieldsUuid
	// ClusterServiceFieldsName is a ClusterServiceFields of type Name.
	ClusterServiceFieldsName
	// ClusterServiceFieldsSummary is a ClusterServiceFields of type Summary.
	ClusterServiceFieldsSummary
	// ClusterServiceFieldsTemplateUuid is a ClusterServiceFields of type Template_uuid.
	ClusterServiceFieldsTemplateUuid
	// ClusterServiceFieldsFlow is a ClusterServiceFields of type Flow.
	ClusterServiceFieldsFlow
	// ClusterServiceFieldsInputs is a ClusterServiceFields of type Inputs.
	ClusterServiceFieldsInputs
	// ClusterServiceFieldsStepMax is a ClusterServiceFields of type Step_max.
	ClusterServiceFieldsStepMax
	// ClusterServiceFieldsSubscribedChannel is a ClusterServiceFields of type Subscribed_channel.
	ClusterServiceFieldsSubscribedChannel
	// ClusterServiceFieldsPriority is a ClusterServiceFields of type Priority.
	ClusterServiceFieldsPriority
	// ClusterServiceFieldsCreated is a ClusterServiceFields of type Created.
	ClusterServiceFieldsCreated
)

func ParseClusterServiceFields

func ParseClusterServiceFields(name string) (ClusterServiceFields, error)

ParseClusterServiceFields attempts to convert a string to a ClusterServiceFields.

func (ClusterServiceFields) IsValid

func (x ClusterServiceFields) IsValid() bool

IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values

func (ClusterServiceFields) String

func (x ClusterServiceFields) String() string

String implements the Stringer interface.

type ClusterServiceResult

type ClusterServiceResult struct {
	PartitionDate  time.Time                 `column:"pdate"`        // pk date
	ClusterUUID    string                    `column:"cluster_uuid"` // pk char(32) cluster.uuid
	UUID           string                    `column:"uuid"`         // pk char(32) service.uuid
	ResultSaveType ResultSaveType            `column:"result_type"`
	Result         cryptography.CipherString `column:"result"`
	Created        time.Time                 `column:"created"`
}

func (ClusterServiceResult) ColumnNames

func (ClusterServiceResult) ColumnNames() []string

func (ClusterServiceResult) ColumnValues

func (r ClusterServiceResult) ColumnValues() []any

func (*ClusterServiceResult) Scan

func (r *ClusterServiceResult) Scan(s Scanner) error

func (ClusterServiceResult) TableName

func (ClusterServiceResult) TableName() string

type ClusterServiceResultFields

type ClusterServiceResultFields int

ENUM( pdate cluster_uuid uuid result_type result created )

const (
	// ClusterServiceResultFieldsPdate is a ClusterServiceResultFields of type Pdate.
	ClusterServiceResultFieldsPdate ClusterServiceResultFields = iota
	// ClusterServiceResultFieldsClusterUuid is a ClusterServiceResultFields of type Cluster_uuid.
	ClusterServiceResultFieldsClusterUuid
	// ClusterServiceResultFieldsUuid is a ClusterServiceResultFields of type Uuid.
	ClusterServiceResultFieldsUuid
	// ClusterServiceResultFieldsResultType is a ClusterServiceResultFields of type Result_type.
	ClusterServiceResultFieldsResultType
	// ClusterServiceResultFieldsResult is a ClusterServiceResultFields of type Result.
	ClusterServiceResultFieldsResult
	// ClusterServiceResultFieldsCreated is a ClusterServiceResultFields of type Created.
	ClusterServiceResultFieldsCreated
)

func ParseClusterServiceResultFields

func ParseClusterServiceResultFields(name string) (ClusterServiceResultFields, error)

ParseClusterServiceResultFields attempts to convert a string to a ClusterServiceResultFields.

func (ClusterServiceResultFields) IsValid

func (x ClusterServiceResultFields) IsValid() bool

IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values

func (ClusterServiceResultFields) String

String implements the Stringer interface.

type ClusterServiceStatus

type ClusterServiceStatus struct {
	PartitionDate time.Time      `column:"pdate"`        // PK date
	ClusterUUID   string         `column:"cluster_uuid"` // PK char(32) cluster.uuid
	Uuid          string         `column:"uuid"`         // PK char(32) service.uuid
	Created       time.Time      `column:"created"`      // PK datetime(6)
	StepMax       int            `column:"step_max"`
	StepSeq       int            `column:"step_seq"`
	Status        StepStatus     `column:"status"`
	Started       sql.NullTime   `column:"started"`
	Ended         sql.NullTime   `column:"ended"`
	Message       sql.NullString `column:"message"`
}

func (ClusterServiceStatus) ColumnNames

func (ClusterServiceStatus) ColumnNames() []string

func (ClusterServiceStatus) ColumnValues

func (r ClusterServiceStatus) ColumnValues() []any

func (*ClusterServiceStatus) Scan

func (r *ClusterServiceStatus) Scan(s Scanner) error

func (ClusterServiceStatus) TableName

func (ClusterServiceStatus) TableName() string

type ClusterServiceStatusFields

type ClusterServiceStatusFields int

ENUM( pdate cluster_uuid uuid created step_max step_seq status started ended message )

const (
	// ClusterServiceStatusFieldsPdate is a ClusterServiceStatusFields of type Pdate.
	ClusterServiceStatusFieldsPdate ClusterServiceStatusFields = iota
	// ClusterServiceStatusFieldsClusterUuid is a ClusterServiceStatusFields of type Cluster_uuid.
	ClusterServiceStatusFieldsClusterUuid
	// ClusterServiceStatusFieldsUuid is a ClusterServiceStatusFields of type Uuid.
	ClusterServiceStatusFieldsUuid
	// ClusterServiceStatusFieldsCreated is a ClusterServiceStatusFields of type Created.
	ClusterServiceStatusFieldsCreated
	// ClusterServiceStatusFieldsStepMax is a ClusterServiceStatusFields of type Step_max.
	ClusterServiceStatusFieldsStepMax
	// ClusterServiceStatusFieldsStepSeq is a ClusterServiceStatusFields of type Step_seq.
	ClusterServiceStatusFieldsStepSeq
	// ClusterServiceStatusFieldsStatus is a ClusterServiceStatusFields of type Status.
	ClusterServiceStatusFieldsStatus
	// ClusterServiceStatusFieldsStarted is a ClusterServiceStatusFields of type Started.
	ClusterServiceStatusFieldsStarted
	// ClusterServiceStatusFieldsEnded is a ClusterServiceStatusFields of type Ended.
	ClusterServiceStatusFieldsEnded
	// ClusterServiceStatusFieldsMessage is a ClusterServiceStatusFields of type Message.
	ClusterServiceStatusFieldsMessage
)

func ParseClusterServiceStatusFields

func ParseClusterServiceStatusFields(name string) (ClusterServiceStatusFields, error)

ParseClusterServiceStatusFields attempts to convert a string to a ClusterServiceStatusFields.

func (ClusterServiceStatusFields) IsValid

func (x ClusterServiceStatusFields) IsValid() bool

IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values

func (ClusterServiceStatusFields) String

String implements the Stringer interface.

type GlobalVariable

type GlobalVariable struct {
	ID      int64          `column:"id"`   // pk
	UUID    string         `column:"uuid"` // uuid
	Name    string         `column:"name"`
	Summary sql.NullString `column:"summary"`
	Value   string         `column:"value"`
	Created time.Time      `column:"created"`
	Updated time.Time      `column:"updated"`
}

func (GlobalVariable) ColumnNames

func (GlobalVariable) ColumnNames() []string

func (GlobalVariable) ColumnValues

func (r GlobalVariable) ColumnValues() []any

func (*GlobalVariable) Scan

func (r *GlobalVariable) Scan(s Scanner) error

func (GlobalVariable) TableName

func (GlobalVariable) TableName() string

type GlobalVariableFields

type GlobalVariableFields int

ENUM( id uuid name summary value created updated )

const (
	// GlobalVariableFieldsId is a GlobalVariableFields of type Id.
	GlobalVariableFieldsId GlobalVariableFields = iota
	// GlobalVariableFieldsUuid is a GlobalVariableFields of type Uuid.
	GlobalVariableFieldsUuid
	// GlobalVariableFieldsName is a GlobalVariableFields of type Name.
	GlobalVariableFieldsName
	// GlobalVariableFieldsSummary is a GlobalVariableFields of type Summary.
	GlobalVariableFieldsSummary
	// GlobalVariableFieldsValue is a GlobalVariableFields of type Value.
	GlobalVariableFieldsValue
	// GlobalVariableFieldsCreated is a GlobalVariableFields of type Created.
	GlobalVariableFieldsCreated
	// GlobalVariableFieldsUpdated is a GlobalVariableFields of type Updated.
	GlobalVariableFieldsUpdated
)

func ParseGlobalVariableFields

func ParseGlobalVariableFields(name string) (GlobalVariableFields, error)

ParseGlobalVariableFields attempts to convert a string to a GlobalVariableFields.

func (GlobalVariableFields) IsValid

func (x GlobalVariableFields) IsValid() bool

IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values

func (GlobalVariableFields) String

func (x GlobalVariableFields) String() string

String implements the Stringer interface.

type ModelContext

type ModelContext interface {
	TableName() string
	ColumnNames() []string
	ColumnValues() []any
	Scan(scanner Scanner) error
}

type Origin

type Origin int

ENUM( none predefined system )

const (
	// OriginNone is a Origin of type None.
	OriginNone Origin = iota
	// OriginPredefined is a Origin of type Predefined.
	OriginPredefined
	// OriginSystem is a Origin of type System.
	OriginSystem
)

func ParseOrigin

func ParseOrigin(name string) (Origin, error)

ParseOrigin attempts to convert a string to a Origin.

func (Origin) IsValid

func (x Origin) IsValid() bool

IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values

func (Origin) String

func (x Origin) 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) IsValid

func (x Priority) IsValid() bool

IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values

func (Priority) String

func (x Priority) String() string

String implements the Stringer interface.

type ResultSaveType

type ResultSaveType int

ENUM( none database )

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

func ParseResultSaveType

func ParseResultSaveType(name string) (ResultSaveType, error)

ParseResultSaveType attempts to convert a string to a ResultSaveType.

func (ResultSaveType) IsValid

func (x ResultSaveType) IsValid() bool

IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values

func (ResultSaveType) String

func (x ResultSaveType) String() string

String implements the Stringer interface.

type Scanner

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

type ServiceWithStatuses

type ServiceWithStatuses struct {
	ClusterService
	ClusterServiceStatuses []ClusterServiceStatus
}

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) IsValid

func (x StepStatus) IsValid() bool

IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values

func (StepStatus) String

func (x StepStatus) String() string

String implements the Stringer interface.

type Template

type Template struct {
	UUID    string         `column:"uuid"`
	Name    string         `column:"name"`
	Summary sql.NullString `column:"summary"`
	Flow    string         `column:"flow"`
	Inputs  string         `column:"inputs"`
	Origin  string         `column:"origin"`
	Created time.Time      `column:"created"`
	Updated time.Time      `column:"updated"`
}

func (Template) ColumnNames

func (Template) ColumnNames() []string

func (Template) ColumnValues

func (r Template) ColumnValues() []any

func (*Template) Scan

func (r *Template) Scan(s Scanner) error

func (Template) TableName

func (Template) TableName() string

type TemplateFields

type TemplateFields int

ENUM( uuid name summary flow inputs origin created updated )

const (
	// TemplateFieldsUuid is a TemplateFields of type Uuid.
	TemplateFieldsUuid TemplateFields = iota
	// TemplateFieldsName is a TemplateFields of type Name.
	TemplateFieldsName
	// TemplateFieldsSummary is a TemplateFields of type Summary.
	TemplateFieldsSummary
	// TemplateFieldsFlow is a TemplateFields of type Flow.
	TemplateFieldsFlow
	// TemplateFieldsInputs is a TemplateFields of type Inputs.
	TemplateFieldsInputs
	// TemplateFieldsOrigin is a TemplateFields of type Origin.
	TemplateFieldsOrigin
	// TemplateFieldsCreated is a TemplateFields of type Created.
	TemplateFieldsCreated
	// TemplateFieldsUpdated is a TemplateFields of type Updated.
	TemplateFieldsUpdated
)

func ParseTemplateFields

func ParseTemplateFields(name string) (TemplateFields, error)

ParseTemplateFields attempts to convert a string to a TemplateFields.

func (TemplateFields) IsValid

func (x TemplateFields) IsValid() bool

IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values

func (TemplateFields) String

func (x TemplateFields) String() string

String implements the Stringer interface.

type Webhook

type Webhook struct {
	ID                 int64                     `column:"id"`   // pk
	UUID               string                    `column:"uuid"` // uuid
	Name               string                    `column:"name"`
	Summary            sql.NullString            `column:"summary"`
	URL                string                    `column:"url"`
	Method             string                    `column:"method"`
	Headers            cryptography.CipherHeader `column:"headers"`
	Timeout            sql.NullInt32             `column:"timeout"`
	ConditionValidator sql.NullInt32             `column:"condition_validator"`
	ConditionFilter    sql.NullString            `column:"condition_filter"`
	Created            time.Time                 `column:"created"`
	Updated            time.Time                 `column:"updated"`
}

func (Webhook) ColumnNames

func (Webhook) ColumnNames() []string

func (Webhook) ColumnValues

func (r Webhook) ColumnValues() []any

func (*Webhook) Scan

func (r *Webhook) Scan(s Scanner) error

func (Webhook) TableName

func (Webhook) TableName() string

type WebhookConditionValidator

type WebhookConditionValidator int32

ENUM( none jq )

const (
	// WebhookConditionValidatorNone is a WebhookConditionValidator of type None.
	WebhookConditionValidatorNone WebhookConditionValidator = iota
	// WebhookConditionValidatorJq is a WebhookConditionValidator of type Jq.
	WebhookConditionValidatorJq
)

func ParseWebhookConditionValidator

func ParseWebhookConditionValidator(name string) (WebhookConditionValidator, error)

ParseWebhookConditionValidator attempts to convert a string to a WebhookConditionValidator.

func (WebhookConditionValidator) IsValid

func (x WebhookConditionValidator) IsValid() bool

IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values

func (WebhookConditionValidator) String

func (x WebhookConditionValidator) String() string

String implements the Stringer interface.

type WebhookFields

type WebhookFields int

ENUM( id uuid name summary url method headers timeout condition_validator condition_filter created updated )

const (
	// WebhookFieldsId is a WebhookFields of type Id.
	WebhookFieldsId WebhookFields = iota
	// WebhookFieldsUuid is a WebhookFields of type Uuid.
	WebhookFieldsUuid
	// WebhookFieldsName is a WebhookFields of type Name.
	WebhookFieldsName
	// WebhookFieldsSummary is a WebhookFields of type Summary.
	WebhookFieldsSummary
	// WebhookFieldsUrl is a WebhookFields of type Url.
	WebhookFieldsUrl
	// WebhookFieldsMethod is a WebhookFields of type Method.
	WebhookFieldsMethod
	// WebhookFieldsHeaders is a WebhookFields of type Headers.
	WebhookFieldsHeaders
	// WebhookFieldsTimeout is a WebhookFields of type Timeout.
	WebhookFieldsTimeout
	// WebhookFieldsConditionValidator is a WebhookFields of type Condition_validator.
	WebhookFieldsConditionValidator
	// WebhookFieldsConditionFilter is a WebhookFields of type Condition_filter.
	WebhookFieldsConditionFilter
	// WebhookFieldsCreated is a WebhookFields of type Created.
	WebhookFieldsCreated
	// WebhookFieldsUpdated is a WebhookFields of type Updated.
	WebhookFieldsUpdated
)

func ParseWebhookFields

func ParseWebhookFields(name string) (WebhookFields, error)

ParseWebhookFields attempts to convert a string to a WebhookFields.

func (WebhookFields) IsValid

func (x WebhookFields) IsValid() bool

IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values

func (WebhookFields) String

func (x WebhookFields) 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