openstack

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2022 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SecretPassword secretType = "password"
	SecretToken    secretType = "token"
)
View Source
const (
	PasswordLength = 16

	NameDefaultSet = `0123456789abcdefghijklmnopqrstuvwxyz`
	PwdDefaultSet  = `0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz~!@#$%^&*()_+-={}[]:"'<>,./|\'?`
)
View Source
const (
	DefaultUsernameTemplate = "vault{{random 8 | lowercase}}"
)

Variables

This section is empty.

Functions

func Factory

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

func RandomString

func RandomString(charset string, size int) string

func RandomTemporaryUsername

func RandomTemporaryUsername(templateString string, role *roleEntry) (string, error)

Types

type OsCloud

type OsCloud struct {
	Name             string `json:"name"`
	AuthURL          string `json:"auth_url"`
	UserDomainName   string `json:"user_domain_name"`
	Username         string `json:"username"`
	Password         string `json:"password"`
	UsernameTemplate string `json:"username_template"`
	PasswordPolicy   string `json:"password_policy"`
}

type PasswordGenerator

type PasswordGenerator interface {
	GeneratePasswordFromPolicy(ctx context.Context, policyName string) (password string, err error)
}

type Passwords

type Passwords struct {
	PolicyGenerator PasswordGenerator
	PolicyName      string
}

func (Passwords) Generate

func (p Passwords) Generate(ctx context.Context) (string, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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