chef

package
v0.0.0-...-9a2537c Latest Latest
Warning

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

Go to latest
Published: May 9, 2017 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Backend

func Backend() *backend

func Factory

func Factory(conf *logical.BackendConfig) (logical.Backend, error)

func ListTranslatedResponse

func ListTranslatedResponse(keys []string) *logical.Response

ListResponse is used to format a response to a list operation.

func ParseConstraint

func ParseConstraint(constraintRaw string) []string

func SanitizeConstraint

func SanitizeConstraint(constraints []string, addDefault bool) []string

Types

type CLIHandler

type CLIHandler struct{}

func (*CLIHandler) Auth

func (h *CLIHandler) Auth(c *api.Client, m map[string]string) (string, error)

func (*CLIHandler) Help

func (h *CLIHandler) Help() string

CLI Help for Chef Authentication

type ConfigEntry

type ConfigEntry struct {
	BaseURL   string        `json:"base_url" structs:"base_url" mapstructure:"base_url"`
	AdminUser string        `json:"admin_user" structs:"admin_user" mapstructure:"admin_user"`
	AdminKey  string        `json:"admin_key" structs:"admin_key" mapstructure:"admin_key"`
	TTL       time.Duration `json:"ttl" structs:"ttl" mapstructure:"ttl"`
	MaxTTL    time.Duration `json:"max_ttl" structs:"max_ttl" mapstructure:"max_ttl"`
}

type GroupEntry

type GroupEntry struct {
	Policies []string
}

type PathEntry

type PathEntry struct {
	Policies   []string
	Constraint []string
}

type RoleEntry

type RoleEntry struct {
	Policies []string
}

Jump to

Keyboard shortcuts

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