publisher

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Publisher

type Publisher interface {
	UpdateRobot(ctx context.Context, robot *config.RobotConfig, token string) error
	DeleteRobot(ctx context.Context, robot *config.RobotConfig) error
}

type Vault

type Vault struct {
	// contains filtered or unexported fields
}

func NewVaultPublisher

func NewVaultPublisher(organization string) (*Vault, error)

NewVaultPublisher relies on VAULT_ADDR and VAULT_TOKEN env variables be set.

func (*Vault) DeleteRobot

func (v *Vault) DeleteRobot(ctx context.Context, robot *config.RobotConfig) error

func (*Vault) UpdateRobot

func (v *Vault) UpdateRobot(ctx context.Context, robot *config.RobotConfig, token string) error

Jump to

Keyboard shortcuts

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