Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExportYaml ¶
func ExportYaml(data interface{}) error
func GeneratePassword ¶
Types ¶
type SshRole ¶
type SshRoleContainer ¶
type SshRoleContainer struct { Type string `yaml:"type"` Path string `yaml:"path"` SshRoleContainer []SshRole `yaml:"sshroles"` }
func NewSshContainerFromYaml ¶
func NewSshContainerFromYaml(b []byte) (r *SshRoleContainer, err error)
func (*SshRoleContainer) AppendSshRole ¶
func (r *SshRoleContainer) AppendSshRole(role SshRole) []SshRole
type User ¶
type User struct { Name string `yaml:"name"` Policies []string `yaml:"token_policies"` Method string `yaml:"method"` }
func (*User) ApplyToVault ¶
type UserContainer ¶
func NewUserContainerFromYaml ¶
func NewUserContainerFromYaml(b []byte) (uc *UserContainer, err error)
func (*UserContainer) AppendUser ¶
func (uc *UserContainer) AppendUser(user User) []User
Click to show internal directories.
Click to hide internal directories.