gen

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllFlavours

func AllFlavours() []string

func AllowedEcosystems

func AllowedEcosystems() []string

func AllowedSchedule

func AllowedSchedule() []string

func Execute

func Execute(ctx context.Context, files ...input.Input) error

func IsFilePath

func IsFilePath(err error) bool

IsFilePath asserts filePathError.

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

func IsValidEcoSystem

func IsValidEcoSystem(ecosystems []string) bool

func IsValidFlavour

func IsValidFlavour(s string) bool

func IsValidSchedule

func IsValidSchedule(s string) bool

Types

type Ecosystem

type Ecosystem string
const (
	EcosystemDocker        Ecosystem = "docker"
	EcosystemGithubActions Ecosystem = "github-actions"
	EcosystemGo            Ecosystem = "go"
)

func NewEcosystem

func NewEcosystem(s string) (Ecosystem, error)

func (Ecosystem) String

func (e Ecosystem) String() string

type Flavour

type Flavour string
const (
	FlavourApp      Flavour = "app"
	FlavourCLI      Flavour = "cli"
	FlavourLibrary  Flavour = "library"
	FlavourOperator Flavour = "operator"
)

func NewFlavour

func NewFlavour(s string) (Flavour, error)

func (Flavour) String

func (f Flavour) String() string

type Schedule

type Schedule string
const (
	Daily   Schedule = "daily"
	Weekly  Schedule = "weekly"
	Monthly Schedule = "monthly"
)

func NewSchedule

func NewSchedule(s string) (Schedule, error)

func (Schedule) String

func (s Schedule) String() string

Jump to

Keyboard shortcuts

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