octo

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2020 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CraneVersion  = "0.1.4"
	GoVersion     = "1.15"
	PackVersion   = "0.14.2"
	RichGoVersion = "0.3.3"
	YJVersion     = "5.0.0"
)

Variables

View Source
var RemovedFiles []string

Functions

func NewDockerCredentialActions added in v1.2.0

func NewDockerCredentialActions(credentials []DockerCredentials) []actions.Step

func NewHttpCredentialActions added in v1.2.0

func NewHttpCredentialActions(credentials []HTTPCredentials) []actions.Step

Types

type Action

type Action struct {
	Source string
	Target string
}

type Builder

type Builder struct {
	Repository string
}

type CodeOwner

type CodeOwner struct {
	Path  string
	Owner string
}

type Contribution

type Contribution struct {
	Path        string
	Permissions os.FileMode
	Structure   gotree.Tree
	Content     []byte
}

func ContributeActions

func ContributeActions(descriptor Descriptor) ([]Contribution, error)

func ContributeBuilderDependencies

func ContributeBuilderDependencies(descriptor Descriptor) ([]Contribution, error)

func ContributeBuildpackDependencies

func ContributeBuildpackDependencies(descriptor Descriptor) ([]Contribution, error)

func ContributeCodeOwners

func ContributeCodeOwners(descriptor Descriptor) Contribution

func ContributeCreateBuilder

func ContributeCreateBuilder(descriptor Descriptor) (*Contribution, error)

func ContributeCreatePackage

func ContributeCreatePackage(descriptor Descriptor) (*Contribution, error)

func ContributeDependabot

func ContributeDependabot(descriptor Descriptor) (Contribution, error)

func ContributeDraftRelease

func ContributeDraftRelease(descriptor Descriptor) ([]Contribution, error)

func ContributeLabels

func ContributeLabels(descriptor Descriptor) ([]Contribution, error)

func ContributeOfflinePackages

func ContributeOfflinePackages(descriptor Descriptor) ([]Contribution, error)

func ContributePackageDependencies

func ContributePackageDependencies(descriptor Descriptor) ([]Contribution, error)

func ContributeTest

func ContributeTest(descriptor Descriptor) (*Contribution, error)

func ContributeUpdatePipeline added in v1.4.0

func ContributeUpdatePipeline(descriptor Descriptor) (Contribution, error)

func NewActionContribution

func NewActionContribution(workflow actions.Workflow) (Contribution, error)

func NewDependabotContribution

func NewDependabotContribution(dependabot dependabot.Dependabot) (Contribution, error)

func NewDrafterContribution

func NewDrafterContribution(drafter release.Drafter) (Contribution, error)

func NewLabelsContribution

func NewLabelsContribution(labels []labels.Label) (Contribution, error)

type Dependency

type Dependency struct {
	Name           string
	Id             string
	VersionPattern string `yaml:"version_pattern"`
	Uses           string
	With           map[string]interface{}
}

type Descriptor

type Descriptor struct {
	GitHubToken       string `yaml:"github_token"`
	Path              string
	CodeOwners        []CodeOwner
	Builder           *Builder
	Package           *Package
	DockerCredentials []DockerCredentials `yaml:"docker_credentials"`
	HttpCredentials   []HTTPCredentials   `yaml:"http_credentials"`
	OfflinePackages   []OfflinePackage    `yaml:"offline_packages"`
	Actions           []Action
	Dependencies      []Dependency
	Test              Test
}

func NewDescriptor

func NewDescriptor(path string) (Descriptor, error)

type DockerCredentials added in v1.2.0

type DockerCredentials struct {
	Registry string
	Username string
	Password string
}

type HTTPCredentials added in v1.2.0

type HTTPCredentials struct {
	Host     string
	Username string
	Password string
}

type Octo

type Octo struct {
	DescriptorPath string
}

func (Octo) Contribute

func (o Octo) Contribute() error

func (Octo) Remove added in v1.4.0

func (Octo) Remove(descriptor Descriptor, removals []string) error

func (Octo) Write

func (Octo) Write(descriptor Descriptor, contributions []Contribution) error

type OfflinePackage

type OfflinePackage struct {
	Source string
	Target string
}

type Package

type Package struct {
	Repository          string
	IncludeDependencies bool `yaml:"include_dependencies"`
	Register            bool
	RegistryToken       string `yaml:"registry_token"`
}

type RawBuilder

type RawBuilder struct {
	Buildpacks []RawBuildpack
	Stack      RawStack
}

type RawBuildpack

type RawBuildpack struct {
	Image string
}

type RawStack

type RawStack struct {
	BuildImage string `toml:"build-image"`
}

type Test added in v1.5.0

type Test struct {
	Steps []actions.Step
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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