Documentation ¶
Index ¶
- type ConfigResponse
- type Host
- type Version
- func (v1 Version) Compare(v2 Version) int
- func (v *Version) Epoch() int
- func (v1 *Version) Equal(v2 Version) bool
- func (v1 *Version) GreaterThan(v2 Version) bool
- func (v1 Version) LessThan(v2 Version) bool
- func (v *Version) Release() string
- func (v1 Version) String() string
- func (v *Version) Version() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigResponse ¶
type ConfigResponse struct { Defer bool `json:"defer"` Shutdown bool `json:"shutdown"` Msg string `json:"msg"` Key string `json:"key"` Certificate string `json:"certificate"` CA string `json:"ca"` SSLDir string `json:"ssldir"` ServerClaims *tokens.ServerClaims `json:"server_claims"` Configuration map[string]string `json:"configuration"` ActionPolicies map[string]string `json:"action_policies"` OPAPolicies map[string]string `json:"opa_policies"` UpgradeVersion string `json:"upgrade"` }
type Host ¶
type Host struct { Identity string `json:"identity"` CSR *provision.CSRReply `json:"csr"` ED25519PubKey *provision.ED25519Reply `json:"ed25519_pubkey"` Metadata string `json:"inventory"` JWT *tokens.ProvisioningClaims `json:"jwt"` // contains filtered or unexported fields }
func (*Host) DiscoveredTime ¶
type Version ¶
type Version struct {
// contains filtered or unexported fields
}
Version represents a package version.
func (Version) Compare ¶
Compare returns an integer comparing two version. The result will be 0 if v1==v2, -1 if v1 < v2, and +1 if v1 > v2.
func (*Version) GreaterThan ¶
GreaterThan returns whether this version is greater than another version.
Click to show internal directories.
Click to hide internal directories.