helloworld

package
v0.0.0-...-88bbdd9 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2018 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrTargetNotFound = errors.New("target not found")
)

Functions

func Backend

func Backend() *backend

Backend returns a configured instance of the backend.

func Factory

Factory returns a configured instance of the backend.

Types

type Config

type Config struct {
	Salutation string `json:"salutation"`
}

Config is the stored configuration.

func DefaultConfig

func DefaultConfig() *Config

DefaultConfig returns a config with the default values.

func (*Config) Update

func (c *Config) Update(d *framework.FieldData) (bool, error)

Update updates the configuration from the given field data.

type Target

type Target struct {
	// ID is the identifier of the key in Vault.
	ID string `json:"id"`

	// DisplayName is the name to use when constructing a greeting to this target.
	DisplayName string `json:"display_name"`
}

Target represents a target from the storage backend.

Jump to

Keyboard shortcuts

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