Documentation
¶
Overview ¶
Package inventoryapi defines the v2 resolver protocol independently of Writ and storage implementations. CA projects policy inputs from validated results.
Index ¶
Constants ¶
View Source
const Version = 2
Version is the inventory resolution wire version.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DirectorySnapshot ¶
func (*DirectorySnapshot) UnmarshalJSON ¶
func (d *DirectorySnapshot) UnmarshalJSON(data []byte) error
type Host ¶
type Host struct {
facts.HostResource
Principal Principal `json:"principal"`
}
type HostSnapshot ¶
func (*HostSnapshot) UnmarshalJSON ¶
func (h *HostSnapshot) UnmarshalJSON(data []byte) error
type Resolution ¶
type Resolution struct {
Version int `json:"version"`
Authentication facts.Authentication `json:"authentication"`
Target string `json:"target"`
Directory DirectorySnapshot `json:"directory"`
Inventory HostSnapshot `json:"inventory"`
}
func (*Resolution) Validate ¶
func (r *Resolution) Validate(host string) error
Validate checks both request binding and all fields whose omission could broaden authorization. Absence of an entity is represented only by null.
type ResolveRequest ¶
Click to show internal directories.
Click to hide internal directories.