Documentation ¶
Index ¶
- type UserSSHKeyBuilder
- func (sb *UserSSHKeyBuilder) Build() (*kubermaticv1.UserSSHKey, error)
- func (sb *UserSSHKeyBuilder) SetName(keyName string) *UserSSHKeyBuilder
- func (sb *UserSSHKeyBuilder) SetOwner(username string) *UserSSHKeyBuilder
- func (sb *UserSSHKeyBuilder) SetRawKey(publicKey string) *UserSSHKeyBuilder
- func (sb *UserSSHKeyBuilder) Validate() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserSSHKeyBuilder ¶
type UserSSHKeyBuilder struct {
// contains filtered or unexported fields
}
UserSSHKeyBuilder is builder to create ssh key structs including validation
func NewUserSSHKeyBuilder ¶
func NewUserSSHKeyBuilder() *UserSSHKeyBuilder
NewUserSSHKeyBuilder returns a new instance of a UserSSHKeyBuilder
func (*UserSSHKeyBuilder) Build ¶
func (sb *UserSSHKeyBuilder) Build() (*kubermaticv1.UserSSHKey, error)
Build returns a instance of a ssh key
func (*UserSSHKeyBuilder) SetName ¶
func (sb *UserSSHKeyBuilder) SetName(keyName string) *UserSSHKeyBuilder
SetName sets the name for a ssh key
func (*UserSSHKeyBuilder) SetOwner ¶
func (sb *UserSSHKeyBuilder) SetOwner(username string) *UserSSHKeyBuilder
SetOwner sets the username for a ssh key
func (*UserSSHKeyBuilder) SetRawKey ¶
func (sb *UserSSHKeyBuilder) SetRawKey(publicKey string) *UserSSHKeyBuilder
SetRawKey sets the raw public key for a ssh key
func (*UserSSHKeyBuilder) Validate ¶
func (sb *UserSSHKeyBuilder) Validate() error
Validate returns errors if the supplied data is not valid
Click to show internal directories.
Click to hide internal directories.