gen

package
v6.20.0 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllFlavours

func AllFlavours() []string

func AllLanguages

func AllLanguages() []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 IsValidLanguage

func IsValidLanguage(s string) bool

func IsValidSchedule

func IsValidSchedule(s string) bool

Types

type Ecosystem

type Ecosystem string
const (
	EcosystemDocker        Ecosystem = "docker"
	EcosystemGithubActions Ecosystem = "github-actions"
	EcosystemGomod         Ecosystem = "gomod"
	EcosystemNPM           Ecosystem = "npm"
	EcosystemPIP           Ecosystem = "pip"
)

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"
	FlavourCustomer      Flavour = "customer"
	FlavourGeneric       Flavour = "generic"
	FlavourKubernetesAPI Flavour = "k8sapi"
	FlavourClusterApp    Flavour = "cluster-app"
)

func NewFlavour

func NewFlavour(s string) (Flavour, error)

func (Flavour) String

func (f Flavour) String() string

type FlavourSlice

type FlavourSlice []Flavour

func (FlavourSlice) Contains

func (s FlavourSlice) Contains(f Flavour) bool

type FlavourSliceFlagValue

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

func NewFlavourSliceFlagValue

func NewFlavourSliceFlagValue(p *FlavourSlice, value FlavourSlice) *FlavourSliceFlagValue

func (*FlavourSliceFlagValue) Append

func (s *FlavourSliceFlagValue) Append(val string) error

func (*FlavourSliceFlagValue) GetSlice

func (s *FlavourSliceFlagValue) GetSlice() []string

func (*FlavourSliceFlagValue) Replace

func (s *FlavourSliceFlagValue) Replace(val []string) error

func (*FlavourSliceFlagValue) Set

func (s *FlavourSliceFlagValue) Set(val string) error

func (*FlavourSliceFlagValue) String

func (s *FlavourSliceFlagValue) String() string

func (*FlavourSliceFlagValue) Type

func (s *FlavourSliceFlagValue) Type() string

type Language

type Language string
const (
	LanguageGo      Language = "go"
	LanguagePython  Language = "python"
	LanguageGeneric Language = "generic"
)

func NewLanguage

func NewLanguage(s string) (Language, error)

func (Language) String

func (f Language) String() string

type LanguageFlagValue

type LanguageFlagValue Language

func NewLanguageFlagValue

func NewLanguageFlagValue(p *Language, value Language) *LanguageFlagValue

func (*LanguageFlagValue) Set

func (v *LanguageFlagValue) Set(s string) error

func (*LanguageFlagValue) String

func (v *LanguageFlagValue) String() string

func (*LanguageFlagValue) Type

func (v *LanguageFlagValue) Type() 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