types

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: MPL-2.0 Imports: 0 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthMiddlewareRequest added in v0.0.4

type AuthMiddlewareRequest struct {
	// Use auth instead of in the request body.
	IdentityToken string `uri:"identity_token" example:"a332139d39b89a241400013700e665a3"`
}

type AuthRequest

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

	// IdentityToken is used to authenticate the user and get
	// an access token for the registry.
	// Required: true
	IdentityToken string `json:"identity_token" example:"a332139d39b89a241400013700e665a3"`
}

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" example:"a332139d39b89a241400013700e665a3"`
	// The status of the authentication
	// Required: true
	Status string `json:"status" example:"Login successfully"`
}

type Environment added in v0.0.4

type Environment struct {
	ObjectMeta `json:",inline"`
	Spec       EnvironmentSpec   `json:"spec,omitempty"`
	Status     EnvironmentStatus `json:"status,omitempty"`
}

type EnvironmentCreateRequest

type EnvironmentCreateRequest struct {
	Environment `json:",inline,omitempty"`
}

type EnvironmentCreateResponse

type EnvironmentCreateResponse struct {
	Created Environment `json:"environment,omitempty"`

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

type EnvironmentGetRequest added in v0.0.5

type EnvironmentGetRequest struct {
	Name string `uri:"name" example:"pytorch-example"`
}

type EnvironmentGetResponse added in v0.0.5

type EnvironmentGetResponse struct {
	Environment `json:",inline"`
}

type EnvironmentListRequest added in v0.0.3

type EnvironmentListRequest struct {
}

type EnvironmentListResponse added in v0.0.3

type EnvironmentListResponse struct {
	Items []Environment `json:"items,omitempty"`
}

type EnvironmentPort added in v0.0.4

type EnvironmentPort struct {
	Name string `json:"name,omitempty"`
	Port int32  `json:"port,omitempty"`
}

type EnvironmentRemoveRequest added in v0.0.4

type EnvironmentRemoveRequest struct {
	Name string `uri:"name" example:"pytorch-example"`
}

type EnvironmentRemoveResponse added in v0.0.4

type EnvironmentRemoveResponse struct {
}

type EnvironmentSpec added in v0.0.4

type EnvironmentSpec struct {
	Owner string            `json:"owner,omitempty"`
	Image string            `json:"image,omitempty"`
	Env   []string          `json:"env,omitempty"`
	Cmd   []string          `json:"cmd,omitempty"`
	Ports []EnvironmentPort `json:"ports,omitempty"`
}

type EnvironmentStatus added in v0.0.4

type EnvironmentStatus struct {
	Phase string `json:"phase,omitempty"`
}

type ObjectMeta added in v0.0.5

type ObjectMeta struct {
	Name string `json:"name,omitempty"`

	Labels map[string]string `json:"labels,omitempty"`
}

Jump to

Keyboard shortcuts

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