Documentation ¶
Overview ¶
Package ci provides helper functions to detect the CI/CD platform.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PlatformType ¶
type PlatformType int
PlatformType is the CI/CD platform.
const ( // PlatformLocal represents the local user environment. PlatformLocal PlatformType = iota PlatformGithub PlatformGitlab PlatformGenericCI PlatformAppVeyor PlatformAzureDevops PlatformBamboo PlatformBitBucket PlatformBuddyWorks PlatformBuildKite PlatformCircleCI PlatformCirrus PlatformCodeBuild PlatformHeroku PlatformHudson PlatformJenkins PlatformMyGet PlatformTeamCity PlatformTravis )
List of supported CI/CD platforms.
func DetectPlatformFromEnv ¶
func DetectPlatformFromEnv() PlatformType
DetectPlatformFromEnv detects PlatformType based on environment variables.
func (PlatformType) String ¶
func (plat PlatformType) String() string
Click to show internal directories.
Click to hide internal directories.