peribolos

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddTeamMaintainers

func AddTeamMaintainers(config *peribolos.FullConfig, org, team string, maintainers []string) error

AddTeamMaintainers updates the maintainers of the specified Team in the specified Organization, adding the maintainers list specified as agument.

func AddTeamMembers

func AddTeamMembers(config *peribolos.FullConfig, org, team string, members []string) error

AddTeamMembers updates the members of the specified Team in the specified Organization, adding the members list specified as argument.

func LoadConfigFromFilesystem

func LoadConfigFromFilesystem(fs billy.Filesystem, configPath string) (*peribolos.FullConfig, error)

LoadConfigFromFilesystem loads the peribolos config from the filesystem. It possibly returns an error.

func NewConfig

func NewConfig() *peribolos.FullConfig

NewConfig returns a new orgs.FullConfig structure.

Types

type Options

type Options struct {
	ConfigRepo    string
	ConfigPath    string
	ConfigBaseRef string
}

func NewOptions

func NewOptions() *Options

func (*Options) AddPFlags

func (o *Options) AddPFlags(pfs *pflag.FlagSet)

AddPFlags adds peribolos options' flags to a flag set.

func (*Options) Validate

func (o *Options) Validate() error

Validate validates peribolos options. It possibly returns an error.

Jump to

Keyboard shortcuts

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