Documentation ¶
Index ¶
- func CreateCmd(ch *cmdutil.Helper) *cobra.Command
- func DeleteCmd(ch *cmdutil.Helper) *cobra.Command
- func ListCmd(ch *cmdutil.Helper) *cobra.Command
- func PasswordCmd(ch *cmdutil.Helper) *cobra.Command
- func RenewCmd(ch *cmdutil.Helper) *cobra.Command
- type Password
- type PasswordWithPlainText
- type Passwords
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PasswordCmd ¶
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:"-"` 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 ¶
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)
Click to show internal directories.
Click to hide internal directories.