actions

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ArchX86   = "X86"
	ArchX64   = "X64"
	ArchARM   = "ARM"
	ArchARM64 = "ARM64"
)
View Source
const (
	DefaultBranch = "main"
	DefaultRemote = "origin"
)
View Source
const (
	EnvVarCI              = "CI"
	EnvVarWorkflow        = "GITHUB_WORKFLOW"
	EnvVarRunID           = "GITHUB_RUN_ID"
	EnvVarRunNumber       = "GITHUB_RUN_NUMBER"
	EnvVarRunAttempt      = "GITHUB_RUN_ATTEMPT"
	EnvVarJob             = "GITHUB_JOB"
	EnvVarAction          = "GITHUB_ACTION"
	EnvVarActionPath      = "GITHUB_ACTION_PATH"
	EnvVarActions         = "GITHUB_ACTIONS"
	EnvVarActor           = "GITHUB_ACTOR"
	EnvVarRepository      = "GITHUB_REPOSITORY"
	EnvVarEventName       = "GITHUB_EVENT_NAME"
	EnvVarEventPath       = "GITHUB_EVENT_PATH"
	EnvVarWorkspace       = "GITHUB_WORKSPACE"
	EnvVarSha             = "GITHUB_SHA"
	EnvVarRef             = "GITHUB_REF"
	EnvVarRefName         = "GITHUB_REF_NAME"
	EnvVarRefProtected    = "GITHUB_REF_PROTECTED"
	EnvVarRefType         = "GITHUB_REF_TYPE"
	EnvVarHeadRef         = "GITHUB_HEAD_REF"
	EnvVarBaseRef         = "GITHUB_BASE_REF"
	EnvVarServerURL       = "GITHUB_SERVER_URL"
	EnvVarAPIURL          = "GITHUB_API_URL"
	EnvVarGraphQLURL      = "GITHUB_GRAPHQL_URL"
	EnvVarRunnerName      = "RUNNER_NAME"
	EnvVarRunnerOS        = "RUNNER_OS"
	EnvVarRunnerArch      = "RUNNER_ARCH"
	EnvVarRunnerTemp      = "RUNNER_TEMP"
	EnvVarRunnerToolCache = "RUNNER_TOOL_CACHE"

	EnvVarEnv  = "GITHUB_ENV"
	EnvVarPath = "GITHUB_PATH"

	EnvVarToken = "GITHUB_TOKEN" //nolint:gosec

	EnvVarRepositoryOwner  = "GITHUB_REPOSITORY_OWNER"
	EnvVarRetentionDays    = "GITHUB_RETENTION_DAYS"
	EnvVarStepSummary      = "GITHUB_STEP_SUMMARY"
	EnvVarActionRepository = "GITHUB_ACTION_REPOSITORY"
)
View Source
const (
	RunsUsingDockerImagePrefix = "docker://"
	RunsUsingDocker            = "docker"
	RunsUsingComposite         = "composite"
	RunsUsingNode12            = "node12"
	RunsUsingNode16            = "node16"
)
View Source
const (
	OSLinux   = "Linux"
	OSWindows = "Windows"
	OSDarwin  = "macOS"
)
View Source
const (
	RefTypeTag    = "tag"
	RefTypeBranch = "branch"
)
View Source
const (
	CommandDebug        = "debug"
	CommandGroup        = "group"
	CommandEndGroup     = "endgroup"
	CommandSaveState    = "save-state"
	CommandSetOutput    = "set-output"
	CommandNotice       = "notice"
	CommandWarning      = "warning"
	CommandError        = "error"
	CommandAddMask      = "add-mask"
	CommandEcho         = "echo"
	CommandStopCommands = "stop-commands"
)

Variables

View Source
var (
	ErrNotAnAction         = errors.New("action.yaml/action.yml not found")
	ErrNotAWorkflowCommand = errors.New("not a workflow command")
)
View Source
var (
	DefaultURL        *url.URL
	DefaultAPIURL     *url.URL
	DefaultGraphQLURL *url.URL
)
View Source
var (
	ActionYAMLFilenames = []string{"action.yml", "action.yaml"}
)
View Source
var (
	ErrMissingRequiredInput = errors.New("required input missing")
)
View Source
var File_pkg_github_actions_ctx_proto protoreflect.FileDescriptor
View Source
var File_pkg_github_actions_metadata_proto protoreflect.FileDescriptor
View Source
var File_pkg_github_actions_step_proto protoreflect.FileDescriptor
View Source
var File_pkg_github_actions_uses_proto protoreflect.FileDescriptor

Functions

func APIURLFromBaseURL

func APIURLFromBaseURL(base *url.URL) (*url.URL, error)

func Expand

func Expand(b []byte, mapping ExpandFunc) (p []byte)

func ExpandString

func ExpandString(s string, mapping ExpandFunc) string

func GetGitHubAPIURL

func GetGitHubAPIURL() *url.URL

func GetGitHubServerURL

func GetGitHubServerURL() *url.URL

func GetGitHubURL

func GetGitHubURL() *url.URL

func GetGraphQLURL

func GetGraphQLURL() *url.URL

func GraphQLURLFromBaseURL

func GraphQLURLFromBaseURL(base *url.URL) (*url.URL, error)

func IsErrNotAWorkflowCommand

func IsErrNotAWorkflowCommand(err error) bool

func IsErrNotAnAction

func IsErrNotAnAction(err error) bool

func NewWorkflowCommandWriter

func NewWorkflowCommandWriter(callback func(*WorkflowCommand) []byte, w io.Writer) io.Writer

func OpenDirectoryMetadata

func OpenDirectoryMetadata(dir string) (_ io.Reader, err error)

func OpenUsesMetadata

func OpenUsesMetadata(uses *Uses) (io.Reader, error)

func WithGlobalContext

func WithGlobalContext(ctx context.Context, globalContext *GlobalContext) context.Context

Types

type CheckoutOpts

type CheckoutOpts struct {
	Path      string
	Insecure  bool
	GitHubURL *url.URL
}

type ExpandFunc

type ExpandFunc func(string) string

type Expander

type Expander struct {
	ExpandFunc
}

func NewExpander

func NewExpander(f ExpandFunc) *Expander

func (*Expander) Expand

func (e *Expander) Expand(b []byte) []byte

func (*Expander) ExpandString

func (e *Expander) ExpandString(s string) string

type GitHubContext

type GitHubContext struct {
	Action          string `protobuf:"bytes,1,opt,name=action,proto3" json:"action,omitempty"`
	ActionPath      string `protobuf:"bytes,2,opt,name=action_path,json=actionPath,proto3" json:"action_path,omitempty"`
	Actor           string `protobuf:"bytes,3,opt,name=actor,proto3" json:"actor,omitempty"`
	BaseRef         string `protobuf:"bytes,4,opt,name=base_ref,json=baseRef,proto3" json:"base_ref,omitempty"`
	Event           string `protobuf:"bytes,5,opt,name=event,proto3" json:"event,omitempty"`
	EventName       string `protobuf:"bytes,6,opt,name=event_name,json=eventName,proto3" json:"event_name,omitempty"`
	EventPath       string `protobuf:"bytes,7,opt,name=event_path,json=eventPath,proto3" json:"event_path,omitempty"`
	HeadRef         string `protobuf:"bytes,8,opt,name=head_ref,json=headRef,proto3" json:"head_ref,omitempty"`
	Job             string `protobuf:"bytes,9,opt,name=job,proto3" json:"job,omitempty"`
	Ref             string `protobuf:"bytes,10,opt,name=ref,proto3" json:"ref,omitempty"`
	RefName         string `protobuf:"bytes,11,opt,name=ref_name,json=refName,proto3" json:"ref_name,omitempty"`
	RefProtected    bool   `protobuf:"varint,12,opt,name=ref_protected,json=refProtected,proto3" json:"ref_protected,omitempty"`
	RefType         string `protobuf:"bytes,13,opt,name=ref_type,json=refType,proto3" json:"ref_type,omitempty"`
	Repository      string `protobuf:"bytes,14,opt,name=repository,proto3" json:"repository,omitempty"`
	RepositoryOwner string `protobuf:"bytes,15,opt,name=repository_owner,json=repositoryOwner,proto3" json:"repository_owner,omitempty"`
	RunId           string `protobuf:"bytes,16,opt,name=run_id,json=runId,proto3" json:"run_id,omitempty"`
	RunNumber       int64  `protobuf:"varint,17,opt,name=run_number,json=runNumber,proto3" json:"run_number,omitempty"`
	RunAttempt      int64  `protobuf:"varint,18,opt,name=run_attempt,json=runAttempt,proto3" json:"run_attempt,omitempty"`
	ServerUrl       string `protobuf:"bytes,19,opt,name=server_url,json=serverUrl,proto3" json:"server_url,omitempty"`
	Sha             string `protobuf:"bytes,20,opt,name=sha,proto3" json:"sha,omitempty"`
	Token           string `protobuf:"bytes,21,opt,name=token,proto3" json:"token,omitempty"`
	Workflow        string `protobuf:"bytes,22,opt,name=workflow,proto3" json:"workflow,omitempty"`
	Workspace       string `protobuf:"bytes,23,opt,name=workspace,proto3" json:"workspace,omitempty"`
	// contains filtered or unexported fields
}

func (*GitHubContext) Descriptor deprecated

func (*GitHubContext) Descriptor() ([]byte, []int)

Deprecated: Use GitHubContext.ProtoReflect.Descriptor instead.

func (*GitHubContext) GetAction

func (x *GitHubContext) GetAction() string

func (*GitHubContext) GetActionPath

func (x *GitHubContext) GetActionPath() string

func (*GitHubContext) GetActor

func (x *GitHubContext) GetActor() string

func (*GitHubContext) GetBaseRef

func (x *GitHubContext) GetBaseRef() string

func (*GitHubContext) GetEvent

func (x *GitHubContext) GetEvent() string

func (*GitHubContext) GetEventName

func (x *GitHubContext) GetEventName() string

func (*GitHubContext) GetEventPath

func (x *GitHubContext) GetEventPath() string

func (*GitHubContext) GetHeadRef

func (x *GitHubContext) GetHeadRef() string

func (*GitHubContext) GetJob

func (x *GitHubContext) GetJob() string

func (*GitHubContext) GetRef

func (x *GitHubContext) GetRef() string

func (*GitHubContext) GetRefName

func (x *GitHubContext) GetRefName() string

func (*GitHubContext) GetRefProtected

func (x *GitHubContext) GetRefProtected() bool

func (*GitHubContext) GetRefType

func (x *GitHubContext) GetRefType() string

func (*GitHubContext) GetRepository

func (x *GitHubContext) GetRepository() string

func (*GitHubContext) GetRepositoryOwner

func (x *GitHubContext) GetRepositoryOwner() string

func (*GitHubContext) GetRunAttempt

func (x *GitHubContext) GetRunAttempt() int64

func (*GitHubContext) GetRunId

func (x *GitHubContext) GetRunId() string

func (*GitHubContext) GetRunNumber

func (x *GitHubContext) GetRunNumber() int64

func (*GitHubContext) GetServerUrl

func (x *GitHubContext) GetServerUrl() string

func (*GitHubContext) GetSha

func (x *GitHubContext) GetSha() string

func (*GitHubContext) GetString

func (c *GitHubContext) GetString(key string) string

func (*GitHubContext) GetToken

func (x *GitHubContext) GetToken() string

func (*GitHubContext) GetWorkflow

func (x *GitHubContext) GetWorkflow() string

func (*GitHubContext) GetWorkspace

func (x *GitHubContext) GetWorkspace() string

func (*GitHubContext) ProtoMessage

func (*GitHubContext) ProtoMessage()

func (*GitHubContext) ProtoReflect

func (x *GitHubContext) ProtoReflect() protoreflect.Message

func (*GitHubContext) Reset

func (x *GitHubContext) Reset()

func (*GitHubContext) String

func (x *GitHubContext) String() string

type GlobalContext

type GlobalContext struct {
	GitHubContext  *GitHubContext          `protobuf:"bytes,1,opt,name=git_hub_context,json=gitHubContext,proto3" json:"git_hub_context,omitempty"`
	EnvContext     map[string]string       `` /* 179-byte string literal not displayed */
	JobContext     *JobContext             `protobuf:"bytes,3,opt,name=job_context,json=jobContext,proto3" json:"job_context,omitempty"`
	StepsContext   map[string]*StepContext `` /* 185-byte string literal not displayed */
	RunnerContext  *RunnerContext          `protobuf:"bytes,5,opt,name=runner_context,json=runnerContext,proto3" json:"runner_context,omitempty"`
	InputsContext  map[string]string       `` /* 188-byte string literal not displayed */
	SecretsContext map[string]string       `` /* 191-byte string literal not displayed */
	NeedsContext   map[string]*NeedContext `` /* 185-byte string literal not displayed */
	// contains filtered or unexported fields
}

func GlobalContextFrom

func GlobalContextFrom(ctx context.Context) (globalContext *GlobalContext, ok bool)

func NewGlobalContextFromEnv

func NewGlobalContextFromEnv() *GlobalContext

func NewGlobalContextFromPath

func NewGlobalContextFromPath(ctx context.Context, path string) (*GlobalContext, error)

func (*GlobalContext) AddEnv

func (c *GlobalContext) AddEnv(env map[string]string)

func (*GlobalContext) Descriptor deprecated

func (*GlobalContext) Descriptor() ([]byte, []int)

Deprecated: Use GlobalContext.ProtoReflect.Descriptor instead.

func (*GlobalContext) Env

func (c *GlobalContext) Env() []string

func (*GlobalContext) GetEnvContext

func (x *GlobalContext) GetEnvContext() map[string]string

func (*GlobalContext) GetGitHubContext

func (x *GlobalContext) GetGitHubContext() *GitHubContext

func (*GlobalContext) GetInputsContext

func (x *GlobalContext) GetInputsContext() map[string]string

func (*GlobalContext) GetJobContext

func (x *GlobalContext) GetJobContext() *JobContext

func (*GlobalContext) GetNeedsContext

func (x *GlobalContext) GetNeedsContext() map[string]*NeedContext

func (*GlobalContext) GetRunnerContext

func (x *GlobalContext) GetRunnerContext() *RunnerContext

func (*GlobalContext) GetSecretsContext

func (x *GlobalContext) GetSecretsContext() map[string]string

func (*GlobalContext) GetStepsContext

func (x *GlobalContext) GetStepsContext() map[string]*StepContext

func (*GlobalContext) GetString

func (c *GlobalContext) GetString(key string) string

func (*GlobalContext) ProtoMessage

func (*GlobalContext) ProtoMessage()

func (*GlobalContext) ProtoReflect

func (x *GlobalContext) ProtoReflect() protoreflect.Message

func (*GlobalContext) Reset

func (x *GlobalContext) Reset()

func (*GlobalContext) String

func (x *GlobalContext) String() string

type JobContext

type JobContext struct {
	Container *JobContext_Container          `protobuf:"bytes,1,opt,name=container,proto3" json:"container,omitempty"`
	Services  map[string]*JobContext_Service `` /* 157-byte string literal not displayed */
	Status    string                         `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*JobContext) Descriptor deprecated

func (*JobContext) Descriptor() ([]byte, []int)

Deprecated: Use JobContext.ProtoReflect.Descriptor instead.

func (*JobContext) GetContainer

func (x *JobContext) GetContainer() *JobContext_Container

func (*JobContext) GetServices

func (x *JobContext) GetServices() map[string]*JobContext_Service

func (*JobContext) GetStatus

func (x *JobContext) GetStatus() string

func (*JobContext) GetString

func (c *JobContext) GetString(key string) string

func (*JobContext) ProtoMessage

func (*JobContext) ProtoMessage()

func (*JobContext) ProtoReflect

func (x *JobContext) ProtoReflect() protoreflect.Message

func (*JobContext) Reset

func (x *JobContext) Reset()

func (*JobContext) String

func (x *JobContext) String() string

type JobContext_Container

type JobContext_Container struct {
	Id      string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Network string `protobuf:"bytes,2,opt,name=network,proto3" json:"network,omitempty"`
	// contains filtered or unexported fields
}

func (*JobContext_Container) Descriptor deprecated

func (*JobContext_Container) Descriptor() ([]byte, []int)

Deprecated: Use JobContext_Container.ProtoReflect.Descriptor instead.

func (*JobContext_Container) GetId

func (x *JobContext_Container) GetId() string

func (*JobContext_Container) GetNetwork

func (x *JobContext_Container) GetNetwork() string

func (*JobContext_Container) ProtoMessage

func (*JobContext_Container) ProtoMessage()

func (*JobContext_Container) ProtoReflect

func (x *JobContext_Container) ProtoReflect() protoreflect.Message

func (*JobContext_Container) Reset

func (x *JobContext_Container) Reset()

func (*JobContext_Container) String

func (x *JobContext_Container) String() string

type JobContext_Service

type JobContext_Service struct {
	Id      string            `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Network string            `protobuf:"bytes,2,opt,name=network,proto3" json:"network,omitempty"`
	Ports   map[string]string `` /* 151-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*JobContext_Service) Descriptor deprecated

func (*JobContext_Service) Descriptor() ([]byte, []int)

Deprecated: Use JobContext_Service.ProtoReflect.Descriptor instead.

func (*JobContext_Service) GetId

func (x *JobContext_Service) GetId() string

func (*JobContext_Service) GetNetwork

func (x *JobContext_Service) GetNetwork() string

func (*JobContext_Service) GetPorts

func (x *JobContext_Service) GetPorts() map[string]string

func (*JobContext_Service) ProtoMessage

func (*JobContext_Service) ProtoMessage()

func (*JobContext_Service) ProtoReflect

func (x *JobContext_Service) ProtoReflect() protoreflect.Message

func (*JobContext_Service) Reset

func (x *JobContext_Service) Reset()

func (*JobContext_Service) String

func (x *JobContext_Service) String() string

type Metadata

type Metadata struct {
	Name        string                      `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Author      string                      `protobuf:"bytes,2,opt,name=author,proto3" json:"author,omitempty"`
	Description string                      `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	Inputs      map[string]*Metadata_Input  `` /* 153-byte string literal not displayed */
	Output      map[string]*Metadata_Output `` /* 153-byte string literal not displayed */
	Runs        *Metadata_Runs              `protobuf:"bytes,6,opt,name=runs,proto3" json:"runs,omitempty"`
	// contains filtered or unexported fields
}

func CheckoutUses

func CheckoutUses(ctx context.Context, u *Uses, opts *CheckoutOpts) (*Metadata, error)

func GetUsesMetadata

func GetUsesMetadata(ctx context.Context, uses *Uses, dir string) (*Metadata, error)

func NewMetadataFromReader

func NewMetadataFromReader(r io.Reader) (*Metadata, error)

func (*Metadata) Descriptor deprecated

func (*Metadata) Descriptor() ([]byte, []int)

Deprecated: Use Metadata.ProtoReflect.Descriptor instead.

func (*Metadata) GetAuthor

func (x *Metadata) GetAuthor() string

func (*Metadata) GetDescription

func (x *Metadata) GetDescription() string

func (*Metadata) GetInputs

func (x *Metadata) GetInputs() map[string]*Metadata_Input

func (*Metadata) GetName

func (x *Metadata) GetName() string

func (*Metadata) GetOutput

func (x *Metadata) GetOutput() map[string]*Metadata_Output

func (*Metadata) GetRuns

func (x *Metadata) GetRuns() *Metadata_Runs

func (*Metadata) InputsFromWith

func (m *Metadata) InputsFromWith(with map[string]string) (map[string]string, error)

func (*Metadata) IsComposite

func (m *Metadata) IsComposite() bool

func (*Metadata) ProtoMessage

func (*Metadata) ProtoMessage()

func (*Metadata) ProtoReflect

func (x *Metadata) ProtoReflect() protoreflect.Message

func (*Metadata) Reset

func (x *Metadata) Reset()

func (*Metadata) String

func (x *Metadata) String() string

type Metadata_Input

type Metadata_Input struct {
	Description        string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
	Required           bool   `protobuf:"varint,2,opt,name=required,proto3" json:"required,omitempty"`
	Default            string `protobuf:"bytes,3,opt,name=default,proto3" json:"default,omitempty"`
	DeprecationMessage string `protobuf:"bytes,4,opt,name=deprecation_message,json=deprecationMessage,proto3" json:"deprecation_message,omitempty"`
	// contains filtered or unexported fields
}

func (*Metadata_Input) Descriptor deprecated

func (*Metadata_Input) Descriptor() ([]byte, []int)

Deprecated: Use Metadata_Input.ProtoReflect.Descriptor instead.

func (*Metadata_Input) GetDefault

func (x *Metadata_Input) GetDefault() string

func (*Metadata_Input) GetDeprecationMessage

func (x *Metadata_Input) GetDeprecationMessage() string

func (*Metadata_Input) GetDescription

func (x *Metadata_Input) GetDescription() string

func (*Metadata_Input) GetRequired

func (x *Metadata_Input) GetRequired() bool

func (*Metadata_Input) ProtoMessage

func (*Metadata_Input) ProtoMessage()

func (*Metadata_Input) ProtoReflect

func (x *Metadata_Input) ProtoReflect() protoreflect.Message

func (*Metadata_Input) Reset

func (x *Metadata_Input) Reset()

func (*Metadata_Input) String

func (x *Metadata_Input) String() string

type Metadata_Output

type Metadata_Output struct {
	Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
	// contains filtered or unexported fields
}

func (*Metadata_Output) Descriptor deprecated

func (*Metadata_Output) Descriptor() ([]byte, []int)

Deprecated: Use Metadata_Output.ProtoReflect.Descriptor instead.

func (*Metadata_Output) GetDescription

func (x *Metadata_Output) GetDescription() string

func (*Metadata_Output) ProtoMessage

func (*Metadata_Output) ProtoMessage()

func (*Metadata_Output) ProtoReflect

func (x *Metadata_Output) ProtoReflect() protoreflect.Message

func (*Metadata_Output) Reset

func (x *Metadata_Output) Reset()

func (*Metadata_Output) String

func (x *Metadata_Output) String() string

type Metadata_Runs

type Metadata_Runs struct {
	Plugin         string            `protobuf:"bytes,1,opt,name=plugin,proto3" json:"plugin,omitempty"`
	Using          string            `protobuf:"bytes,2,opt,name=using,proto3" json:"using,omitempty"`
	Pre            string            `protobuf:"bytes,3,opt,name=pre,proto3" json:"pre,omitempty"`
	Main           string            `protobuf:"bytes,4,opt,name=main,proto3" json:"main,omitempty"`
	Post           string            `protobuf:"bytes,5,opt,name=post,proto3" json:"post,omitempty"`
	Image          string            `protobuf:"bytes,6,opt,name=image,proto3" json:"image,omitempty"`
	PreEntrypoint  string            `protobuf:"bytes,7,opt,name=pre_entrypoint,json=preEntrypoint,proto3" json:"pre_entrypoint,omitempty"`
	Entrypoint     string            `protobuf:"bytes,8,opt,name=entrypoint,proto3" json:"entrypoint,omitempty"`
	PostEntrypoint string            `protobuf:"bytes,9,opt,name=post_entrypoint,json=postEntrypoint,proto3" json:"post_entrypoint,omitempty"`
	Args           []string          `protobuf:"bytes,10,rep,name=args,proto3" json:"args,omitempty"`
	Env            map[string]string `` /* 148-byte string literal not displayed */
	Steps          []*Step           `protobuf:"bytes,12,rep,name=steps,proto3" json:"steps,omitempty"`
	// contains filtered or unexported fields
}

func (*Metadata_Runs) Descriptor deprecated

func (*Metadata_Runs) Descriptor() ([]byte, []int)

Deprecated: Use Metadata_Runs.ProtoReflect.Descriptor instead.

func (*Metadata_Runs) GetArgs

func (x *Metadata_Runs) GetArgs() []string

func (*Metadata_Runs) GetEntrypoint

func (x *Metadata_Runs) GetEntrypoint() string

func (*Metadata_Runs) GetEnv

func (x *Metadata_Runs) GetEnv() map[string]string

func (*Metadata_Runs) GetImage

func (x *Metadata_Runs) GetImage() string

func (*Metadata_Runs) GetMain

func (x *Metadata_Runs) GetMain() string

func (*Metadata_Runs) GetPlugin

func (x *Metadata_Runs) GetPlugin() string

func (*Metadata_Runs) GetPost

func (x *Metadata_Runs) GetPost() string

func (*Metadata_Runs) GetPostEntrypoint

func (x *Metadata_Runs) GetPostEntrypoint() string

func (*Metadata_Runs) GetPre

func (x *Metadata_Runs) GetPre() string

func (*Metadata_Runs) GetPreEntrypoint

func (x *Metadata_Runs) GetPreEntrypoint() string

func (*Metadata_Runs) GetSteps

func (x *Metadata_Runs) GetSteps() []*Step

func (*Metadata_Runs) GetUsing

func (x *Metadata_Runs) GetUsing() string

func (*Metadata_Runs) ProtoMessage

func (*Metadata_Runs) ProtoMessage()

func (*Metadata_Runs) ProtoReflect

func (x *Metadata_Runs) ProtoReflect() protoreflect.Message

func (*Metadata_Runs) Reset

func (x *Metadata_Runs) Reset()

func (*Metadata_Runs) String

func (x *Metadata_Runs) String() string

type NeedContext

type NeedContext struct {
	Outputs map[string]string `` /* 155-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*NeedContext) Descriptor deprecated

func (*NeedContext) Descriptor() ([]byte, []int)

Deprecated: Use NeedContext.ProtoReflect.Descriptor instead.

func (*NeedContext) GetOutputs

func (x *NeedContext) GetOutputs() map[string]string

func (*NeedContext) GetString

func (c *NeedContext) GetString(key string) string

func (*NeedContext) ProtoMessage

func (*NeedContext) ProtoMessage()

func (*NeedContext) ProtoReflect

func (x *NeedContext) ProtoReflect() protoreflect.Message

func (*NeedContext) Reset

func (x *NeedContext) Reset()

func (*NeedContext) String

func (x *NeedContext) String() string

type RunnerContext

type RunnerContext struct {
	Name      string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Os        string `protobuf:"bytes,2,opt,name=os,proto3" json:"os,omitempty"`
	Arch      string `protobuf:"bytes,3,opt,name=arch,proto3" json:"arch,omitempty"`
	Temp      string `protobuf:"bytes,4,opt,name=temp,proto3" json:"temp,omitempty"`
	ToolCache string `protobuf:"bytes,5,opt,name=tool_cache,json=toolCache,proto3" json:"tool_cache,omitempty"`
	// contains filtered or unexported fields
}

func (*RunnerContext) Descriptor deprecated

func (*RunnerContext) Descriptor() ([]byte, []int)

Deprecated: Use RunnerContext.ProtoReflect.Descriptor instead.

func (*RunnerContext) GetArch

func (x *RunnerContext) GetArch() string

func (*RunnerContext) GetName

func (x *RunnerContext) GetName() string

func (*RunnerContext) GetOs

func (x *RunnerContext) GetOs() string

func (*RunnerContext) GetString

func (c *RunnerContext) GetString(key string) string

func (*RunnerContext) GetTemp

func (x *RunnerContext) GetTemp() string

func (*RunnerContext) GetToolCache

func (x *RunnerContext) GetToolCache() string

func (*RunnerContext) ProtoMessage

func (*RunnerContext) ProtoMessage()

func (*RunnerContext) ProtoReflect

func (x *RunnerContext) ProtoReflect() protoreflect.Message

func (*RunnerContext) Reset

func (x *RunnerContext) Reset()

func (*RunnerContext) String

func (x *RunnerContext) String() string

type Step

type Step struct {
	Shell      string            `protobuf:"bytes,1,opt,name=shell,proto3" json:"shell,omitempty"`
	If         string            `protobuf:"bytes,2,opt,name=if,proto3" json:"if,omitempty"`
	Name       string            `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Id         string            `protobuf:"bytes,4,opt,name=id,proto3" json:"id,omitempty"`
	Env        map[string]string `` /* 147-byte string literal not displayed */
	WorkingDir string            `protobuf:"bytes,6,opt,name=working_dir,json=workingDir,proto3" json:"working_dir,omitempty"`
	Uses       string            `protobuf:"bytes,7,opt,name=uses,proto3" json:"uses,omitempty"`
	With       map[string]string `` /* 149-byte string literal not displayed */
	Run        string            `protobuf:"bytes,9,opt,name=run,proto3" json:"run,omitempty"`
	// contains filtered or unexported fields
}

func (*Step) Descriptor deprecated

func (*Step) Descriptor() ([]byte, []int)

Deprecated: Use Step.ProtoReflect.Descriptor instead.

func (*Step) GetEnv

func (x *Step) GetEnv() map[string]string

func (*Step) GetId

func (x *Step) GetId() string

func (*Step) GetIf

func (x *Step) GetIf() string

func (*Step) GetName

func (x *Step) GetName() string

func (*Step) GetRun

func (x *Step) GetRun() string

func (*Step) GetShell

func (x *Step) GetShell() string

func (*Step) GetUses

func (x *Step) GetUses() string

func (*Step) GetWith

func (x *Step) GetWith() map[string]string

func (*Step) GetWorkingDir

func (x *Step) GetWorkingDir() string

func (*Step) ProtoMessage

func (*Step) ProtoMessage()

func (*Step) ProtoReflect

func (x *Step) ProtoReflect() protoreflect.Message

func (*Step) Reset

func (x *Step) Reset()

func (*Step) String

func (x *Step) String() string

type StepContext

type StepContext struct {
	Outputs    map[string]string `` /* 155-byte string literal not displayed */
	Conclusion string            `protobuf:"bytes,2,opt,name=conclusion,proto3" json:"conclusion,omitempty"`
	Outcome    string            `protobuf:"bytes,3,opt,name=outcome,proto3" json:"outcome,omitempty"`
	// contains filtered or unexported fields
}

func (*StepContext) Descriptor deprecated

func (*StepContext) Descriptor() ([]byte, []int)

Deprecated: Use StepContext.ProtoReflect.Descriptor instead.

func (*StepContext) GetConclusion

func (x *StepContext) GetConclusion() string

func (*StepContext) GetOutcome

func (x *StepContext) GetOutcome() string

func (*StepContext) GetOutputs

func (x *StepContext) GetOutputs() map[string]string

func (*StepContext) GetString

func (c *StepContext) GetString(key string) string

func (*StepContext) ProtoMessage

func (*StepContext) ProtoMessage()

func (*StepContext) ProtoReflect

func (x *StepContext) ProtoReflect() protoreflect.Message

func (*StepContext) Reset

func (x *StepContext) Reset()

func (*StepContext) String

func (x *StepContext) String() string

type Uses

type Uses struct {
	Path    string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

func Parse

func Parse(uses string) (*Uses, error)

TODO regexp.

func (*Uses) Descriptor deprecated

func (*Uses) Descriptor() ([]byte, []int)

Deprecated: Use Uses.ProtoReflect.Descriptor instead.

func (*Uses) GetActionPath

func (u *Uses) GetActionPath() string

func (*Uses) GetPath

func (x *Uses) GetPath() string

func (*Uses) GetRepository

func (u *Uses) GetRepository() string

func (*Uses) GetUses

func (u *Uses) GetUses() string

func (*Uses) GetVersion

func (x *Uses) GetVersion() string

func (*Uses) GoString

func (u *Uses) GoString() string

func (*Uses) IsLocal

func (u *Uses) IsLocal() bool

func (*Uses) IsRemote

func (u *Uses) IsRemote() bool

func (*Uses) MarshalJSON

func (u *Uses) MarshalJSON() ([]byte, error)

func (*Uses) ProtoMessage

func (*Uses) ProtoMessage()

func (*Uses) ProtoReflect

func (x *Uses) ProtoReflect() protoreflect.Message

func (*Uses) Reset

func (x *Uses) Reset()

func (*Uses) String

func (x *Uses) String() string

type WorkflowCommand

type WorkflowCommand struct {
	Command    string
	Parameters map[string]string
	Value      string
}

func ParseWorkflowCommand

func ParseWorkflowCommand(b []byte) (*WorkflowCommand, error)

func ParseWorkflowCommandString

func ParseWorkflowCommandString(workflowCommand string) (*WorkflowCommand, error)

TODO regexp.

func (*WorkflowCommand) GetName

func (c *WorkflowCommand) GetName() string

func (*WorkflowCommand) GoString

func (c *WorkflowCommand) GoString() string

func (*WorkflowCommand) String

func (c *WorkflowCommand) String() string

Jump to

Keyboard shortcuts

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