Documentation
¶
Index ¶
- Constants
- func DecodePEMCert(p []byte) *x509.Certificate
- func GetMachineId() string
- func Init()
- func Register()
- func RequestCert(certFn, keyFn string) error
- func Run(restart chan<- struct{})
- func SanatizeFilename(f string) string
- func Sync(s, c bool) bool
- type Cert
- type CheckInStatus
- type ConfigsData
- type HostInfo
- type RegisterStatus
Constants ¶
const ( DEFAULT_ACTIVIATION_WAIT_TIME = 60 // 1 Minute DEFAULT_LIMIT_REACHED_WAIT_TIME = 600 // 10 Minutes )
const (
DAYS_TO_EXPIRATION = -30
)
Variables ¶
This section is empty.
Functions ¶
func DecodePEMCert ¶
func DecodePEMCert(p []byte) *x509.Certificate
func GetMachineId ¶
func GetMachineId() string
func Init ¶
func Init()
If we are connected to the manager, we need to do config parsing once before we start this to ensure we have the most up to date configs - the manager sync will automatically update configs while it's running
func Register ¶
func Register()
Do inital registration when the agent starts up... send basic data and if we need to get a certificate we do that now.