config

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrConfigNotFound = fmt.Errorf("config not found")
)
View Source
var (
	ErrTooPermissive = errors.New("permissions too permissive")
)

Functions

func GetConfigFile

func GetConfigFile() (string, error)

func WithConfig

func WithConfig(ctx context.Context, file string) context.Context

Types

type File

type File struct {
	Github Github `yaml:"github"`
}

func ConfigFromContext

func ConfigFromContext(ctx context.Context) (*File, error)

func ParseFromFile

func ParseFromFile() (*File, error)

func (*File) WriteToFile

func (c *File) WriteToFile() error

type Github

type Github struct {
	Token string `yaml:"token"`
}

Jump to

Keyboard shortcuts

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