Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateConfig ¶
type CreateConfig struct { // Socket path of registration API RegistrationUDSPath string // Path to an optional data file. If set, other // opts will be ignored. Path string // Type and value are delimited by a colon (:) // ex. "unix:uid:1000" or "spiffe_id:spiffe://example.org/foo" Selectors StringsFlag ParentID string SpiffeID string TTL int // List of SPIFFE IDs of trust domains the registration entry is federated with FederatesWith StringsFlag // Whether or not the registration entry is for an "admin" workload Admin bool // Whether or not the entry is for a downstream SPIRE server Downstream bool // Whether or not the entry represents a node or group of nodes Node bool // Expiry of entry EntryExpiry int64 // DNSNames entries for SVIDs based on this entry DNSNames StringsFlag }
func (*CreateConfig) Validate ¶
func (rc *CreateConfig) Validate() (err error)
Validate performs basic validation, even on fields that we have defaults defined for
type DeleteConfig ¶
type ShowCLI ¶
type ShowCLI struct { Client registration.RegistrationClient Config *ShowConfig Entries []*common.RegistrationEntry }
ShowCLI is a struct which represents an invocation of the `spire-server entry show` CLI command
type ShowConfig ¶
type ShowConfig struct { // Socket path of registration API RegistrationUDSPath string // Type and value are delimited by a colon (:) // ex. "unix:uid:1000" or "spiffe_id:spiffe://example.org/foo" Selectors StringsFlag EntryID string ParentID string SpiffeID string FederatesWith StringsFlag Downstream bool }
ShowConfig is a configuration struct for the `spire-server entry show` CLI command
func (*ShowConfig) Validate ¶
func (sc *ShowConfig) Validate() error
Validate ensures that the values in ShowConfig are valid
type StringsFlag ¶
type StringsFlag []string
StringsFlag defines a custom type for string lists. Doing this allows us to support repeatable string flags.
func (*StringsFlag) Set ¶
func (s *StringsFlag) Set(val string) error
func (*StringsFlag) String ¶
func (s *StringsFlag) String() string
type UpdateConfig ¶
type UpdateConfig struct { // Socket path of registration API RegistrationUDSPath string // Path to an optional data file. If set, other // opts will be ignored. Path string // Registration entry id to update EntryID string // Type and value are delimited by a colon (:) // ex. "unix:uid:1000" or "spiffe_id:spiffe://example.org/foo" Selectors StringsFlag ParentID string SpiffeID string Downstream bool TTL int // List of SPIFFE IDs of trust domains the registration entry is federated with FederatesWith StringsFlag // Whether or not the registration entry is for an "admin" workload Admin bool // Expiry of entry EntryExpiry int64 // DNSNames entries for SVIDs based on this entry DNSNames StringsFlag }
func (*UpdateConfig) Validate ¶
func (rc *UpdateConfig) Validate() (err error)
Validate performs basic validation, even on fields that we have defaults defined for
Click to show internal directories.
Click to hide internal directories.