enums

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InvalidDroneCiKind = errors.New("invalid DroneCiKind")
View Source
var InvalidDroneCiPlatformArch = errors.New("invalid DroneCiPlatformArch")
View Source
var InvalidDroneCiPlatformOs = errors.New("invalid DroneCiPlatformOs")
View Source
var InvalidDroneCiStepFailure = errors.New("invalid DroneCiStepFailure")
View Source
var InvalidDroneCiStepPull = errors.New("invalid DroneCiStepPull")
View Source
var InvalidDroneCiTriggerEvent = errors.New("invalid DroneCiTriggerEvent")
View Source
var InvalidDroneCiTriggerStatus = errors.New("invalid DroneCiTriggerStatus")
View Source
var InvalidDroneCiType = errors.New("invalid DroneCiType")

Functions

This section is empty.

Types

type DroneCiKind

type DroneCiKind uint8

api:enum

const (
	DRONE_CI_KIND_UNKNOWN    DroneCiKind = iota
	DRONE_CI_KIND__pipeline              // pipeline
	DRONE_CI_KIND__signature             // signature
	DRONE_CI_KIND__secret                // secret
)

DroneCI的kind类型

func ParseDroneCiKindFromLabelString

func ParseDroneCiKindFromLabelString(s string) (DroneCiKind, error)

func ParseDroneCiKindFromString

func ParseDroneCiKindFromString(s string) (DroneCiKind, error)

func (DroneCiKind) EnumType

func (DroneCiKind) EnumType() string

func (DroneCiKind) Enums

func (DroneCiKind) Enums() map[int][]string

func (DroneCiKind) Label

func (v DroneCiKind) Label() string

func (DroneCiKind) MarshalText

func (v DroneCiKind) MarshalText() ([]byte, error)

func (DroneCiKind) String

func (v DroneCiKind) String() string

func (*DroneCiKind) UnmarshalText

func (v *DroneCiKind) UnmarshalText(data []byte) (err error)

type DroneCiPlatformArch

type DroneCiPlatformArch uint8

api:enum

const (
	DRONE_CI_PLATFORM_ARCH_UNKNOWN DroneCiPlatformArch = iota
	DRONE_CI_PLATFORM_ARCH__amd64                      // amd64
	DRONE_CI_PLATFORM_ARCH__arm64                      // arm64
	DRONE_CI_PLATFORM_ARCH__arm                        // arm32
)

func ParseDroneCiPlatformArchFromLabelString

func ParseDroneCiPlatformArchFromLabelString(s string) (DroneCiPlatformArch, error)

func ParseDroneCiPlatformArchFromString

func ParseDroneCiPlatformArchFromString(s string) (DroneCiPlatformArch, error)

func (DroneCiPlatformArch) EnumType

func (DroneCiPlatformArch) EnumType() string

func (DroneCiPlatformArch) Enums

func (DroneCiPlatformArch) Enums() map[int][]string

func (DroneCiPlatformArch) Label

func (v DroneCiPlatformArch) Label() string

func (DroneCiPlatformArch) MarshalText

func (v DroneCiPlatformArch) MarshalText() ([]byte, error)

func (DroneCiPlatformArch) String

func (v DroneCiPlatformArch) String() string

func (*DroneCiPlatformArch) UnmarshalText

func (v *DroneCiPlatformArch) UnmarshalText(data []byte) (err error)

type DroneCiPlatformOs

type DroneCiPlatformOs uint8

api:enum

const (
	DRONE_CI_PLATFORM_OS_UNKNOWN  DroneCiPlatformOs = iota
	DRONE_CI_PLATFORM_OS__linux                     // linux
	DRONE_CI_PLATFORM_OS__windows                   // windows
)

func ParseDroneCiPlatformOsFromLabelString

func ParseDroneCiPlatformOsFromLabelString(s string) (DroneCiPlatformOs, error)

func ParseDroneCiPlatformOsFromString

func ParseDroneCiPlatformOsFromString(s string) (DroneCiPlatformOs, error)

func (DroneCiPlatformOs) EnumType

func (DroneCiPlatformOs) EnumType() string

func (DroneCiPlatformOs) Enums

func (DroneCiPlatformOs) Enums() map[int][]string

func (DroneCiPlatformOs) Label

func (v DroneCiPlatformOs) Label() string

func (DroneCiPlatformOs) MarshalText

func (v DroneCiPlatformOs) MarshalText() ([]byte, error)

func (DroneCiPlatformOs) String

func (v DroneCiPlatformOs) String() string

func (*DroneCiPlatformOs) UnmarshalText

func (v *DroneCiPlatformOs) UnmarshalText(data []byte) (err error)

type DroneCiStepFailure

type DroneCiStepFailure uint8

api:enum

const (
	DRONE_CI_STEP_FAILURE_UNKNOWN DroneCiStepFailure = iota
	DRONE_CI_STEP_FAILURE__ignore                    // ignore
)

func ParseDroneCiStepFailureFromLabelString

func ParseDroneCiStepFailureFromLabelString(s string) (DroneCiStepFailure, error)

func ParseDroneCiStepFailureFromString

func ParseDroneCiStepFailureFromString(s string) (DroneCiStepFailure, error)

func (DroneCiStepFailure) EnumType

func (DroneCiStepFailure) EnumType() string

func (DroneCiStepFailure) Enums

func (DroneCiStepFailure) Enums() map[int][]string

func (DroneCiStepFailure) Label

func (v DroneCiStepFailure) Label() string

func (DroneCiStepFailure) MarshalText

func (v DroneCiStepFailure) MarshalText() ([]byte, error)

func (DroneCiStepFailure) String

func (v DroneCiStepFailure) String() string

func (*DroneCiStepFailure) UnmarshalText

func (v *DroneCiStepFailure) UnmarshalText(data []byte) (err error)

type DroneCiStepPull

type DroneCiStepPull uint8

api:enum

const (
	DRONE_CI_STEP_PULL_UNKNOWN        DroneCiStepPull = iota
	DRONE_CI_STEP_PULL__if_not_exists                 // if not exists
	DRONE_CI_STEP_PULL__always                        // always
	DRONE_CI_STEP_PULL__never                         // never
)

func ParseDroneCiStepPullFromLabelString

func ParseDroneCiStepPullFromLabelString(s string) (DroneCiStepPull, error)

func ParseDroneCiStepPullFromString

func ParseDroneCiStepPullFromString(s string) (DroneCiStepPull, error)

func (DroneCiStepPull) EnumType

func (DroneCiStepPull) EnumType() string

func (DroneCiStepPull) Enums

func (DroneCiStepPull) Enums() map[int][]string

func (DroneCiStepPull) Label

func (v DroneCiStepPull) Label() string

func (DroneCiStepPull) MarshalText

func (v DroneCiStepPull) MarshalText() ([]byte, error)

func (DroneCiStepPull) String

func (v DroneCiStepPull) String() string

func (*DroneCiStepPull) UnmarshalText

func (v *DroneCiStepPull) UnmarshalText(data []byte) (err error)

type DroneCiTriggerEvent

type DroneCiTriggerEvent uint8

api:enum

const (
	DRONE_CI_TRIGGER_EVENT_UNKNOWN       DroneCiTriggerEvent = iota
	DRONE_CI_TRIGGER_EVENT__cron                             // cron
	DRONE_CI_TRIGGER_EVENT__custom                           // custom
	DRONE_CI_TRIGGER_EVENT__push                             // push
	DRONE_CI_TRIGGER_EVENT__pull_request                     // pull request
	DRONE_CI_TRIGGER_EVENT__tag                              // tag
	DRONE_CI_TRIGGER_EVENT__promote                          // promote
	DRONE_CI_TRIGGER_EVENT__rollback                         // rollback
)

func ParseDroneCiTriggerEventFromLabelString

func ParseDroneCiTriggerEventFromLabelString(s string) (DroneCiTriggerEvent, error)

func ParseDroneCiTriggerEventFromString

func ParseDroneCiTriggerEventFromString(s string) (DroneCiTriggerEvent, error)

func (DroneCiTriggerEvent) EnumType

func (DroneCiTriggerEvent) EnumType() string

func (DroneCiTriggerEvent) Enums

func (DroneCiTriggerEvent) Enums() map[int][]string

func (DroneCiTriggerEvent) Label

func (v DroneCiTriggerEvent) Label() string

func (DroneCiTriggerEvent) MarshalText

func (v DroneCiTriggerEvent) MarshalText() ([]byte, error)

func (DroneCiTriggerEvent) String

func (v DroneCiTriggerEvent) String() string

func (*DroneCiTriggerEvent) UnmarshalText

func (v *DroneCiTriggerEvent) UnmarshalText(data []byte) (err error)

type DroneCiTriggerStatus

type DroneCiTriggerStatus uint8

api:enum

const (
	DRONE_CI_TRIGGER_STATUS_UNKNOWN  DroneCiTriggerStatus = iota
	DRONE_CI_TRIGGER_STATUS__success                      // success
	DRONE_CI_TRIGGER_STATUS__failure                      // failure
)

func ParseDroneCiTriggerStatusFromLabelString

func ParseDroneCiTriggerStatusFromLabelString(s string) (DroneCiTriggerStatus, error)

func ParseDroneCiTriggerStatusFromString

func ParseDroneCiTriggerStatusFromString(s string) (DroneCiTriggerStatus, error)

func (DroneCiTriggerStatus) EnumType

func (DroneCiTriggerStatus) EnumType() string

func (DroneCiTriggerStatus) Enums

func (DroneCiTriggerStatus) Enums() map[int][]string

func (DroneCiTriggerStatus) Label

func (v DroneCiTriggerStatus) Label() string

func (DroneCiTriggerStatus) MarshalText

func (v DroneCiTriggerStatus) MarshalText() ([]byte, error)

func (DroneCiTriggerStatus) String

func (v DroneCiTriggerStatus) String() string

func (*DroneCiTriggerStatus) UnmarshalText

func (v *DroneCiTriggerStatus) UnmarshalText(data []byte) (err error)

type DroneCiType

type DroneCiType uint8

api:enum

const (
	DRONE_CI_TYPE_UNKNOWN     DroneCiType = iota
	DRONE_CI_TYPE__docker                 // which executes each pipeline steps inside isolated Docker containers
	DRONE_CI_TYPE__kubernetes             // which executes pipeline steps as containers inside of Kubernetes pods
	DRONE_CI_TYPE__exec                   // which executes pipeline steps directly on the host machine, with zero isolation
	DRONE_CI_TYPE__ssh                    // which executes shell commands on remote servers using the ssh protocol
)

DroneCI的type类型

func ParseDroneCiTypeFromLabelString

func ParseDroneCiTypeFromLabelString(s string) (DroneCiType, error)

func ParseDroneCiTypeFromString

func ParseDroneCiTypeFromString(s string) (DroneCiType, error)

func (DroneCiType) EnumType

func (DroneCiType) EnumType() string

func (DroneCiType) Enums

func (DroneCiType) Enums() map[int][]string

func (DroneCiType) Label

func (v DroneCiType) Label() string

func (DroneCiType) MarshalText

func (v DroneCiType) MarshalText() ([]byte, error)

func (DroneCiType) String

func (v DroneCiType) String() string

func (*DroneCiType) UnmarshalText

func (v *DroneCiType) UnmarshalText(data []byte) (err error)

Jump to

Keyboard shortcuts

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