entry

package
v0.0.0-...-8f69376 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 20, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateCLI

type CreateCLI struct{}

func (CreateCLI) Help

func (c CreateCLI) Help() string

func (CreateCLI) Run

func (c CreateCLI) Run(args []string) int

func (CreateCLI) Synopsis

func (CreateCLI) Synopsis() string

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
}

func (*CreateConfig) Validate

func (rc *CreateConfig) Validate() (err error)

Perform basic validation, even on fields that we have defaults defined for

type DeleteCLI

type DeleteCLI struct{}

func (DeleteCLI) Help

func (d DeleteCLI) Help() string

func (DeleteCLI) Run

func (d DeleteCLI) Run(args []string) int

func (DeleteCLI) Synopsis

func (DeleteCLI) Synopsis() string

type DeleteConfig

type DeleteConfig struct {
	// Socket path of registration API
	RegistrationUDSPath string

	// ID of the record to delete
	EntryID string
}

func (*DeleteConfig) Validate

func (dc *DeleteConfig) Validate() error

Perform basic validation

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

func (ShowCLI) Help

func (s ShowCLI) Help() string

Help prints a help message for the ShowCLI command

func (*ShowCLI) Run

func (s *ShowCLI) Run(args []string) int

Run executes all logic associated with a single invocation of the `spire-server entry show` CLI command

func (ShowCLI) Synopsis

func (ShowCLI) Synopsis() string

Synopsis prints a description of the ShowCLI 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
}

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

Define 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 UpdateCLI

type UpdateCLI struct{}

func (UpdateCLI) Help

func (c UpdateCLI) Help() string

func (UpdateCLI) Run

func (c UpdateCLI) Run(args []string) int

func (UpdateCLI) Synopsis

func (UpdateCLI) Synopsis() 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
	Ttl      int

	// List of SPIFFE IDs of trust domains the registration entry is federated with
	FederatesWith StringsFlag
}

func (*UpdateConfig) Validate

func (rc *UpdateConfig) Validate() (err error)

Perform basic validation, even on fields that we have defaults defined for

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL