config

package
v0.0.0-...-775fcd2 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CA

type CA struct {
	PrivateKey string `hcl:"private_key"`
}

type ServerConfig

type ServerConfig struct {
	CA    CA     `hcl:"ca,block"`
	Users []User `hcl:"user,block"`
}

func Load

func Load(configPath string) *ServerConfig

type User

type User struct {
	ID              string   `hcl:"id,label"`
	Principals      []string `hcl:"principals,optional"`
	EndorsementKeys []string `hcl:"endorsement_keys"`
}

Jump to

Keyboard shortcuts

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