Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsRetryable ¶
func IsUnauthorized ¶
Types ¶
type BackoffClient ¶
func ExpBackoff ¶
func ExpBackoff(client Client) BackoffClient
type Client ¶
type Client interface { SocketClient // GetAuthState returns the authentication state Authenticate(ctx context.Context) (*Authz, error) // SendInventory sends the inventory attributes to the server SendInventory(ctx context.Context, authz *Authz, inv Inventory) error }
Client is the interface for API
type Identity ¶
type Identity struct { Data string `json:"id_data"` PublicKey string `json:"pubkey"` ExternalID string `json:"external_id,omitempty"` TenantToken string `json:"tenant_token,omitempty"` }
Identity is the device's identity
type InventoryValue ¶
type InventoryValue []string
func (InventoryValue) MarshalJSON ¶
func (v InventoryValue) MarshalJSON() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.