ssh

package
v2.14.13+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

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

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

Jump to

Keyboard shortcuts

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