config

package
v0.0.0-...-86e854f Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BinaryDir = "/usr/bin/"
)
View Source
const File = "agent-config.json"
View Source
const Platform = "linux"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	AgentConfiguration       *pb.AgentConfiguration
	ConfigDir                string
	DeviceAgentHelperAddress string
	GoogleAuthServerAddress  string
	GrpcAddress              string
	Interface                string
	LogFilePath              string
	LogLevel                 string
	AzureOAuth2Config        oauth2.Config
	GoogleOAuth2Config       oauth2.Config
	Platform                 string
	PrivateKeyPath           string
	WireGuardBinary          string
	WireGuardConfigPath      string
	WireGuardGoBinary        string
	EnrollProjectID          string
	EnrollTopicName          string
}

func DefaultConfig

func DefaultConfig() (*Config, error)

func (*Config) OAuth2Config

func (c *Config) OAuth2Config(provider pb.AuthProvider) oauth2.Config

func (*Config) PersistAgentConfiguration

func (c *Config) PersistAgentConfiguration(log *logrus.Entry)

func (*Config) PopulateAgentConfiguration

func (c *Config) PopulateAgentConfiguration(log *logrus.Entry)

func (*Config) SetDefaults

func (c *Config) SetDefaults()

func (*Config) SetPlatformDefaults

func (c *Config) SetPlatformDefaults()

Jump to

Keyboard shortcuts

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