config

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2025 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
	DeviceHelperAddress     string
	GoogleAuthServerAddress string
	GrpcAddress             string
	Interface               string // TODO(sechmann): remove, let helper decide
	LogFilePath             string
	LogLevel                string
	AzureOAuth2Config       oauth2.Config
	GoogleOAuth2Config      oauth2.Config
	JitaOAuth2Config        oauth2.Config
	Platform                string
	PrivateKeyPath          string
	WireGuardConfigPath     string // TODO(sechmann):remove this as well
	EnrollProjectID         string
	EnrollTopicName         string
	LocalAPIServer          bool
	CustomEnrollURL         string
	NoHelper                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