types

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2022 License: MPL-2.0 Imports: 0 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthRequest

type AuthRequest struct {
	Username  string `json:"username,omitempty"`
	Password  string `json:"password,omitempty"`
	PublicKey string `json:"public_key,omitempty"`

	// IdentityToken is used to authenticate the user and get
	// an access token for the registry.
	IdentityToken string `json:"identity_token,omitempty"`
}

AuthRequest contains authorization information for connecting to a envd server.

type AuthResponse

type AuthResponse struct {
	// An opaque token used to authenticate a user after a successful login
	// Required: true
	IdentityToken string `json:"identity_token"`
	// The status of the authentication
	// Required: true
	Status string `json:"status"`
}

type EnvironmentCreateRequest

type EnvironmentCreateRequest struct {
	// Use auth instead of in the requrest body.
	IdentityToken string `json:"identity_token,omitempty"`
	Image         string `json:"image,omitempty"`
}

type EnvironmentCreateResponse

type EnvironmentCreateResponse struct {
	// The ID of the created container
	// Required: true
	ID string `json:"Id"`

	// Warnings encountered when creating the pod
	// Required: true
	Warnings []string `json:"Warnings"`
}

Jump to

Keyboard shortcuts

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