Documentation
¶
Index ¶
- Variables
- func EncodeSSHPublicKey(pub ed25519.PublicKey, username string) (string, error)
- func GenerateKey() (string, error)
- func GenerateNonce(n int) ([]byte, error)
- func ParseOpenSSHED25519Signer(keyPEM string) (ssh.Signer, ed25519.PublicKey, error)
- func PrivateKeyToOpenSSHPEM(priv ed25519.PrivateKey) (string, error)
- type BakendConfig
- type Client
- func (c *Client) DeleteProject(ctx context.Context, privateKey string, req novakeytypes.DeleteProjectRequest) novakeytypes.DeleteProjectResponse
- func (c *Client) DeleteUser(ctx context.Context, privateKey string, req novakeytypes.DeleteUserRequest) novakeytypes.DeleteUserResponse
- func (c *Client) DeleteWorkspace(ctx context.Context, privateKey string, ...) novakeytypes.DeleteWorkspaceResponse
- func (c *Client) GetProject(ctx context.Context, privateKey string, req novakeytypes.GetProjectRequest) novakeytypes.GetProjectResponse
- func (c *Client) GetWorkspace(ctx context.Context, privateKey string, req novakeytypes.GetWorkspaceRequest) novakeytypes.GetWorkspaceResponse
- func (c *Client) SetProject(ctx context.Context, privateKey string, req novakeytypes.SetProjectRequest) novakeytypes.SetProjectResponse
- func (c *Client) SetUser(ctx context.Context, privateKey string, signerKey string, ...) novakeytypes.SetUserResponse
- func (c *Client) SetWorkspace(ctx context.Context, privateKey string, req novakeytypes.SetWorkspaceRequest) novakeytypes.SetWorkspaceResponse
- type InitConfig
- type LaunchConfig
- type LockConfig
- type UserConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInitFileNotFound = errors.New("no .novakey-init.yaml file found")
View Source
var ErrLockFileNotFound = errors.New("no novakey-lock.yaml file found")
Functions ¶
func EncodeSSHPublicKey ¶
func GenerateKey ¶
func GenerateNonce ¶
func PrivateKeyToOpenSSHPEM ¶
func PrivateKeyToOpenSSHPEM(priv ed25519.PrivateKey) (string, error)
Types ¶
type BakendConfig ¶
type BakendConfig struct {
Endpoint string `yaml:"endpoint"`
}
type Client ¶
func NewClientFromLaunchConfig ¶
func NewClientFromLaunchConfig(launchConfig LaunchConfig) *Client
func (*Client) DeleteProject ¶
func (*Client) DeleteUser ¶
func (*Client) DeleteWorkspace ¶
func (*Client) GetProject ¶
func (*Client) GetWorkspace ¶ added in v0.1.26
func (*Client) SetProject ¶
type InitConfig ¶
type InitConfig struct {
Directory string
}
type LaunchConfig ¶
type LaunchConfig struct {
Client *Client `yaml:"-"`
Backend BakendConfig `yaml:"backend"`
Workspace novakeytypes.Workspace `yaml:"workspace"`
Signer novakeytypes.Signer `yaml:"-"`
}
func LoadFromInitConfig ¶ added in v0.1.26
func LoadFromInitConfig(cfg InitConfig) (*LaunchConfig, error)
func LoadFromLockFile ¶ added in v0.1.26
func LoadFromLockFile(cfg InitConfig) (*LaunchConfig, error)
func NewClient ¶
func NewClient(cfg InitConfig) (*LaunchConfig, error)
type LockConfig ¶ added in v0.1.24
type UserConfig ¶
Click to show internal directories.
Click to hide internal directories.