passwordutil

package
v0.188.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateName

func GenerateName(prefix string) string

GenerateName takes a given prefix and adds a randomized suffix and datetime marker that is useful for password Names, which will be shown in the product UI.

Types

type Options

type Options struct {
	Organization string
	Database     string
	Branch       string
	Role         cmdutil.PasswordRole
	Name         string
	TTL          time.Duration
}

type Password

type Password struct {
	Password *ps.DatabaseBranchPassword
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, client *ps.Client, opt Options) (*Password, error)

func (*Password) Cleanup

func (p *Password) Cleanup(ctx context.Context) error

func (*Password) Renew added in v0.179.0

func (p *Password) Renew(ctx context.Context) error

Jump to

Keyboard shortcuts

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