Documentation
¶
Index ¶
- Constants
- type Context
- type ContextEnvironment
- func BuildEnvironment(context *github.Context, runner *github.RunnerContext, ...) ContextEnvironment
- func CreateGithubCIEnvironment(githubContext []byte, runnerContext, envsContext *string) (ContextEnvironment, error)
- func ResolveBuildContext(context, runner, env *string) (ContextEnvironment, error)
- type ContextType
- type Event
- type Github
- type GithubCIEnvironment
- func (in *GithubCIEnvironment) BuildInvocationId() string
- func (in *GithubCIEnvironment) BuildType() string
- func (in *GithubCIEnvironment) BuilderId() string
- func (in *GithubCIEnvironment) Context() string
- func (in *GithubCIEnvironment) CurrentFilteredEnvironment() map[string]string
- func (in *GithubCIEnvironment) NonReproducibleMetadata() *Metadata
- func (in *GithubCIEnvironment) RepoUri() string
- func (in *GithubCIEnvironment) Sha() string
- func (in *GithubCIEnvironment) UserDefinedParameters() *Event
- type Metadata
- type Runner
Constants ¶
View Source
const (
GithubActionsBuildIdVersion = "v1"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContextEnvironment ¶
type ContextEnvironment interface { BuilderId() string BuildInvocationId() string BuildType() string Context() string CurrentFilteredEnvironment() map[string]string NonReproducibleMetadata() *Metadata UserDefinedParameters() *Event RepoUri() string Sha() string }
func BuildEnvironment ¶
func BuildEnvironment(context *github.Context, runner *github.RunnerContext, current *github.CurrentBuildEnvironment) ContextEnvironment
func CreateGithubCIEnvironment ¶
func CreateGithubCIEnvironment(githubContext []byte, runnerContext, envsContext *string) (ContextEnvironment, error)
func ResolveBuildContext ¶
func ResolveBuildContext(context, runner, env *string) (ContextEnvironment, error)
type ContextType ¶
type ContextType string
const (
ContextTypeGithub ContextType = "GITHUB_ACTIONS"
)
func (ContextType) Hosted ¶
func (in ContextType) Hosted() bool
func (ContextType) String ¶
func (in ContextType) String() string
type Event ¶
type Event struct {
Inputs json.RawMessage `json:"inputs"`
}
type GithubCIEnvironment ¶
type GithubCIEnvironment struct { BuildContext *github.Context Event *Event RunnerContext *github.RunnerContext BuildEnvironment *github.CurrentBuildEnvironment Actions *github.Actions }
func (*GithubCIEnvironment) BuildInvocationId ¶
func (in *GithubCIEnvironment) BuildInvocationId() string
func (*GithubCIEnvironment) BuildType ¶
func (in *GithubCIEnvironment) BuildType() string
func (*GithubCIEnvironment) BuilderId ¶
func (in *GithubCIEnvironment) BuilderId() string
func (*GithubCIEnvironment) Context ¶
func (in *GithubCIEnvironment) Context() string
func (*GithubCIEnvironment) CurrentFilteredEnvironment ¶
func (in *GithubCIEnvironment) CurrentFilteredEnvironment() map[string]string
func (*GithubCIEnvironment) NonReproducibleMetadata ¶
func (in *GithubCIEnvironment) NonReproducibleMetadata() *Metadata
func (*GithubCIEnvironment) RepoUri ¶
func (in *GithubCIEnvironment) RepoUri() string
func (*GithubCIEnvironment) Sha ¶
func (in *GithubCIEnvironment) Sha() string
func (*GithubCIEnvironment) UserDefinedParameters ¶
func (in *GithubCIEnvironment) UserDefinedParameters() *Event
Source Files
¶
Click to show internal directories.
Click to hide internal directories.