tctl

package
v0.0.0-...-5c79d48 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: AGPL-3.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 Tctl

type Tctl struct {
	Path       string
	ConfigPath string
	AuthServer string
}

Tctl is a runner of tctl command.

func (Tctl) CheckExecutable

func (tctl Tctl) CheckExecutable() error

CheckExecutable checks if `tctl` executable exists in the system.

func (Tctl) Create

func (tctl Tctl) Create(ctx context.Context, resources []types.Resource) error

Create creates or updates a set of Teleport resources.

func (Tctl) Get

func (tctl Tctl) Get(ctx context.Context, kind, name string) (types.Resource, error)

Get loads a singular resource by its kind and name identifiers.

func (Tctl) GetAll

func (tctl Tctl) GetAll(ctx context.Context, query string) ([]types.Resource, error)

GetAll loads a bunch of Teleport resources by a given query.

func (Tctl) GetCAPin

func (tctl Tctl) GetCAPin(ctx context.Context) (string, error)

GetCAPin sets the auth service CA Pin using output from tctl.

func (Tctl) Sign

func (tctl Tctl) Sign(ctx context.Context, username, format, outPath string) error

Sign generates Teleport client credentials at a given path.

Jump to

Keyboard shortcuts

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