password

package
v0.199.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCmd

func CreateCmd(ch *cmdutil.Helper) *cobra.Command

func DeleteCmd

func DeleteCmd(ch *cmdutil.Helper) *cobra.Command

func ListCmd

func ListCmd(ch *cmdutil.Helper) *cobra.Command

ListCmd encapsulates the command for listing passwords for a branch.

func PasswordCmd

func PasswordCmd(ch *cmdutil.Helper) *cobra.Command

PasswordCmd handles branch passwords.

func RenewCmd added in v0.179.0

func RenewCmd(ch *cmdutil.Helper) *cobra.Command

Types

type Password

type Password struct {
	PublicID       string `header:"id" json:"id"`
	Name           string `header:"name" json:"name"`
	Branch         string `header:"branch" json:"branch"`
	Username       string `header:"username" json:"username"`
	Role           string `header:"role" json:"role"`
	RoleDesc       string `header:"role description" json:"-"`
	ConnectionType string `header:"connection type" json:"connection_type"`
	TTL            int    `header:"ttl" json:"ttl"`
	Remaining      int    `header:"ttl_remaining" json:"-"`
	CreatedAt      int64  `json:"created_at"`
	Expired        bool   `header:"expired" json:"expired"`
	// contains filtered or unexported fields
}

func (*Password) MarshalCSVValue

func (b *Password) MarshalCSVValue() interface{}

func (*Password) MarshalJSON

func (b *Password) MarshalJSON() ([]byte, error)

type PasswordWithPlainText

type PasswordWithPlainText struct {
	Name           string `header:"name" json:"name"`
	Branch         string `header:"branch" json:"branch"`
	PublicID       string `header:"id" json:"public_id"`
	Username       string `header:"username" json:"username"`
	AccessHostUrl  string `header:"access host url" json:"access_host_url"`
	Role           string `header:"role" json:"role"`
	RoleDesc       string `header:"role description" json:"role_description"`
	ConnectionType string `header:"connection type" json:"connection_type"`
	PlainText      string `header:"password" json:"password"`
	TTL            int    `header:"ttl" json:"ttl"`
	// contains filtered or unexported fields
}

func (*PasswordWithPlainText) MarshalCSVValue added in v0.82.0

func (b *PasswordWithPlainText) MarshalCSVValue() interface{}

func (*PasswordWithPlainText) MarshalJSON added in v0.82.0

func (b *PasswordWithPlainText) MarshalJSON() ([]byte, error)

type Passwords

type Passwords []*Password

func (Passwords) String

func (b Passwords) String() string

Jump to

Keyboard shortcuts

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