Help us shape the future of Go! Take the 2026 Go Developer Survey

passwordutil

package
v0.323.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2026 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
	Replica          bool
	ReadOnlyRegionID string
}

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