config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

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

func New

func New() *Config

func NewTestConfigWithYaml

func NewTestConfigWithYaml(data []byte) (*Config, error)

func (*Config) Distribution

func (c *Config) Distribution(name string) *Distribution

Distribution returns a specific Distribution by name

func (*Config) DistributionsFromClaims

func (c *Config) DistributionsFromClaims(claims []string) map[string]bool

DistributionsFromClaims returns a lookup map of Distribution names

func (*Config) Watch

func (c *Config) Watch(filePath string) error

type Distribution

type Distribution struct {
	ID     string `json:"id"`
	Prefix string `json:"prefix"`
}

Jump to

Keyboard shortcuts

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