Versions in this module Expand all Collapse all v1 v1.22.38 Sep 25, 2022 v1.22.12 Mar 28, 2022 Changes in this version + const CmdExitCodeKilled + const CmdExitCodeSuccess + const CmdExitCodeTimeOut + const CmdExitCodeUnknown + const ConfigCategorySmtp + const ConfigCategoryText + const EventOnBusy + const EventOnIdle + const SecretCategoryAndroidSign + const SecretCategoryAuth + const SecretCategoryKubeConfig + const SecretCategorySshRsa + const SecretCategoryToken + const TtyActionClose + const TtyActionOpen + const TtyActionShell + const VarAgentDebug + const VarAgentDockerAuth + const VarAgentDockerNetwork + const VarAgentEnableProfile + const VarAgentFromDocker + const VarAgentIpPattern + const VarAgentJobDir + const VarAgentLogDir + const VarAgentPluginDir + const VarAgentPort + const VarAgentToken + const VarAgentVolumes + const VarAgentWorkspace + const VarExportContainerIdPattern + const VarExportContainerIpPattern + const VarK8sEnabled + const VarK8sInCluster + const VarK8sNamespace + const VarK8sNodeName + const VarK8sPodIp + const VarK8sPodName + const VarServerUrl + func NilOrEmpty(v Variables) bool + type AgentConfig struct + ExitOnIdle int + type AgentConfigResponse struct + Data *AgentConfig + func (r *AgentConfigResponse) GetMessage() string + func (r *AgentConfigResponse) IsOk() bool + type AgentInit struct + IsDocker bool + IsK8sCluster bool + Os string + Port int + Status string + Token string + type AgentProfile struct + CpuNum int + CpuUsage float64 + FreeDisk uint64 + FreeMemory uint64 + TotalDisk uint64 + TotalMemory uint64 + type AgentStatus string + const AgentBusy + const AgentIdle + const AgentOffline + type AppEvent string + type AuthSecret struct + Pair *SimpleAuthPair + func (s *AuthSecret) ToEnvs() map[string]string + type Cache struct + Key string + Paths []string + type CmdIn struct + Type CmdType + type CmdOut interface + ToBytes func() []byte + type CmdStatus string + const CmdStatusException + const CmdStatusKilled + const CmdStatusPending + const CmdStatusRunning + const CmdStatusSkipped + const CmdStatusSuccess + const CmdStatusTimeout + type CmdType string + const CmdTypeClose + const CmdTypeKill + const CmdTypeShell + const CmdTypeTty + type Config interface + ConfigMarker func() + GetCategory func() string + GetName func() string + ToEnvs func() map[string]string + type ConfigBase struct + Category string + Name string + func (c *ConfigBase) ConfigMarker() + func (c *ConfigBase) GetCategory() string + func (c *ConfigBase) GetName() string + type ConfigResponse struct + Data *ConfigBase + type DockerConfig struct + Auth *SimpleAuthPair + Config *container.Config + ContainerID string + Host *container.HostConfig + IsDelete bool + IsStop bool + Name string + func (c *DockerConfig) HasEntrypoint() bool + type DockerOption struct + Auth string + AuthContent *SimpleAuthPair + Command []string + ContainerID string + Entrypoint []string + Environment Variables + Image string + IsDeleteContainer bool + IsRuntime bool + IsStopContainer bool + Name string + Network string + Ports []string + User string + func (d *DockerOption) HasAuth() bool + func (d *DockerOption) SetDefaultNetwork(network string) + func (d *DockerOption) ToConfig() *DockerConfig + func (d *DockerOption) ToRuntimeConfig(vars Variables, workingDir string, binds []string) *DockerConfig + type DockerVolume struct + Dest string + Image string + Init string + Name string + Script string + func NewVolumesFromString(val string) []*DockerVolume + func (v *DockerVolume) DefaultTargetInImage() string + func (v *DockerVolume) HasImage() bool + func (v *DockerVolume) InitScriptInImage() string + func (v *DockerVolume) ScriptPath() string + func (v *DockerVolume) ToBindStr() string + type JobCache struct + Files []string + FlowId string + Id string + JobId string + Key string + Os string + type JobCacheResponse struct + Data *JobCache + func (r *JobCacheResponse) GetMessage() string + func (r *JobCacheResponse) IsOk() bool + type K8sConfig struct + Enabled bool + InCluster bool + Namespace string + PodIp string + PodName string + type RSASecret struct + MD5FingerPrint string + Pair *SimpleKeyPair + func (s *RSASecret) ToEnvs() map[string]string + type Response struct + Code int + Message string + func (r *Response) GetMessage() string + func (r *Response) IsOk() bool + type ResponseMessage interface + GetMessage func() string + IsOk func() bool + type ResponseRaw struct + Raw json.RawMessage + type Secret interface + GetCategory func() string + GetName func() string + SecretMarker func() + ToEnvs func() map[string]string + type SecretBase struct + Category string + Name string + func (s *SecretBase) GetCategory() string + func (s *SecretBase) GetName() string + func (s *SecretBase) SecretMarker() + type SecretField struct + Data string + type SecretResponse struct + Data *SecretBase + type ShellIn struct + AllowFailure bool + Bash []string + Cache *Cache + Configs []string + Dockers []*DockerOption + EnvFilters []string + FlowId string + ID string + Inputs Variables + JobId string + Plugin string + Pwsh []string + Retry int + Secrets []string + Timeout int + func (in *ShellIn) HasCache() bool + func (in *ShellIn) HasConfigs() bool + func (in *ShellIn) HasDockerOption() bool + func (in *ShellIn) HasEnvFilters() bool + func (in *ShellIn) HasPlugin() bool + func (in *ShellIn) HasSecrets() bool + func (in *ShellIn) VarsToStringArray() []string + type ShellLog struct + JobId string + Log string + StepId string + type ShellOut struct + Code int + Containers []string + Error string + FinishAt time.Time + ID string + LogSize int64 + Output Variables + ProcessId int + StartAt time.Time + Status CmdStatus + func NewShellOutput(in *ShellIn) *ShellOut + func (e *ShellOut) IsFinishStatus() bool + func (e *ShellOut) ToBytes() []byte + type SimpleAuthPair struct + Password string + Username string + type SimpleKeyPair struct + PrivateKey string + PublicKey string + type SmtpConfig struct + Auth *SimpleAuthPair + Port int + SecureType string + Server string + func (c *SmtpConfig) ToEnvs() map[string]string + type TextConfig struct + Text string + func (c *TextConfig) ToEnvs() map[string]string + type TokenSecret struct + Token *SecretField + func (s *TokenSecret) ToEnvs() map[string]string + type TtyIn struct + Action string + ID string + Input string + type TtyLog struct + ID string + Log string + type TtyOut struct + Action string + Error string + ID string + IsSuccess bool + func (obj *TtyOut) ToBytes() []byte + type Variables map[string]string + func ConnectVars(a Variables, b Variables) Variables + func NewVariables() Variables + func (v Variables) AddMapVars(vars map[string]string) + func (v Variables) Copy() Variables + func (v Variables) IsEmpty() bool + func (v Variables) Resolve() Variables + func (v Variables) Size() int + func (v Variables) ToStringArray() []string