enums

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidArtifactType = errors.New("not a valid ArtifactType")
View Source
var ErrInvalidAuditAction = errors.New("not a valid AuditAction")
View Source
var ErrInvalidAuditResourceType = errors.New("not a valid AuditResourceType")
View Source
var ErrInvalidAuth = errors.New("not a valid Auth")
View Source
var ErrInvalidBuildStatus = errors.New("not a valid BuildStatus")
View Source
var ErrInvalidBuilderSource = errors.New("not a valid BuilderSource")
View Source
var ErrInvalidBuilderType = errors.New("not a valid BuilderType")
View Source
var ErrInvalidCacherType = errors.New("not a valid CacherType")
View Source
var ErrInvalidDaemon = errors.New("not a valid Daemon")
View Source
var ErrInvalidDaemonBuilderAction = errors.New("not a valid DaemonBuilderAction")
View Source
var ErrInvalidDatabase = errors.New("not a valid Database")
View Source
var ErrInvalidDeploy = errors.New("not a valid Deploy")
View Source
var ErrInvalidGcRecordStatus = errors.New("not a valid GcRecordStatus")
View Source
var ErrInvalidGcTarget = errors.New("not a valid GcTarget")
View Source
var ErrInvalidLockerType = errors.New("not a valid LockerType")
View Source
var ErrInvalidLogLevel = errors.New("not a valid LogLevel")
View Source
var ErrInvalidNamespaceRole = errors.New("not a valid NamespaceRole")
View Source
var ErrInvalidOciPlatform = errors.New("not a valid OciPlatform")
View Source
var ErrInvalidOperateType = errors.New("not a valid OperateType")
View Source
var ErrInvalidProvider = errors.New("not a valid Provider")
View Source
var ErrInvalidRedisType = errors.New("not a valid RedisType")
View Source
var ErrInvalidRetentionRuleType = errors.New("not a valid RetentionRuleType")
View Source
var ErrInvalidScmCredentialType = errors.New("not a valid ScmCredentialType")
View Source
var ErrInvalidScmProvider = errors.New("not a valid ScmProvider")
View Source
var ErrInvalidSigningType = errors.New("not a valid SigningType")
View Source
var ErrInvalidSortMethod = errors.New("not a valid SortMethod")
View Source
var ErrInvalidStorageType = errors.New("not a valid StorageType")
View Source
var ErrInvalidTaskCommonStatus = errors.New("not a valid TaskCommonStatus")
View Source
var ErrInvalidUserRole = errors.New("not a valid UserRole")
View Source
var ErrInvalidUserStatus = errors.New("not a valid UserStatus")
View Source
var ErrInvalidVisibility = errors.New("not a valid Visibility")
View Source
var ErrInvalidWebhookAction = errors.New("not a valid WebhookAction")
View Source
var ErrInvalidWebhookResourceType = errors.New("not a valid WebhookResourceType")
View Source
var ErrInvalidWebhookType = errors.New("not a valid WebhookType")
View Source
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.

func (ArtifactType) Value

func (x ArtifactType) Value() (driver.Value, error)

Value implements the driver Valuer 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.

func (AuditAction) Value

func (x AuditAction) Value() (driver.Value, error)

Value implements the driver Valuer 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.

func (AuditResourceType) Value

func (x AuditResourceType) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type Auth

type Auth string

Auth x ENUM( Read, Manage, Admin, )

const (
	// AuthRead is a Auth of type Read.
	AuthRead Auth = "Read"
	// AuthManage is a Auth of type Manage.
	AuthManage Auth = "Manage"
	// AuthAdmin is a Auth of type Admin.
	AuthAdmin Auth = "Admin"
)

func MustParseAuth

func MustParseAuth(name string) Auth

MustParseAuth converts a string to a Auth, and panics if is not valid.

func ParseAuth

func ParseAuth(name string) (Auth, error)

ParseAuth attempts to convert a string to a Auth.

func (Auth) IsValid

func (x Auth) IsValid() bool

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

func (*Auth) Scan

func (x *Auth) Scan(value interface{}) (err error)

Scan implements the Scanner interface.

func (Auth) String

func (x Auth) String() string

String implements the Stringer interface.

func (Auth) Value

func (x Auth) Value() (driver.Value, error)

Value implements the driver Valuer interface.

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.

func (BuildStatus) Value

func (x BuildStatus) Value() (driver.Value, error)

Value implements the driver Valuer 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.

func (BuilderSource) Value

func (x BuilderSource) Value() (driver.Value, error)

Value implements the driver Valuer 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.

func (BuilderType) Value

func (x BuilderType) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type CacherType

type CacherType string

CacherType x ENUM( inmemory, redis, database, )

const (
	// CacherTypeInmemory is a CacherType of type inmemory.
	CacherTypeInmemory CacherType = "inmemory"
	// CacherTypeRedis is a CacherType of type redis.
	CacherTypeRedis CacherType = "redis"
	// CacherTypeDatabase is a CacherType of type database.
	CacherTypeDatabase CacherType = "database"
)

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.

func (CacherType) Value

func (x CacherType) Value() (driver.Value, error)

Value implements the driver Valuer 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

func MustParseDaemon(name string) Daemon

MustParseDaemon converts a string to a Daemon, and panics if is not valid.

func ParseDaemon

func ParseDaemon(name string) (Daemon, error)

ParseDaemon attempts to convert a string to a Daemon.

func (Daemon) IsValid

func (x Daemon) IsValid() bool

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

func (*Daemon) Scan

func (x *Daemon) Scan(value interface{}) (err error)

Scan implements the Scanner interface.

func (Daemon) String

func (x Daemon) String() string

String implements the Stringer interface.

func (Daemon) Value

func (x Daemon) Value() (driver.Value, error)

Value implements the driver Valuer interface.

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.

func (DaemonBuilderAction) Value

func (x DaemonBuilderAction) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type Database

type Database string

Database x ENUM( postgresql, mysql, sqlite3, )

const (
	// DatabasePostgresql is a Database of type postgresql.
	DatabasePostgresql Database = "postgresql"
	// DatabaseMysql is a Database of type mysql.
	DatabaseMysql Database = "mysql"
	// DatabaseSqlite3 is a Database of type sqlite3.
	DatabaseSqlite3 Database = "sqlite3"
)

func MustParseDatabase

func MustParseDatabase(name string) Database

MustParseDatabase converts a string to a Database, and panics if is not valid.

func ParseDatabase

func ParseDatabase(name string) (Database, error)

ParseDatabase attempts to convert a string to a Database.

func (Database) IsValid

func (x Database) IsValid() bool

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

func (*Database) Scan

func (x *Database) Scan(value interface{}) (err error)

Scan implements the Scanner interface.

func (Database) String

func (x Database) String() string

String implements the Stringer interface.

func (Database) Value

func (x Database) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type Deploy

type Deploy string

Deploy x ENUM( single, replica, )

const (
	// DeploySingle is a Deploy of type single.
	DeploySingle Deploy = "single"
	// DeployReplica is a Deploy of type replica.
	DeployReplica Deploy = "replica"
)

func MustParseDeploy

func MustParseDeploy(name string) Deploy

MustParseDeploy converts a string to a Deploy, and panics if is not valid.

func ParseDeploy

func ParseDeploy(name string) (Deploy, error)

ParseDeploy attempts to convert a string to a Deploy.

func (Deploy) IsValid

func (x Deploy) IsValid() bool

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

func (*Deploy) Scan

func (x *Deploy) Scan(value interface{}) (err error)

Scan implements the Scanner interface.

func (Deploy) String

func (x Deploy) String() string

String implements the Stringer interface.

func (Deploy) Value

func (x Deploy) Value() (driver.Value, error)

Value implements the driver Valuer interface.

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.

func (GcRecordStatus) Value

func (x GcRecordStatus) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type GcTarget

type GcTarget string

GcTarget x ENUM( blobsAndArtifacts, artifacts, )

const (
	// GcTargetBlobsAndArtifacts is a GcTarget of type blobsAndArtifacts.
	GcTargetBlobsAndArtifacts GcTarget = "blobsAndArtifacts"
	// GcTargetArtifacts is a GcTarget of type artifacts.
	GcTargetArtifacts GcTarget = "artifacts"
)

func MustParseGcTarget

func MustParseGcTarget(name string) GcTarget

MustParseGcTarget converts a string to a GcTarget, and panics if is not valid.

func ParseGcTarget

func ParseGcTarget(name string) (GcTarget, error)

ParseGcTarget attempts to convert a string to a GcTarget.

func (GcTarget) IsValid

func (x GcTarget) IsValid() bool

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

func (*GcTarget) Scan

func (x *GcTarget) Scan(value interface{}) (err error)

Scan implements the Scanner interface.

func (GcTarget) String

func (x GcTarget) String() string

String implements the Stringer interface.

func (GcTarget) Value

func (x GcTarget) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type LockerType

type LockerType string

LockerType x ENUM( redis, database, )

const (
	// LockerTypeRedis is a LockerType of type redis.
	LockerTypeRedis LockerType = "redis"
	// LockerTypeDatabase is a LockerType of type database.
	LockerTypeDatabase LockerType = "database"
)

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.

func (LockerType) Value

func (x LockerType) Value() (driver.Value, error)

Value implements the driver Valuer 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

func MustParseLogLevel(name string) LogLevel

MustParseLogLevel converts a string to a LogLevel, and panics if is not valid.

func ParseLogLevel

func ParseLogLevel(name string) (LogLevel, error)

ParseLogLevel attempts to convert a string to a LogLevel.

func (LogLevel) IsValid

func (x LogLevel) IsValid() bool

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

func (*LogLevel) Scan

func (x *LogLevel) Scan(value interface{}) (err error)

Scan implements the Scanner interface.

func (LogLevel) String

func (x LogLevel) String() string

String implements the Stringer interface.

func (LogLevel) Value

func (x LogLevel) Value() (driver.Value, error)

Value implements the driver Valuer interface.

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.

func (NamespaceRole) Value

func (x NamespaceRole) Value() (driver.Value, error)

Value implements the driver Valuer 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.

func (OciPlatform) Value

func (x OciPlatform) Value() (driver.Value, error)

Value implements the driver Valuer 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.

func (OperateType) Value added in v1.2.0

func (x OperateType) Value() (driver.Value, error)

Value implements the driver Valuer 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

func MustParseProvider(name string) Provider

MustParseProvider converts a string to a Provider, and panics if is not valid.

func ParseProvider

func ParseProvider(name string) (Provider, error)

ParseProvider attempts to convert a string to a Provider.

func (Provider) IsValid

func (x Provider) IsValid() bool

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

func (*Provider) Scan

func (x *Provider) Scan(value interface{}) (err error)

Scan implements the Scanner interface.

func (Provider) String

func (x Provider) String() string

String implements the Stringer interface.

func (Provider) Value

func (x Provider) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type RedisType

type RedisType string

RedisType x ENUM( none, external, )

const (
	// RedisTypeNone is a RedisType of type none.
	RedisTypeNone RedisType = "none"
	// RedisTypeExternal is a RedisType of type external.
	RedisTypeExternal RedisType = "external"
)

func MustParseRedisType

func MustParseRedisType(name string) RedisType

MustParseRedisType converts a string to a RedisType, and panics if is not valid.

func ParseRedisType

func ParseRedisType(name string) (RedisType, error)

ParseRedisType attempts to convert a string to a RedisType.

func (RedisType) IsValid

func (x RedisType) IsValid() bool

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

func (*RedisType) Scan

func (x *RedisType) Scan(value interface{}) (err error)

Scan implements the Scanner interface.

func (RedisType) String

func (x RedisType) String() string

String implements the Stringer interface.

func (RedisType) Value

func (x RedisType) Value() (driver.Value, error)

Value implements the driver Valuer interface.

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.

func (RetentionRuleType) Value

func (x RetentionRuleType) Value() (driver.Value, error)

Value implements the driver Valuer 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.

func (ScmCredentialType) Value

func (x ScmCredentialType) Value() (driver.Value, error)

Value implements the driver Valuer 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.

func (ScmProvider) Value

func (x ScmProvider) Value() (driver.Value, error)

Value implements the driver Valuer 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.

func (SigningType) Value

func (x SigningType) Value() (driver.Value, error)

Value implements the driver Valuer 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.

func (SortMethod) Value

func (x SortMethod) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type StorageType

type StorageType string

StorageType x ENUM( s3, filesystem, cos, )

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

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.

func (StorageType) Value

func (x StorageType) Value() (driver.Value, error)

Value implements the driver Valuer 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.

func (TaskCommonStatus) Value

func (x TaskCommonStatus) Value() (driver.Value, error)

Value implements the driver Valuer 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

func MustParseUserRole(name string) UserRole

MustParseUserRole converts a string to a UserRole, and panics if is not valid.

func ParseUserRole

func ParseUserRole(name string) (UserRole, error)

ParseUserRole attempts to convert a string to a UserRole.

func (UserRole) IsValid

func (x UserRole) IsValid() bool

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

func (*UserRole) Scan

func (x *UserRole) Scan(value interface{}) (err error)

Scan implements the Scanner interface.

func (UserRole) String

func (x UserRole) String() string

String implements the Stringer interface.

func (UserRole) Value

func (x UserRole) Value() (driver.Value, error)

Value implements the driver Valuer interface.

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.

func (UserStatus) Value

func (x UserStatus) Value() (driver.Value, error)

Value implements the driver Valuer 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.

func (Visibility) Value

func (x Visibility) Value() (driver.Value, error)

Value implements the driver Valuer 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.

func (WebhookAction) Value added in v1.1.0

func (x WebhookAction) Value() (driver.Value, error)

Value implements the driver Valuer 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.

func (WebhookResourceType) Value

func (x WebhookResourceType) Value() (driver.Value, error)

Value implements the driver Valuer 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.

func (WebhookType) Value added in v1.2.0

func (x WebhookType) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type WorkQueueType

type WorkQueueType string

WorkQueueType x ENUM( redis, kafka, database, )

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

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.

func (WorkQueueType) Value

func (x WorkQueueType) Value() (driver.Value, error)

Value implements the driver Valuer interface.

Jump to

Keyboard shortcuts

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