github

package
v0.0.1-alpha Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Actions

type Actions struct {
	HostedIdSuffix     string
	SelfHostedIdSuffix string
	BuildType          string
}

func BuildId

func BuildId(version string) *Actions

BuildId The GitHub Actions team has not yet reviewed or approved this design, and it is not yet implemented. Details are subject to change!

type Context

type Context struct {
	Action          string          `json:"action"`
	Actor           string          `json:"actor"`
	Event           json.RawMessage `json:"event"`
	EventName       string          `json:"event_name"`
	EventPath       string          `json:"event_path"`
	Job             string          `json:"job"`
	Ref             string          `json:"ref"`
	Repository      string          `json:"repository"`
	RepositoryOwner string          `json:"repository_owner"`
	RunId           string          `json:"run_id"`
	RunNumber       string          `json:"run_number"`
	ServerUrl       string          `json:"server_url"`
	SHA             string          `json:"sha"`
	Token           string          `json:"token,omitempty"`
	Workflow        string          `json:"workflow"`
	Workspace       string          `json:"workspace"`
}

func ParseContext

func ParseContext(github []byte) (*Context, error)

type CurrentBuildEnvironment

type CurrentBuildEnvironment struct {
	Envs map[string]string
}

func ParseBuild

func ParseBuild(envs *string) (*CurrentBuildEnvironment, error)

func (*CurrentBuildEnvironment) FilterEnvs

func (in *CurrentBuildEnvironment) FilterEnvs() map[string]string

func (*CurrentBuildEnvironment) GetEnvs

func (in *CurrentBuildEnvironment) GetEnvs() map[string]string

type RunnerContext

type RunnerContext struct {
	Name      string `json:"name"`
	Arch      string `json:"arch"`
	OS        string `json:"os"`
	Temp      string `json:"temp"`
	ToolCache string `json:"tool_cache"`
}

func ParseRunner

func ParseRunner(runner *string) (*RunnerContext, error)

Jump to

Keyboard shortcuts

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