paths

package
v0.8.4 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultConfigRoot = ".config/aserto/aserto-one"
	DefaultCacheRoot  = ".cache/aserto/aserto-one"
)

Variables

This section is empty.

Functions

func CertDir

func CertDir(confRoot string) string

func ConfigDir

func ConfigDir(confRoot string) string

func DefaultRoots

func DefaultRoots() (confRoot, cacheRoot string, err error)

func EdsDir

func EdsDir(cacheRoot string) string

Types

type CertPaths

type CertPaths struct {
	Name string
	Cert string
	CA   string
	Key  string
	Dir  string
}

func GRPCCerts

func GRPCCerts(certDir string) *CertPaths

func GatewayCerts

func GatewayCerts(certsDir string) *CertPaths

func NewCertPaths

func NewCertPaths(dir, prefix string) *CertPaths

func (*CertPaths) FindExisting

func (c *CertPaths) FindExisting() []string

type Certs

type Certs struct {
	Root    string
	GRPC    *CertPaths
	Gateway *CertPaths
}

type Paths

type Paths struct {
	Config string
	EDS    string

	Certs Certs
}

func Create

func Create() (*Paths, error)

func CreateIn

func CreateIn(confRoot, cacheRoot string) (*Paths, error)

func New

func New() (*Paths, error)

func NewIn

func NewIn(confRoot, cacheRoot string) *Paths

func (*Paths) LocalConfig

func (p *Paths) LocalConfig() string

func (*Paths) LocalEDS added in v0.8.4

func (p *Paths) LocalEDS() string

Jump to

Keyboard shortcuts

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