actions

package
v0.21.1 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FuncOfString

func FuncOfString(ref string) func() string

FuncOfString wraps given string in a function

Types

type AddLink struct {
	*AddLinkParams
	// contains filtered or unexported fields
}

AddLink action

func NewAddLink(params *AddLinkParams) *AddLink

NewAddLink ..

func (*AddLink) Do

func (action *AddLink) Do() *workflow.ActionError

Do implements Action for AddLink

func (*AddLink) Undo

func (action *AddLink) Undo() error

Undo implements Action for AddLink

type AddLinkParams

type AddLinkParams struct {
	Client          *gitlab.Client
	Project         string
	LinkDescription string
	LinkURLFunc     func() string
	// MDLinkFunc returns markdown link of form '[link text](https://foo.bar....)'
	MDLinkFunc           func() string
	TagFunc              func() *gitlab.Tag
	ReleasesAPIAvailable bool
}

AddLinkParams ..

type Check added in v0.14.0

type Check struct {
	Version  string
	Revision string
	// contains filtered or unexported fields
}

Check action tests api connection

func NewCheck added in v0.14.0

func NewCheck(client *gitlab.Client) *Check

NewCheck creates a Check action

func (*Check) Do added in v0.14.0

func (action *Check) Do() *workflow.ActionError

Do implements Action for Check

func (*Check) Undo added in v0.14.0

func (action *Check) Undo() error

Undo implements Action for Check

type Commit

type Commit struct {
	// contains filtered or unexported fields
}

Commit ..

func NewCommit

func NewCommit(client *gitlab.Client, project string, files []string, message string, branch string) *Commit

NewCommit ..

func (*Commit) Do

func (action *Commit) Do() *workflow.ActionError

Do implements Action for Commit

func (*Commit) RefFunc

func (action *Commit) RefFunc() func() string

RefFunc returns accessor func to commit sha

func (*Commit) Undo

func (action *Commit) Undo() error

Undo implements Action for Commit

type CreatePipeline

type CreatePipeline struct {
	// contains filtered or unexported fields
}

CreatePipeline ..

func NewCreatePipeline

func NewCreatePipeline(client *gitlab.Client, project string, refFunc func() string) *CreatePipeline

NewCreatePipeline ..

func (*CreatePipeline) Do

func (action *CreatePipeline) Do() *workflow.ActionError

Do implements Action for CreatePipeline

func (*CreatePipeline) Undo

func (action *CreatePipeline) Undo() error

Undo implements Action for CreatePipeline

type CreateTag

type CreateTag struct {
	// contains filtered or unexported fields
}

CreateTag ..

func NewCreateTag

func NewCreateTag(client *gitlab.Client, project string, refFunc func() string, tagID string, note string, releasesAPIAvailable bool) *CreateTag

NewCreateTag ..

func (*CreateTag) Do

func (action *CreateTag) Do() *workflow.ActionError

Do implements Action for CreateTag

func (*CreateTag) TagFunc

func (action *CreateTag) TagFunc() func() *gitlab.Tag

TagFunc returns accessor func for the tag

func (*CreateTag) Undo

func (action *CreateTag) Undo() error

Undo implements Action for CreateTag

type GetTag

type GetTag struct {
	// contains filtered or unexported fields
}

GetTag ..

func NewGetTag

func NewGetTag(client *gitlab.Client, project string, tagID string) *GetTag

NewGetTag creates a get tag action

func (*GetTag) Do

func (action *GetTag) Do() *workflow.ActionError

Do implements Action for GetTag

func (*GetTag) TagFunc

func (action *GetTag) TagFunc() func() *gitlab.Tag

TagFunc returns accessor func for the tag

func (*GetTag) Undo

func (action *GetTag) Undo() error

Undo implements Action for GetTag

type Upload

type Upload struct {
	// contains filtered or unexported fields
}

Upload ..

func NewUpload

func NewUpload(client *gitlab.Client, project string, projectURL *url.URL, file string) *Upload

NewUpload ..

func (*Upload) Do

func (action *Upload) Do() *workflow.ActionError

Do implements Action for Upload

func (*Upload) LinkURLFunc added in v0.20.0

func (action *Upload) LinkURLFunc() func() string

LinkURLFunc returns an accessor function to project file url

func (*Upload) MDLinkFunc

func (action *Upload) MDLinkFunc() func() string

MDLinkFunc returns an accessor function to project file markdown link

func (*Upload) Undo

func (action *Upload) Undo() error

Undo implements Action for Upload

Jump to

Keyboard shortcuts

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