config

package
v0.0.0-...-8ea4bb1 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

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
	WireGuardConfigPath      string
	EnrollProjectID          string
	EnrollTopicName          string
	LocalAPIServer           bool
}

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()

Jump to

Keyboard shortcuts

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