config

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2022 License: AGPL-3.0 Imports: 11 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 {
	api.UnimplementedConfigServiceServer
	creds.CredsIf
	Port int
}

Config represents the configuration for the config server

func NewConfig

func NewConfig(port int, creds creds.CredsIf) *Config

NewConfig returns a new Config object

func (*Config) DeleteNetwork added in v0.4.0

func (s *Config) DeleteNetwork(ctx context.Context, req *api.DeleteNetworkRequest) (*api.DeleteNetworkResponse, error)

DeleteAccount rpc deletes the account from the credentials.

func (*Config) DesiredState

func (s *Config) DesiredState(ctx context.Context, req *api.DesiredStateRequest) (*api.DesiredStateResponse, error)

DesiredState rpc constructs the desired state of the credentials

func (*Config) ServerInformation added in v0.7.0

func (*Config) StartConfigServer

func (c *Config) StartConfigServer() error

StartConfigServer starts the config grpc server

Jump to

Keyboard shortcuts

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