actions

package
v0.0.0-...-1992862 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action interface {
	GetActionData() ActionData
}

Action defines interface to get data from actions

type ActionData

type ActionData struct {
	Workspace   string
	Actor       string
	Repo        string
	RepoOwner   string
	Inputs      Inputs
	ReleaseInfo *github.RepositoryRelease
	Derived     Derived
}

ActionData is action data

type Derived

type Derived struct {
	UpstreamCloneURL string
	LocalCloneURL    string
}

Derived is derived data

type Inputs

type Inputs struct {
	PluginName                string
	Token                     string
	TokenUserHandle           string
	TokenUserEmail            string
	TokenUserName             string
	UpstreamKrewIndexRepoName string
	UpstreamKrewIndexOwner    string
}

Inputs is action inputs

type LocalAction

type LocalAction struct{}

LocalAction for local action

func (LocalAction) GetActionData

func (l LocalAction) GetActionData() (ActionData, error)

GetActionData returns data to run on local laptop

type RealAction

type RealAction struct{}

RealAction is the real action

func (RealAction) GetActionData

func (r RealAction) GetActionData() (ActionData, error)

GetActionData returns action data

Jump to

Keyboard shortcuts

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