Documentation
¶
Index ¶
- type AuthMiddlewareRequest
- type AuthRequest
- type AuthResponse
- type Environment
- type EnvironmentCreateRequest
- type EnvironmentCreateResponse
- type EnvironmentGetRequest
- type EnvironmentGetResponse
- type EnvironmentListRequest
- type EnvironmentListResponse
- type EnvironmentPort
- type EnvironmentRemoveRequest
- type EnvironmentRemoveResponse
- type EnvironmentRepoInfo
- type EnvironmentSpec
- type EnvironmentStatus
- type ImageGetRequest
- type ImageGetResponse
- type ImageInfo
- type ImageListRequest
- type ImageListResponse
- type ImageMeta
- type ObjectMeta
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 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 EnvironmentRepoInfo ¶ added in v0.0.7
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 ImageGetRequest ¶ added in v0.0.7
type ImageGetRequest struct {
Name string `uri:"name" example:"pytorch-example"`
}
type ImageGetResponse ¶ added in v0.0.7
type ImageGetResponse struct {
ImageMeta `json:",inline"`
}
type ImageListRequest ¶ added in v0.0.7
type ImageListRequest struct {
}
type ImageListResponse ¶ added in v0.0.7
type ImageListResponse struct {
Items []ImageMeta `json:"items,omitempty"`
}
type ObjectMeta ¶ added in v0.0.5
Click to show internal directories.
Click to hide internal directories.