password

package
v0.167.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2023 License: Apache-2.0 Imports: 14 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.

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:"-"`
	TTL       int    `header:"ttl" json:"ttl"`
	CreatedAt int64  `json:"created_at"`
	// 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"`
	PlainText         string               `header:"password" json:"password"`
	TTL               int                  `header:"ttl" json:"ttl"`
	ConnectionStrings ps.ConnectionStrings `json:"connection_strings"`
	// 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