Documentation ¶
Index ¶
- Variables
- type ArtifactType
- type AuditAction
- type AuditResourceType
- type Auth
- type BuildStatus
- type BuilderSource
- type BuilderType
- type CacherType
- type Daemon
- type DaemonBuilderAction
- type Database
- type Deploy
- type GcRecordStatus
- type GcTarget
- type LockerType
- type LogLevel
- type NamespaceRole
- type OciPlatform
- type OperateType
- type Provider
- type RedisType
- type RetentionRuleType
- type ScmCredentialType
- type ScmProvider
- type SigningType
- type SortMethod
- type StorageType
- type TaskCommonStatus
- type UserRole
- type UserStatus
- type Visibility
- type WebhookAction
- type WebhookResourceType
- type WebhookType
- type WorkQueueType
Constants ¶
This section is empty.
Variables ¶
var ErrInvalidArtifactType = errors.New("not a valid ArtifactType")
var ErrInvalidAuditAction = errors.New("not a valid AuditAction")
var ErrInvalidAuditResourceType = errors.New("not a valid AuditResourceType")
var ErrInvalidAuth = errors.New("not a valid Auth")
var ErrInvalidBuildStatus = errors.New("not a valid BuildStatus")
var ErrInvalidBuilderSource = errors.New("not a valid BuilderSource")
var ErrInvalidBuilderType = errors.New("not a valid BuilderType")
var ErrInvalidCacherType = errors.New("not a valid CacherType")
var ErrInvalidDaemon = errors.New("not a valid Daemon")
var ErrInvalidDaemonBuilderAction = errors.New("not a valid DaemonBuilderAction")
var ErrInvalidDatabase = errors.New("not a valid Database")
var ErrInvalidDeploy = errors.New("not a valid Deploy")
var ErrInvalidGcRecordStatus = errors.New("not a valid GcRecordStatus")
var ErrInvalidGcTarget = errors.New("not a valid GcTarget")
var ErrInvalidLockerType = errors.New("not a valid LockerType")
var ErrInvalidLogLevel = errors.New("not a valid LogLevel")
var ErrInvalidNamespaceRole = errors.New("not a valid NamespaceRole")
var ErrInvalidOciPlatform = errors.New("not a valid OciPlatform")
var ErrInvalidOperateType = errors.New("not a valid OperateType")
var ErrInvalidProvider = errors.New("not a valid Provider")
var ErrInvalidRedisType = errors.New("not a valid RedisType")
var ErrInvalidRetentionRuleType = errors.New("not a valid RetentionRuleType")
var ErrInvalidScmCredentialType = errors.New("not a valid ScmCredentialType")
var ErrInvalidScmProvider = errors.New("not a valid ScmProvider")
var ErrInvalidSigningType = errors.New("not a valid SigningType")
var ErrInvalidSortMethod = errors.New("not a valid SortMethod")
var ErrInvalidStorageType = errors.New("not a valid StorageType")
var ErrInvalidTaskCommonStatus = errors.New("not a valid TaskCommonStatus")
var ErrInvalidUserRole = errors.New("not a valid UserRole")
var ErrInvalidUserStatus = errors.New("not a valid UserStatus")
var ErrInvalidVisibility = errors.New("not a valid Visibility")
var ErrInvalidWebhookAction = errors.New("not a valid WebhookAction")
var ErrInvalidWebhookResourceType = errors.New("not a valid WebhookResourceType")
var ErrInvalidWebhookType = errors.New("not a valid WebhookType")
var ErrInvalidWorkQueueType = errors.New("not a valid WorkQueueType")
Functions ¶
This section is empty.
Types ¶
type ArtifactType ¶
type ArtifactType string
ArtifactType x ENUM( Image, ImageIndex, Chart Cnab, Wasm, Provenance, Cosign, Sif, Unknown, )
const ( // ArtifactTypeImage is a ArtifactType of type Image. ArtifactTypeImage ArtifactType = "Image" // ArtifactTypeImageIndex is a ArtifactType of type ImageIndex. ArtifactTypeImageIndex ArtifactType = "ImageIndex" // ArtifactTypeChart is a ArtifactType of type Chart. ArtifactTypeChart ArtifactType = "Chart" // ArtifactTypeCnab is a ArtifactType of type Cnab. ArtifactTypeCnab ArtifactType = "Cnab" // ArtifactTypeWasm is a ArtifactType of type Wasm. ArtifactTypeWasm ArtifactType = "Wasm" // ArtifactTypeProvenance is a ArtifactType of type Provenance. ArtifactTypeProvenance ArtifactType = "Provenance" // ArtifactTypeCosign is a ArtifactType of type Cosign. ArtifactTypeCosign ArtifactType = "Cosign" // ArtifactTypeSif is a ArtifactType of type Sif. ArtifactTypeSif ArtifactType = "Sif" // ArtifactTypeUnknown is a ArtifactType of type Unknown. ArtifactTypeUnknown ArtifactType = "Unknown" )
func MustParseArtifactType ¶
func MustParseArtifactType(name string) ArtifactType
MustParseArtifactType converts a string to a ArtifactType, and panics if is not valid.
func ParseArtifactType ¶
func ParseArtifactType(name string) (ArtifactType, error)
ParseArtifactType attempts to convert a string to a ArtifactType.
func (ArtifactType) IsValid ¶
func (x ArtifactType) IsValid() bool
IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values
func (*ArtifactType) Scan ¶
func (x *ArtifactType) Scan(value interface{}) (err error)
Scan implements the Scanner interface.
func (ArtifactType) String ¶
func (x ArtifactType) String() string
String implements the Stringer interface.
type AuditAction ¶
type AuditAction string
AuditAction x ENUM( Create, Update, Delete, Pull, Push, )
const ( // AuditActionCreate is a AuditAction of type Create. AuditActionCreate AuditAction = "Create" // AuditActionUpdate is a AuditAction of type Update. AuditActionUpdate AuditAction = "Update" // AuditActionDelete is a AuditAction of type Delete. AuditActionDelete AuditAction = "Delete" // AuditActionPull is a AuditAction of type Pull. AuditActionPull AuditAction = "Pull" // AuditActionPush is a AuditAction of type Push. AuditActionPush AuditAction = "Push" )
func MustParseAuditAction ¶
func MustParseAuditAction(name string) AuditAction
MustParseAuditAction converts a string to a AuditAction, and panics if is not valid.
func ParseAuditAction ¶
func ParseAuditAction(name string) (AuditAction, error)
ParseAuditAction attempts to convert a string to a AuditAction.
func (AuditAction) IsValid ¶
func (x AuditAction) IsValid() bool
IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values
func (*AuditAction) Scan ¶
func (x *AuditAction) Scan(value interface{}) (err error)
Scan implements the Scanner interface.
func (AuditAction) String ¶
func (x AuditAction) String() string
String implements the Stringer interface.
type AuditResourceType ¶
type AuditResourceType string
AuditResourceType x ENUM( Namespace, NamespaceMember, Repository, Tag, Webhook, Builder, )
const ( // AuditResourceTypeNamespace is a AuditResourceType of type Namespace. AuditResourceTypeNamespace AuditResourceType = "Namespace" // AuditResourceTypeNamespaceMember is a AuditResourceType of type NamespaceMember. AuditResourceTypeNamespaceMember AuditResourceType = "NamespaceMember" // AuditResourceTypeRepository is a AuditResourceType of type Repository. AuditResourceTypeRepository AuditResourceType = "Repository" // AuditResourceTypeTag is a AuditResourceType of type Tag. AuditResourceTypeTag AuditResourceType = "Tag" // AuditResourceTypeWebhook is a AuditResourceType of type Webhook. AuditResourceTypeWebhook AuditResourceType = "Webhook" // AuditResourceTypeBuilder is a AuditResourceType of type Builder. AuditResourceTypeBuilder AuditResourceType = "Builder" )
func MustParseAuditResourceType ¶
func MustParseAuditResourceType(name string) AuditResourceType
MustParseAuditResourceType converts a string to a AuditResourceType, and panics if is not valid.
func ParseAuditResourceType ¶
func ParseAuditResourceType(name string) (AuditResourceType, error)
ParseAuditResourceType attempts to convert a string to a AuditResourceType.
func (AuditResourceType) IsValid ¶
func (x AuditResourceType) IsValid() bool
IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values
func (*AuditResourceType) Scan ¶
func (x *AuditResourceType) Scan(value interface{}) (err error)
Scan implements the Scanner interface.
func (AuditResourceType) String ¶
func (x AuditResourceType) String() string
String implements the Stringer interface.
type Auth ¶
type Auth string
Auth x ENUM( Read, Manage, Admin, )
func MustParseAuth ¶
MustParseAuth converts a string to a Auth, and panics if is not valid.
func (Auth) IsValid ¶
IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values
type BuildStatus ¶
type BuildStatus string
BuildStatus x ENUM( Success, Failed, Pending, Scheduling, Building, Stopping, Stopped, )
const ( // BuildStatusSuccess is a BuildStatus of type Success. BuildStatusSuccess BuildStatus = "Success" // BuildStatusFailed is a BuildStatus of type Failed. BuildStatusFailed BuildStatus = "Failed" // BuildStatusPending is a BuildStatus of type Pending. BuildStatusPending BuildStatus = "Pending" // BuildStatusScheduling is a BuildStatus of type Scheduling. BuildStatusScheduling BuildStatus = "Scheduling" // BuildStatusBuilding is a BuildStatus of type Building. BuildStatusBuilding BuildStatus = "Building" // BuildStatusStopping is a BuildStatus of type Stopping. BuildStatusStopping BuildStatus = "Stopping" // BuildStatusStopped is a BuildStatus of type Stopped. BuildStatusStopped BuildStatus = "Stopped" )
func MustParseBuildStatus ¶
func MustParseBuildStatus(name string) BuildStatus
MustParseBuildStatus converts a string to a BuildStatus, and panics if is not valid.
func ParseBuildStatus ¶
func ParseBuildStatus(name string) (BuildStatus, error)
ParseBuildStatus attempts to convert a string to a BuildStatus.
func (BuildStatus) IsValid ¶
func (x BuildStatus) IsValid() bool
IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values
func (*BuildStatus) Scan ¶
func (x *BuildStatus) Scan(value interface{}) (err error)
Scan implements the Scanner interface.
func (BuildStatus) String ¶
func (x BuildStatus) String() string
String implements the Stringer interface.
type BuilderSource ¶
type BuilderSource string
BuilderSource x ENUM( Dockerfile, CodeRepository, SelfCodeRepository, )
const ( // BuilderSourceDockerfile is a BuilderSource of type Dockerfile. BuilderSourceDockerfile BuilderSource = "Dockerfile" // BuilderSourceCodeRepository is a BuilderSource of type CodeRepository. BuilderSourceCodeRepository BuilderSource = "CodeRepository" // BuilderSourceSelfCodeRepository is a BuilderSource of type SelfCodeRepository. BuilderSourceSelfCodeRepository BuilderSource = "SelfCodeRepository" )
func MustParseBuilderSource ¶
func MustParseBuilderSource(name string) BuilderSource
MustParseBuilderSource converts a string to a BuilderSource, and panics if is not valid.
func ParseBuilderSource ¶
func ParseBuilderSource(name string) (BuilderSource, error)
ParseBuilderSource attempts to convert a string to a BuilderSource.
func (BuilderSource) IsValid ¶
func (x BuilderSource) IsValid() bool
IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values
func (*BuilderSource) Scan ¶
func (x *BuilderSource) Scan(value interface{}) (err error)
Scan implements the Scanner interface.
func (BuilderSource) String ¶
func (x BuilderSource) String() string
String implements the Stringer interface.
type BuilderType ¶
type BuilderType string
BuilderType x ENUM( docker, kubernetes, )
const ( // BuilderTypeDocker is a BuilderType of type docker. BuilderTypeDocker BuilderType = "docker" // BuilderTypeKubernetes is a BuilderType of type kubernetes. BuilderTypeKubernetes BuilderType = "kubernetes" )
func MustParseBuilderType ¶
func MustParseBuilderType(name string) BuilderType
MustParseBuilderType converts a string to a BuilderType, and panics if is not valid.
func ParseBuilderType ¶
func ParseBuilderType(name string) (BuilderType, error)
ParseBuilderType attempts to convert a string to a BuilderType.
func (BuilderType) IsValid ¶
func (x BuilderType) IsValid() bool
IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values
func (*BuilderType) Scan ¶
func (x *BuilderType) Scan(value interface{}) (err error)
Scan implements the Scanner interface.
func (BuilderType) String ¶
func (x BuilderType) String() string
String implements the Stringer interface.
type CacherType ¶
type CacherType string
CacherType x ENUM( inmemory, redis, badger, )
const ( // CacherTypeInmemory is a CacherType of type inmemory. CacherTypeInmemory CacherType = "inmemory" // CacherTypeRedis is a CacherType of type redis. CacherTypeRedis CacherType = "redis" // CacherTypeBadger is a CacherType of type badger. CacherTypeBadger CacherType = "badger" )
func MustParseCacherType ¶
func MustParseCacherType(name string) CacherType
MustParseCacherType converts a string to a CacherType, and panics if is not valid.
func ParseCacherType ¶
func ParseCacherType(name string) (CacherType, error)
ParseCacherType attempts to convert a string to a CacherType.
func (CacherType) IsValid ¶
func (x CacherType) IsValid() bool
IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values
func (*CacherType) Scan ¶
func (x *CacherType) Scan(value interface{}) (err error)
Scan implements the Scanner interface.
func (CacherType) String ¶
func (x CacherType) String() string
String implements the Stringer interface.
type Daemon ¶
type Daemon string
Daemon x ENUM( Vulnerability, Sbom, Gc, GcRepository, GcArtifact, GcBlob, GcTag, Webhook, Builder, CodeRepository, TagPushed, ArtifactPushed, )
const ( // DaemonVulnerability is a Daemon of type Vulnerability. DaemonVulnerability Daemon = "Vulnerability" // DaemonSbom is a Daemon of type Sbom. DaemonSbom Daemon = "Sbom" // DaemonGc is a Daemon of type Gc. DaemonGc Daemon = "Gc" // DaemonGcRepository is a Daemon of type GcRepository. DaemonGcRepository Daemon = "GcRepository" // DaemonGcArtifact is a Daemon of type GcArtifact. DaemonGcArtifact Daemon = "GcArtifact" // DaemonGcBlob is a Daemon of type GcBlob. DaemonGcBlob Daemon = "GcBlob" // DaemonGcTag is a Daemon of type GcTag. DaemonGcTag Daemon = "GcTag" // DaemonWebhook is a Daemon of type Webhook. DaemonWebhook Daemon = "Webhook" // DaemonBuilder is a Daemon of type Builder. DaemonBuilder Daemon = "Builder" // DaemonCodeRepository is a Daemon of type CodeRepository. DaemonCodeRepository Daemon = "CodeRepository" // DaemonTagPushed is a Daemon of type TagPushed. DaemonTagPushed Daemon = "TagPushed" // DaemonArtifactPushed is a Daemon of type ArtifactPushed. DaemonArtifactPushed Daemon = "ArtifactPushed" )
func MustParseDaemon ¶
MustParseDaemon converts a string to a Daemon, and panics if is not valid.
func ParseDaemon ¶
ParseDaemon attempts to convert a string to a Daemon.
func (Daemon) IsValid ¶
IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values
type DaemonBuilderAction ¶
type DaemonBuilderAction string
DaemonBuilderAction x ENUM( Start, Restart, Stop, )
const ( // DaemonBuilderActionStart is a DaemonBuilderAction of type Start. DaemonBuilderActionStart DaemonBuilderAction = "Start" // DaemonBuilderActionRestart is a DaemonBuilderAction of type Restart. DaemonBuilderActionRestart DaemonBuilderAction = "Restart" // DaemonBuilderActionStop is a DaemonBuilderAction of type Stop. DaemonBuilderActionStop DaemonBuilderAction = "Stop" )
func MustParseDaemonBuilderAction ¶
func MustParseDaemonBuilderAction(name string) DaemonBuilderAction
MustParseDaemonBuilderAction converts a string to a DaemonBuilderAction, and panics if is not valid.
func ParseDaemonBuilderAction ¶
func ParseDaemonBuilderAction(name string) (DaemonBuilderAction, error)
ParseDaemonBuilderAction attempts to convert a string to a DaemonBuilderAction.
func (DaemonBuilderAction) IsValid ¶
func (x DaemonBuilderAction) IsValid() bool
IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values
func (*DaemonBuilderAction) Scan ¶
func (x *DaemonBuilderAction) Scan(value interface{}) (err error)
Scan implements the Scanner interface.
func (DaemonBuilderAction) String ¶
func (x DaemonBuilderAction) String() string
String implements the Stringer interface.
type Database ¶
type Database string
Database x ENUM( postgresql, mysql, sqlite3, )
func MustParseDatabase ¶
MustParseDatabase converts a string to a Database, and panics if is not valid.
func ParseDatabase ¶
ParseDatabase attempts to convert a string to a Database.
func (Database) IsValid ¶
IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values
type Deploy ¶
type Deploy string
Deploy x ENUM( single, replica, )
func MustParseDeploy ¶
MustParseDeploy converts a string to a Deploy, and panics if is not valid.
func ParseDeploy ¶
ParseDeploy attempts to convert a string to a Deploy.
func (Deploy) IsValid ¶
IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values
type GcRecordStatus ¶
type GcRecordStatus string
GcRecordStatus x ENUM( Success, Failed, )
const ( // GcRecordStatusSuccess is a GcRecordStatus of type Success. GcRecordStatusSuccess GcRecordStatus = "Success" // GcRecordStatusFailed is a GcRecordStatus of type Failed. GcRecordStatusFailed GcRecordStatus = "Failed" )
func MustParseGcRecordStatus ¶
func MustParseGcRecordStatus(name string) GcRecordStatus
MustParseGcRecordStatus converts a string to a GcRecordStatus, and panics if is not valid.
func ParseGcRecordStatus ¶
func ParseGcRecordStatus(name string) (GcRecordStatus, error)
ParseGcRecordStatus attempts to convert a string to a GcRecordStatus.
func (GcRecordStatus) IsValid ¶
func (x GcRecordStatus) IsValid() bool
IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values
func (*GcRecordStatus) Scan ¶
func (x *GcRecordStatus) Scan(value interface{}) (err error)
Scan implements the Scanner interface.
func (GcRecordStatus) String ¶
func (x GcRecordStatus) String() string
String implements the Stringer interface.
type GcTarget ¶
type GcTarget string
GcTarget x ENUM( blobsAndArtifacts, artifacts, )
func MustParseGcTarget ¶
MustParseGcTarget converts a string to a GcTarget, and panics if is not valid.
func ParseGcTarget ¶
ParseGcTarget attempts to convert a string to a GcTarget.
func (GcTarget) IsValid ¶
IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values
type LockerType ¶
type LockerType string
LockerType x ENUM( redis, badger, )
const ( // LockerTypeRedis is a LockerType of type redis. LockerTypeRedis LockerType = "redis" // LockerTypeBadger is a LockerType of type badger. LockerTypeBadger LockerType = "badger" )
func MustParseLockerType ¶
func MustParseLockerType(name string) LockerType
MustParseLockerType converts a string to a LockerType, and panics if is not valid.
func ParseLockerType ¶
func ParseLockerType(name string) (LockerType, error)
ParseLockerType attempts to convert a string to a LockerType.
func (LockerType) IsValid ¶
func (x LockerType) IsValid() bool
IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values
func (*LockerType) Scan ¶
func (x *LockerType) Scan(value interface{}) (err error)
Scan implements the Scanner interface.
func (LockerType) String ¶
func (x LockerType) String() string
String implements the Stringer interface.
type LogLevel ¶
type LogLevel string
LogLevel x ENUM( trace, debug, info, warn, error, fatal, panic, )
const ( // LogLevelTrace is a LogLevel of type trace. LogLevelTrace LogLevel = "trace" // LogLevelDebug is a LogLevel of type debug. LogLevelDebug LogLevel = "debug" // LogLevelInfo is a LogLevel of type info. LogLevelInfo LogLevel = "info" // LogLevelWarn is a LogLevel of type warn. LogLevelWarn LogLevel = "warn" // LogLevelError is a LogLevel of type error. LogLevelError LogLevel = "error" // LogLevelFatal is a LogLevel of type fatal. LogLevelFatal LogLevel = "fatal" // LogLevelPanic is a LogLevel of type panic. LogLevelPanic LogLevel = "panic" )
func MustParseLogLevel ¶
MustParseLogLevel converts a string to a LogLevel, and panics if is not valid.
func ParseLogLevel ¶
ParseLogLevel attempts to convert a string to a LogLevel.
func (LogLevel) IsValid ¶
IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values
type NamespaceRole ¶
type NamespaceRole string
NamespaceRole x ENUM( Admin="NamespaceAdmin", Manager="NamespaceManager", Reader="NamespaceReader", )
const ( // NamespaceRoleAdmin is a NamespaceRole of type Admin. NamespaceRoleAdmin NamespaceRole = "NamespaceAdmin" // NamespaceRoleManager is a NamespaceRole of type Manager. NamespaceRoleManager NamespaceRole = "NamespaceManager" // NamespaceRoleReader is a NamespaceRole of type Reader. NamespaceRoleReader NamespaceRole = "NamespaceReader" )
func MustParseNamespaceRole ¶
func MustParseNamespaceRole(name string) NamespaceRole
MustParseNamespaceRole converts a string to a NamespaceRole, and panics if is not valid.
func ParseNamespaceRole ¶
func ParseNamespaceRole(name string) (NamespaceRole, error)
ParseNamespaceRole attempts to convert a string to a NamespaceRole.
func (NamespaceRole) IsValid ¶
func (x NamespaceRole) IsValid() bool
IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values
func (*NamespaceRole) Scan ¶
func (x *NamespaceRole) Scan(value interface{}) (err error)
Scan implements the Scanner interface.
func (NamespaceRole) String ¶
func (x NamespaceRole) String() string
String implements the Stringer interface.
type OciPlatform ¶
type OciPlatform string
OciPlatform x ENUM( linux/amd64, linux/amd64/v2, linux/amd64/v3, linux/arm64, linux/riscv64, linux/ppc64le, linux/s390x, linux/386, linux/mips64le, linux/mips64, linux/arm/v7, linux/arm/v6, )
const ( // OciPlatformLinuxAmd64 is a OciPlatform of type linux/amd64. OciPlatformLinuxAmd64 OciPlatform = "linux/amd64" // OciPlatformLinuxAmd64V2 is a OciPlatform of type linux/amd64/v2. OciPlatformLinuxAmd64V2 OciPlatform = "linux/amd64/v2" // OciPlatformLinuxAmd64V3 is a OciPlatform of type linux/amd64/v3. OciPlatformLinuxAmd64V3 OciPlatform = "linux/amd64/v3" // OciPlatformLinuxArm64 is a OciPlatform of type linux/arm64. OciPlatformLinuxArm64 OciPlatform = "linux/arm64" // OciPlatformLinuxRiscv64 is a OciPlatform of type linux/riscv64. OciPlatformLinuxRiscv64 OciPlatform = "linux/riscv64" // OciPlatformLinuxPpc64le is a OciPlatform of type linux/ppc64le. OciPlatformLinuxPpc64le OciPlatform = "linux/ppc64le" // OciPlatformLinuxS390x is a OciPlatform of type linux/s390x. OciPlatformLinuxS390x OciPlatform = "linux/s390x" // OciPlatformLinux386 is a OciPlatform of type linux/386. OciPlatformLinux386 OciPlatform = "linux/386" // OciPlatformLinuxMips64le is a OciPlatform of type linux/mips64le. OciPlatformLinuxMips64le OciPlatform = "linux/mips64le" // OciPlatformLinuxMips64 is a OciPlatform of type linux/mips64. OciPlatformLinuxMips64 OciPlatform = "linux/mips64" // OciPlatformLinuxArmV7 is a OciPlatform of type linux/arm/v7. OciPlatformLinuxArmV7 OciPlatform = "linux/arm/v7" // OciPlatformLinuxArmV6 is a OciPlatform of type linux/arm/v6. OciPlatformLinuxArmV6 OciPlatform = "linux/arm/v6" )
func MustParseOciPlatform ¶
func MustParseOciPlatform(name string) OciPlatform
MustParseOciPlatform converts a string to a OciPlatform, and panics if is not valid.
func ParseOciPlatform ¶
func ParseOciPlatform(name string) (OciPlatform, error)
ParseOciPlatform attempts to convert a string to a OciPlatform.
func (OciPlatform) IsValid ¶
func (x OciPlatform) IsValid() bool
IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values
func (*OciPlatform) Scan ¶
func (x *OciPlatform) Scan(value interface{}) (err error)
Scan implements the Scanner interface.
func (OciPlatform) String ¶
func (x OciPlatform) String() string
String implements the Stringer interface.
type OperateType ¶ added in v1.2.0
type OperateType string
OperateType x ENUM( Manual, Automatic, )
const ( // OperateTypeManual is a OperateType of type Manual. OperateTypeManual OperateType = "Manual" // OperateTypeAutomatic is a OperateType of type Automatic. OperateTypeAutomatic OperateType = "Automatic" )
func MustParseOperateType ¶ added in v1.2.0
func MustParseOperateType(name string) OperateType
MustParseOperateType converts a string to a OperateType, and panics if is not valid.
func ParseOperateType ¶ added in v1.2.0
func ParseOperateType(name string) (OperateType, error)
ParseOperateType attempts to convert a string to a OperateType.
func (OperateType) IsValid ¶ added in v1.2.0
func (x OperateType) IsValid() bool
IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values
func (*OperateType) Scan ¶ added in v1.2.0
func (x *OperateType) Scan(value interface{}) (err error)
Scan implements the Scanner interface.
func (OperateType) String ¶ added in v1.2.0
func (x OperateType) String() string
String implements the Stringer interface.
type Provider ¶
type Provider string
Provider x ENUM( local, github, gitlab, gitea, )
const ( // ProviderLocal is a Provider of type local. ProviderLocal Provider = "local" // ProviderGithub is a Provider of type github. ProviderGithub Provider = "github" // ProviderGitlab is a Provider of type gitlab. ProviderGitlab Provider = "gitlab" // ProviderGitea is a Provider of type gitea. ProviderGitea Provider = "gitea" )
func MustParseProvider ¶
MustParseProvider converts a string to a Provider, and panics if is not valid.
func ParseProvider ¶
ParseProvider attempts to convert a string to a Provider.
func (Provider) IsValid ¶
IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values
type RedisType ¶
type RedisType string
RedisType x ENUM( none, external, )
func MustParseRedisType ¶
MustParseRedisType converts a string to a RedisType, and panics if is not valid.
func ParseRedisType ¶
ParseRedisType attempts to convert a string to a RedisType.
func (RedisType) IsValid ¶
IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values
type RetentionRuleType ¶
type RetentionRuleType string
RetentionRuleType x ENUM( Day, Quantity, )
const ( // RetentionRuleTypeDay is a RetentionRuleType of type Day. RetentionRuleTypeDay RetentionRuleType = "Day" // RetentionRuleTypeQuantity is a RetentionRuleType of type Quantity. RetentionRuleTypeQuantity RetentionRuleType = "Quantity" )
func MustParseRetentionRuleType ¶
func MustParseRetentionRuleType(name string) RetentionRuleType
MustParseRetentionRuleType converts a string to a RetentionRuleType, and panics if is not valid.
func ParseRetentionRuleType ¶
func ParseRetentionRuleType(name string) (RetentionRuleType, error)
ParseRetentionRuleType attempts to convert a string to a RetentionRuleType.
func (RetentionRuleType) IsValid ¶
func (x RetentionRuleType) IsValid() bool
IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values
func (*RetentionRuleType) Scan ¶
func (x *RetentionRuleType) Scan(value interface{}) (err error)
Scan implements the Scanner interface.
func (RetentionRuleType) String ¶
func (x RetentionRuleType) String() string
String implements the Stringer interface.
type ScmCredentialType ¶
type ScmCredentialType string
ScmCredentialType x ENUM( ssh, token, username, none, )
const ( // ScmCredentialTypeSsh is a ScmCredentialType of type ssh. ScmCredentialTypeSsh ScmCredentialType = "ssh" // ScmCredentialTypeToken is a ScmCredentialType of type token. ScmCredentialTypeToken ScmCredentialType = "token" // ScmCredentialTypeUsername is a ScmCredentialType of type username. ScmCredentialTypeUsername ScmCredentialType = "username" // ScmCredentialTypeNone is a ScmCredentialType of type none. ScmCredentialTypeNone ScmCredentialType = "none" )
func MustParseScmCredentialType ¶
func MustParseScmCredentialType(name string) ScmCredentialType
MustParseScmCredentialType converts a string to a ScmCredentialType, and panics if is not valid.
func ParseScmCredentialType ¶
func ParseScmCredentialType(name string) (ScmCredentialType, error)
ParseScmCredentialType attempts to convert a string to a ScmCredentialType.
func (ScmCredentialType) IsValid ¶
func (x ScmCredentialType) IsValid() bool
IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values
func (*ScmCredentialType) Scan ¶
func (x *ScmCredentialType) Scan(value interface{}) (err error)
Scan implements the Scanner interface.
func (ScmCredentialType) String ¶
func (x ScmCredentialType) String() string
String implements the Stringer interface.
type ScmProvider ¶
type ScmProvider string
ScmProvider x ENUM( github, gitlab, gitea, none, )
const ( // ScmProviderGithub is a ScmProvider of type github. ScmProviderGithub ScmProvider = "github" // ScmProviderGitlab is a ScmProvider of type gitlab. ScmProviderGitlab ScmProvider = "gitlab" // ScmProviderGitea is a ScmProvider of type gitea. ScmProviderGitea ScmProvider = "gitea" // ScmProviderNone is a ScmProvider of type none. ScmProviderNone ScmProvider = "none" )
func MustParseScmProvider ¶
func MustParseScmProvider(name string) ScmProvider
MustParseScmProvider converts a string to a ScmProvider, and panics if is not valid.
func ParseScmProvider ¶
func ParseScmProvider(name string) (ScmProvider, error)
ParseScmProvider attempts to convert a string to a ScmProvider.
func (ScmProvider) IsValid ¶
func (x ScmProvider) IsValid() bool
IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values
func (*ScmProvider) Scan ¶
func (x *ScmProvider) Scan(value interface{}) (err error)
Scan implements the Scanner interface.
func (ScmProvider) String ¶
func (x ScmProvider) String() string
String implements the Stringer interface.
type SigningType ¶
type SigningType string
SigningType x ENUM( cosign, )
const ( // SigningTypeCosign is a SigningType of type cosign. SigningTypeCosign SigningType = "cosign" )
func MustParseSigningType ¶
func MustParseSigningType(name string) SigningType
MustParseSigningType converts a string to a SigningType, and panics if is not valid.
func ParseSigningType ¶
func ParseSigningType(name string) (SigningType, error)
ParseSigningType attempts to convert a string to a SigningType.
func (SigningType) IsValid ¶
func (x SigningType) IsValid() bool
IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values
func (*SigningType) Scan ¶
func (x *SigningType) Scan(value interface{}) (err error)
Scan implements the Scanner interface.
func (SigningType) String ¶
func (x SigningType) String() string
String implements the Stringer interface.
type SortMethod ¶
type SortMethod string
SortMethod x ENUM( asc, desc, )
const ( // SortMethodAsc is a SortMethod of type asc. SortMethodAsc SortMethod = "asc" // SortMethodDesc is a SortMethod of type desc. SortMethodDesc SortMethod = "desc" )
func MustParseSortMethod ¶
func MustParseSortMethod(name string) SortMethod
MustParseSortMethod converts a string to a SortMethod, and panics if is not valid.
func ParseSortMethod ¶
func ParseSortMethod(name string) (SortMethod, error)
ParseSortMethod attempts to convert a string to a SortMethod.
func (SortMethod) IsValid ¶
func (x SortMethod) IsValid() bool
IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values
func (*SortMethod) Scan ¶
func (x *SortMethod) Scan(value interface{}) (err error)
Scan implements the Scanner interface.
func (SortMethod) String ¶
func (x SortMethod) String() string
String implements the Stringer interface.
type StorageType ¶
type StorageType string
StorageType x ENUM( s3, filesystem, cos, oss, dummy, )
const ( // StorageTypeS3 is a StorageType of type s3. StorageTypeS3 StorageType = "s3" // StorageTypeFilesystem is a StorageType of type filesystem. StorageTypeFilesystem StorageType = "filesystem" // StorageTypeCos is a StorageType of type cos. StorageTypeCos StorageType = "cos" // StorageTypeOss is a StorageType of type oss. StorageTypeOss StorageType = "oss" // StorageTypeDummy is a StorageType of type dummy. StorageTypeDummy StorageType = "dummy" )
func MustParseStorageType ¶
func MustParseStorageType(name string) StorageType
MustParseStorageType converts a string to a StorageType, and panics if is not valid.
func ParseStorageType ¶
func ParseStorageType(name string) (StorageType, error)
ParseStorageType attempts to convert a string to a StorageType.
func (StorageType) IsValid ¶
func (x StorageType) IsValid() bool
IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values
func (*StorageType) Scan ¶
func (x *StorageType) Scan(value interface{}) (err error)
Scan implements the Scanner interface.
func (StorageType) String ¶
func (x StorageType) String() string
String implements the Stringer interface.
type TaskCommonStatus ¶
type TaskCommonStatus string
TaskCommonStatus x ENUM( Pending, Doing, Success, Failed, )
const ( // TaskCommonStatusPending is a TaskCommonStatus of type Pending. TaskCommonStatusPending TaskCommonStatus = "Pending" // TaskCommonStatusDoing is a TaskCommonStatus of type Doing. TaskCommonStatusDoing TaskCommonStatus = "Doing" // TaskCommonStatusSuccess is a TaskCommonStatus of type Success. TaskCommonStatusSuccess TaskCommonStatus = "Success" // TaskCommonStatusFailed is a TaskCommonStatus of type Failed. TaskCommonStatusFailed TaskCommonStatus = "Failed" )
func MustParseTaskCommonStatus ¶
func MustParseTaskCommonStatus(name string) TaskCommonStatus
MustParseTaskCommonStatus converts a string to a TaskCommonStatus, and panics if is not valid.
func ParseTaskCommonStatus ¶
func ParseTaskCommonStatus(name string) (TaskCommonStatus, error)
ParseTaskCommonStatus attempts to convert a string to a TaskCommonStatus.
func (TaskCommonStatus) IsValid ¶
func (x TaskCommonStatus) IsValid() bool
IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values
func (*TaskCommonStatus) Scan ¶
func (x *TaskCommonStatus) Scan(value interface{}) (err error)
Scan implements the Scanner interface.
func (TaskCommonStatus) String ¶
func (x TaskCommonStatus) String() string
String implements the Stringer interface.
type UserRole ¶
type UserRole string
UserRole x ENUM( Root, Admin, User, Anonymous, )
const ( // UserRoleRoot is a UserRole of type Root. UserRoleRoot UserRole = "Root" // UserRoleAdmin is a UserRole of type Admin. UserRoleAdmin UserRole = "Admin" // UserRoleUser is a UserRole of type User. UserRoleUser UserRole = "User" // UserRoleAnonymous is a UserRole of type Anonymous. UserRoleAnonymous UserRole = "Anonymous" )
func MustParseUserRole ¶
MustParseUserRole converts a string to a UserRole, and panics if is not valid.
func ParseUserRole ¶
ParseUserRole attempts to convert a string to a UserRole.
func (UserRole) IsValid ¶
IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values
type UserStatus ¶
type UserStatus string
UserStatus x ENUM( Active, Inactive, )
const ( // UserStatusActive is a UserStatus of type Active. UserStatusActive UserStatus = "Active" // UserStatusInactive is a UserStatus of type Inactive. UserStatusInactive UserStatus = "Inactive" )
func MustParseUserStatus ¶
func MustParseUserStatus(name string) UserStatus
MustParseUserStatus converts a string to a UserStatus, and panics if is not valid.
func ParseUserStatus ¶
func ParseUserStatus(name string) (UserStatus, error)
ParseUserStatus attempts to convert a string to a UserStatus.
func (UserStatus) IsValid ¶
func (x UserStatus) IsValid() bool
IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values
func (*UserStatus) Scan ¶
func (x *UserStatus) Scan(value interface{}) (err error)
Scan implements the Scanner interface.
func (UserStatus) String ¶
func (x UserStatus) String() string
String implements the Stringer interface.
type Visibility ¶
type Visibility string
Visibility x ENUM( private, public, )
const ( // VisibilityPrivate is a Visibility of type private. VisibilityPrivate Visibility = "private" // VisibilityPublic is a Visibility of type public. VisibilityPublic Visibility = "public" )
func MustParseVisibility ¶
func MustParseVisibility(name string) Visibility
MustParseVisibility converts a string to a Visibility, and panics if is not valid.
func ParseVisibility ¶
func ParseVisibility(name string) (Visibility, error)
ParseVisibility attempts to convert a string to a Visibility.
func (Visibility) IsValid ¶
func (x Visibility) IsValid() bool
IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values
func (*Visibility) Scan ¶
func (x *Visibility) Scan(value interface{}) (err error)
Scan implements the Scanner interface.
func (Visibility) String ¶
func (x Visibility) String() string
String implements the Stringer interface.
type WebhookAction ¶ added in v1.1.0
type WebhookAction string
WebhookAction x ENUM( Create, Update, Delete, Add, Remove, Ping, Started, Doing, Finished, )
const ( // WebhookActionCreate is a WebhookAction of type Create. WebhookActionCreate WebhookAction = "Create" // WebhookActionUpdate is a WebhookAction of type Update. WebhookActionUpdate WebhookAction = "Update" // WebhookActionDelete is a WebhookAction of type Delete. WebhookActionDelete WebhookAction = "Delete" // WebhookActionAdd is a WebhookAction of type Add. WebhookActionAdd WebhookAction = "Add" // WebhookActionRemove is a WebhookAction of type Remove. WebhookActionRemove WebhookAction = "Remove" // WebhookActionPing is a WebhookAction of type Ping. WebhookActionPing WebhookAction = "Ping" // WebhookActionStarted is a WebhookAction of type Started. WebhookActionStarted WebhookAction = "Started" // WebhookActionDoing is a WebhookAction of type Doing. WebhookActionDoing WebhookAction = "Doing" // WebhookActionFinished is a WebhookAction of type Finished. WebhookActionFinished WebhookAction = "Finished" )
func MustParseWebhookAction ¶ added in v1.1.0
func MustParseWebhookAction(name string) WebhookAction
MustParseWebhookAction converts a string to a WebhookAction, and panics if is not valid.
func ParseWebhookAction ¶ added in v1.1.0
func ParseWebhookAction(name string) (WebhookAction, error)
ParseWebhookAction attempts to convert a string to a WebhookAction.
func (WebhookAction) IsValid ¶ added in v1.1.0
func (x WebhookAction) IsValid() bool
IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values
func (*WebhookAction) Scan ¶ added in v1.1.0
func (x *WebhookAction) Scan(value interface{}) (err error)
Scan implements the Scanner interface.
func (WebhookAction) String ¶ added in v1.1.0
func (x WebhookAction) String() string
String implements the Stringer interface.
type WebhookResourceType ¶
type WebhookResourceType string
WebhookResourceType x ENUM( Webhook, Namespace, Repository, Tag, Artifact, Member, DaemonTaskGcRepositoryRule, DaemonTaskGcTagRule, DaemonTaskGcArtifactRule, DaemonTaskGcBlobRule, DaemonTaskGcRepositoryRunner, DaemonTaskGcTagRunner, DaemonTaskGcArtifactRunner, DaemonTaskGcBlobRunner, )
const ( // WebhookResourceTypeWebhook is a WebhookResourceType of type Webhook. WebhookResourceTypeWebhook WebhookResourceType = "Webhook" // WebhookResourceTypeNamespace is a WebhookResourceType of type Namespace. WebhookResourceTypeNamespace WebhookResourceType = "Namespace" // WebhookResourceTypeRepository is a WebhookResourceType of type Repository. WebhookResourceTypeRepository WebhookResourceType = "Repository" // WebhookResourceTypeTag is a WebhookResourceType of type Tag. WebhookResourceTypeTag WebhookResourceType = "Tag" // WebhookResourceTypeArtifact is a WebhookResourceType of type Artifact. WebhookResourceTypeArtifact WebhookResourceType = "Artifact" // WebhookResourceTypeMember is a WebhookResourceType of type Member. WebhookResourceTypeMember WebhookResourceType = "Member" // WebhookResourceTypeDaemonTaskGcRepositoryRule is a WebhookResourceType of type DaemonTaskGcRepositoryRule. WebhookResourceTypeDaemonTaskGcRepositoryRule WebhookResourceType = "DaemonTaskGcRepositoryRule" // WebhookResourceTypeDaemonTaskGcTagRule is a WebhookResourceType of type DaemonTaskGcTagRule. WebhookResourceTypeDaemonTaskGcTagRule WebhookResourceType = "DaemonTaskGcTagRule" // WebhookResourceTypeDaemonTaskGcArtifactRule is a WebhookResourceType of type DaemonTaskGcArtifactRule. WebhookResourceTypeDaemonTaskGcArtifactRule WebhookResourceType = "DaemonTaskGcArtifactRule" // WebhookResourceTypeDaemonTaskGcBlobRule is a WebhookResourceType of type DaemonTaskGcBlobRule. WebhookResourceTypeDaemonTaskGcBlobRule WebhookResourceType = "DaemonTaskGcBlobRule" // WebhookResourceTypeDaemonTaskGcRepositoryRunner is a WebhookResourceType of type DaemonTaskGcRepositoryRunner. WebhookResourceTypeDaemonTaskGcRepositoryRunner WebhookResourceType = "DaemonTaskGcRepositoryRunner" // WebhookResourceTypeDaemonTaskGcTagRunner is a WebhookResourceType of type DaemonTaskGcTagRunner. WebhookResourceTypeDaemonTaskGcTagRunner WebhookResourceType = "DaemonTaskGcTagRunner" // WebhookResourceTypeDaemonTaskGcArtifactRunner is a WebhookResourceType of type DaemonTaskGcArtifactRunner. WebhookResourceTypeDaemonTaskGcArtifactRunner WebhookResourceType = "DaemonTaskGcArtifactRunner" // WebhookResourceTypeDaemonTaskGcBlobRunner is a WebhookResourceType of type DaemonTaskGcBlobRunner. WebhookResourceTypeDaemonTaskGcBlobRunner WebhookResourceType = "DaemonTaskGcBlobRunner" )
func MustParseWebhookResourceType ¶
func MustParseWebhookResourceType(name string) WebhookResourceType
MustParseWebhookResourceType converts a string to a WebhookResourceType, and panics if is not valid.
func ParseWebhookResourceType ¶
func ParseWebhookResourceType(name string) (WebhookResourceType, error)
ParseWebhookResourceType attempts to convert a string to a WebhookResourceType.
func (WebhookResourceType) IsValid ¶
func (x WebhookResourceType) IsValid() bool
IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values
func (*WebhookResourceType) Scan ¶
func (x *WebhookResourceType) Scan(value interface{}) (err error)
Scan implements the Scanner interface.
func (WebhookResourceType) String ¶
func (x WebhookResourceType) String() string
String implements the Stringer interface.
type WebhookType ¶ added in v1.2.0
type WebhookType string
WebhookType x ENUM( Ping, Send, Resend, )
const ( // WebhookTypePing is a WebhookType of type Ping. WebhookTypePing WebhookType = "Ping" // WebhookTypeSend is a WebhookType of type Send. WebhookTypeSend WebhookType = "Send" // WebhookTypeResend is a WebhookType of type Resend. WebhookTypeResend WebhookType = "Resend" )
func MustParseWebhookType ¶ added in v1.2.0
func MustParseWebhookType(name string) WebhookType
MustParseWebhookType converts a string to a WebhookType, and panics if is not valid.
func ParseWebhookType ¶ added in v1.2.0
func ParseWebhookType(name string) (WebhookType, error)
ParseWebhookType attempts to convert a string to a WebhookType.
func (WebhookType) IsValid ¶ added in v1.2.0
func (x WebhookType) IsValid() bool
IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values
func (*WebhookType) Scan ¶ added in v1.2.0
func (x *WebhookType) Scan(value interface{}) (err error)
Scan implements the Scanner interface.
func (WebhookType) String ¶ added in v1.2.0
func (x WebhookType) String() string
String implements the Stringer interface.
type WorkQueueType ¶
type WorkQueueType string
WorkQueueType x ENUM( redis, kafka, database, inmemory, )
const ( // WorkQueueTypeRedis is a WorkQueueType of type redis. WorkQueueTypeRedis WorkQueueType = "redis" // WorkQueueTypeKafka is a WorkQueueType of type kafka. WorkQueueTypeKafka WorkQueueType = "kafka" // WorkQueueTypeDatabase is a WorkQueueType of type database. WorkQueueTypeDatabase WorkQueueType = "database" // WorkQueueTypeInmemory is a WorkQueueType of type inmemory. WorkQueueTypeInmemory WorkQueueType = "inmemory" )
func MustParseWorkQueueType ¶
func MustParseWorkQueueType(name string) WorkQueueType
MustParseWorkQueueType converts a string to a WorkQueueType, and panics if is not valid.
func ParseWorkQueueType ¶
func ParseWorkQueueType(name string) (WorkQueueType, error)
ParseWorkQueueType attempts to convert a string to a WorkQueueType.
func (WorkQueueType) IsValid ¶
func (x WorkQueueType) IsValid() bool
IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values
func (*WorkQueueType) Scan ¶
func (x *WorkQueueType) Scan(value interface{}) (err error)
Scan implements the Scanner interface.
func (WorkQueueType) String ¶
func (x WorkQueueType) String() string
String implements the Stringer interface.