config

package
v0.4.16-alpha Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: ISC Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigAPI

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

func NewConfigAPI

func NewConfigAPI(filePath string) *ConfigAPI

func (*ConfigAPI) GetGlobalParameter

func (c *ConfigAPI) GetGlobalParameter(key string) (string, error)

func (*ConfigAPI) GetRepositoryParameter

func (c *ConfigAPI) GetRepositoryParameter(repo string, key string) (string, error)

func (*ConfigAPI) ListGlobalParameters

func (c *ConfigAPI) ListGlobalParameters() error

func (*ConfigAPI) SetGlobalParameter

func (c *ConfigAPI) SetGlobalParameter(key string, value string) error

func (*ConfigAPI) SetRepositoryParameter

func (c *ConfigAPI) SetRepositoryParameter(repo string, key string, value string) error

type Configuration

type Configuration struct {
	Global       map[string]string            `yaml:"global"`
	Repositories map[string]map[string]string `yaml:"repositories"`
}

Jump to

Keyboard shortcuts

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