build

package
v0.29.3 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2024 License: Apache-2.0 Imports: 4 Imported by: 4

Documentation

Index

Constants

View Source
const License = "Apache-2.0"

License is the official Open Source Initiative license abbreviation

Variables

View Source
var AgentProviders = []string{}

AgentProviders are registered systems capable of extending choria with new agents

View Source
var BuildDate = "unknown"

BuildDate is when it was build

View Source
var ClientIdentitySuffix = "mcollective"

ClientIdentitySuffix is the string to be suffixed when creating client identities

View Source
var DataProviders = []string{}

DataProviders are registered Data plugins

View Source
var DefaultCollectives = "mcollective"

DefaultCollectives is the names of the default list of collectives as comma separated strings

View Source
var MachineWatchers = []string{}

MachineWatchers are registered Autonomous Agent watchers

View Source
var Machines = []string{}

Machines are registered Autonomous Agents

View Source
var ProvisionAgent = "true"

ProvisionAgent determines if the supplied provisioning agent should be started this lets you programmatically or via the additional agents system supply your own agent to perform the provisioning duties

View Source
var ProvisionAllowServerUpdate = "false"

ProvisionAllowServerUpdate allows over the air updates of the choria version from provisioner

View Source
var ProvisionBrokerSRVDomain = ""

ProvisionBrokerSRVDomain defines a domain to query for provisioning brokers

View Source
var ProvisionBrokerURLs = ""

ProvisionBrokerURLs defines where the daemon will connect when choria.server.provision is true

View Source
var ProvisionFacts = ""

ProvisionFacts is a facts file to use for discovery purposes during provisioning mode

View Source
var ProvisionJWTFile = ""

ProvisionJWTFile is a file holding a JWT identifying the node to the provisioner

View Source
var ProvisionModeDefault = "false"

ProvisionModeDefault defines the value of plugin.choria.server.provision when it's not set in the configuration file at all.

View Source
var ProvisionRegistrationData = ""

ProvisionRegistrationData is a file that will be published by the registration system

View Source
var ProvisionSecure = "true"

ProvisionSecure when "false" will disable TLS provisioning mode

View Source
var ProvisionStatusFile = ""

ProvisionStatusFile is the file where server status will be written to while in provisioning mode

View Source
var ProvisionToken = ""

ProvisionToken when not empty this token will be required interact with the provisioner agent

View Source
var ProvisioningBrokerPassword = ""

ProvisioningBrokerPassword is the password used to connect to the middleware with

View Source
var ProvisioningBrokerUsername = ""

ProvisioningBrokerUsername is the username used to connect to the middleware with

View Source
var ProvisioningUsesProtocolV2 = "false"

ProvisioningUsesProtocolV2 indicates if provisioning should use v2 protocol

View Source
var SHA = "unknown"

SHA is the git reference used to build this package

View Source
var TLS = "true"

TLS controls the NATS protocol level TLS

View Source
var Version = "0.29.3"

Version the application version

Functions

func HasTLS

func HasTLS() bool

HasTLS determines if TLS should be used on the wire

func MaxBrokerClients

func MaxBrokerClients() int

MaxBrokerClients is the maximum number of clients the network broker may handle

func ProvisionDefault

func ProvisionDefault() bool

ProvisionDefault defines the value of plugin.choria.server.provision when it's not set in the configuration file at all.

func ProvisionSecurity

func ProvisionSecurity() bool

ProvisionSecurity determines if TLS should be enabled during provisioning

Types

type Info

type Info struct{}

func (*Info) AgentProviders

func (i *Info) AgentProviders() []string

func (*Info) BuildDate

func (i *Info) BuildDate() string

func (*Info) ClientIdentitySuffix added in v0.23.0

func (i *Info) ClientIdentitySuffix() string

func (*Info) DataProviders added in v0.20.0

func (i *Info) DataProviders() []string

func (*Info) DefaultCollectives added in v0.23.0

func (i *Info) DefaultCollectives() []string

func (*Info) DisableProvisionModeAsDefault added in v0.14.0

func (i *Info) DisableProvisionModeAsDefault()

func (*Info) DisableProvisionModeSecurity added in v0.14.0

func (i *Info) DisableProvisionModeSecurity()

func (*Info) EnableProvisionModeAsDefault added in v0.14.0

func (i *Info) EnableProvisionModeAsDefault()

func (*Info) EnableProvisionModeSecurity added in v0.14.0

func (i *Info) EnableProvisionModeSecurity()

func (*Info) HasTLS

func (i *Info) HasTLS() bool

func (*Info) License

func (i *Info) License() string

func (*Info) MachineWatchers added in v0.19.0

func (i *Info) MachineWatchers() []string

func (*Info) Machines added in v0.24.0

func (i *Info) Machines() []string

func (*Info) MaxBrokerClients

func (i *Info) MaxBrokerClients() int

func (*Info) ProvisionAgent

func (i *Info) ProvisionAgent() bool

func (*Info) ProvisionAllowServerUpdate added in v0.27.0

func (i *Info) ProvisionAllowServerUpdate() bool

func (*Info) ProvisionBrokerSRVDomain added in v0.13.0

func (i *Info) ProvisionBrokerSRVDomain() string

func (*Info) ProvisionBrokerURLs

func (i *Info) ProvisionBrokerURLs() string

func (*Info) ProvisionDefault

func (i *Info) ProvisionDefault() bool

func (*Info) ProvisionFacts

func (i *Info) ProvisionFacts() string

func (*Info) ProvisionJWTFile added in v0.13.0

func (i *Info) ProvisionJWTFile() string

func (*Info) ProvisionRegistrationData

func (i *Info) ProvisionRegistrationData() string

func (*Info) ProvisionSecurity

func (i *Info) ProvisionSecurity() bool

func (*Info) ProvisionStatusFile

func (i *Info) ProvisionStatusFile() string

func (*Info) ProvisionToken

func (i *Info) ProvisionToken() string

func (*Info) ProvisionUsingVersion2 added in v0.27.0

func (i *Info) ProvisionUsingVersion2() bool

func (*Info) ProvisioningBrokerPassword added in v0.15.0

func (i *Info) ProvisioningBrokerPassword() string

func (*Info) ProvisioningBrokerUsername added in v0.15.0

func (i *Info) ProvisioningBrokerUsername() string

func (*Info) RegisterAgentProvider added in v0.14.0

func (i *Info) RegisterAgentProvider(p string)

func (*Info) RegisterDataProvider added in v0.20.0

func (i *Info) RegisterDataProvider(p string)

func (*Info) RegisterMachine added in v0.24.0

func (i *Info) RegisterMachine(p string)

func (*Info) RegisterMachineWatcher added in v0.19.0

func (i *Info) RegisterMachineWatcher(p string)

func (*Info) SHA

func (i *Info) SHA() string

func (*Info) SetProvisionAllowServerUpdate added in v0.27.0

func (i *Info) SetProvisionAllowServerUpdate(allow bool)

func (*Info) SetProvisionBrokerSRVDomain added in v0.14.0

func (i *Info) SetProvisionBrokerSRVDomain(d string)

func (*Info) SetProvisionBrokerURLs added in v0.14.0

func (i *Info) SetProvisionBrokerURLs(u string)

func (*Info) SetProvisionFacts added in v0.14.0

func (i *Info) SetProvisionFacts(f string)

func (*Info) SetProvisionJWTFile added in v0.16.0

func (i *Info) SetProvisionJWTFile(t string)

func (*Info) SetProvisionRegistrationData added in v0.14.0

func (i *Info) SetProvisionRegistrationData(f string)

func (*Info) SetProvisionToken added in v0.14.0

func (i *Info) SetProvisionToken(t string)

func (*Info) SetProvisionUsingVersion2 added in v0.27.0

func (i *Info) SetProvisionUsingVersion2(v2 bool)

func (*Info) SetProvisioningBrokerPassword added in v0.15.0

func (i *Info) SetProvisioningBrokerPassword(p string)

func (*Info) SetProvisioningBrokerUsername added in v0.15.0

func (i *Info) SetProvisioningBrokerUsername(u string)

func (*Info) SupportsProvisioning added in v0.23.0

func (i *Info) SupportsProvisioning() bool

SupportsProvisioning determines if the build supports provisioning, typically that comes down to if a Provisioning Token is set either at build time or through the JWT

func (*Info) Version

func (i *Info) Version() string

Jump to

Keyboard shortcuts

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