config

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiResource

type ApiResource struct {
	Verbs        []string `yaml:"Verbs"`
	Namespaced   bool     `yaml:"Namespaced"`
	ShortNames   []string `yaml:"ShortNames"`
	Kind         string   `yaml:"Kind"`
	SingularName string   `yaml:"SingularName"`
	Name         string   `yaml:"Name"`
	Version      string   `yaml:"Version"`
}

ApiResource is the struct that holds the api resource config

type Config

type Config struct {
	ApiResource []ApiResource `yaml:"ApiResource"`
	GrpcServer  GrpcServer    `yaml:"GrpcServer"`
	EtcdServer  EtcdServer    `yaml:"EtcdServer"`
}

Config is the struct that holds the config file

func LoadConfig

func LoadConfig(configFile string) (Config, error)

LoadConfig loads the config file and returns a Config struct

type EtcdServer

type EtcdServer struct {
	Host []string `yaml:"Host"`
}

EtcdServer is the struct that holds the etcd server config

type GrpcServer

type GrpcServer struct {
	Host string `yaml:"Host"`
}

GrpcServer is the struct that holds the grpc server config

Jump to

Keyboard shortcuts

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