golang

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 10, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(options map[string]interface{}) (map[string]interface{}, error)

Create sets up GitHub Actions workflow(s).

func Delete

func Delete(options map[string]interface{}) (bool, error)

Delete remove GitHub Actions workflows.

func Read

func Read(options map[string]interface{}) (map[string]interface{}, error)

func Update

func Update(options map[string]interface{}) (map[string]interface{}, error)

Update remove and set up GitHub Actions workflows.

Types

type Build

type Build struct {
	Enable  bool
	Command string
}

Build is the struct for githubacions job.

func (*Build) Validate

func (b *Build) Validate() []error

type Coverage

type Coverage struct {
	Enable  bool
	Profile string
	Output  string
}

Coverage is the struct for githubacions job.

type Docker

type Docker struct {
	Enable   bool
	Registry Registry
}

Docker is the struct for githubacions job.

func (*Docker) Validate

func (d *Docker) Validate() []error

type Image

type Image struct {
}

Image is the struct for githubacions job.

type Options

type Options struct {
	Owner    string
	Org      string
	Repo     string
	Branch   string
	Language *ga.Language
	Build    *Build
	Test     *Test
	Docker   *Docker
}

Options is the struct for configurations of the githubactions plugin.

type Registry added in v0.5.0

type Registry struct {
	// only support dockerhub now
	Type       RegistryType
	Username   string
	Repository string
}

type RegistryType added in v0.5.0

type RegistryType string
const (
	RegistryDockerhub RegistryType = "dockerhub"
	RegistryHarbor    RegistryType = "harbor"
)

type Tag

type Tag struct {
}

Tag is the struct for githubacions job.

type Test

type Test struct {
	Enable   bool
	Command  string
	Coverage Coverage
}

Test is the struct for githubacions job.

func (*Test) Validate

func (t *Test) Validate() []error

Jump to

Keyboard shortcuts

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