Documentation ¶
Index ¶
- func AddAuthorizedKeysUserPath() string
- func CreateContainerPath() string
- func DownloadContainerPath(id string) string
- func DownloadContainerPath2() string
- func ExecContainerPath(id string) string
- func GetConfigContainerPath(id string) string
- func GetConfigUserPath() string
- func GetDefaultShellUserPath() string
- func InspectContainerPath(id string) string
- func ListAuthorizedKeysUserPath() string
- func ListContainerPath() string
- func LogsContainerPath(id string) string
- func RemoveAuthorizedKeysUserPath() string
- func RemoveContainerPath(id string) string
- func SetAuthorizedKeysUserPath() string
- func SetConfigContainerPath(id string) string
- func SetDefaultShellUserPath() string
- func StartContainerPath(id string) string
- func StopContainerPath(id string) string
- func UploadContainerPath(id string) string
- type Client
- func (c *Client) AddAuthorizedKeysUser(ctx context.Context, path string, payload *UserAuthorizedKey, ...) (*http.Response, error)
- func (c *Client) CreateContainer(ctx context.Context, path string, image string, name string, command []string, ...) (*http.Response, error)
- func (c *Client) DecodeErrorResponse(resp *http.Response) (*goa.ErrorResponse, error)
- func (c *Client) DecodeGoaContainerConfig(resp *http.Response) (*GoaContainerConfig, error)
- func (c *Client) DecodeGoaContainerCreateResults(resp *http.Response) (*GoaContainerCreateResults, error)
- func (c *Client) DecodeGoaContainerDownloadResult(resp *http.Response) (*GoaContainerDownloadResult, error)
- func (c *Client) DecodeGoaContainerInspect(resp *http.Response) (*GoaContainerInspect, error)
- func (c *Client) DecodeGoaContainerInspectRawState(resp *http.Response) (*GoaContainerInspectRawState, error)
- func (c *Client) DecodeGoaContainerListEach(resp *http.Response) (*GoaContainerListEach, error)
- func (c *Client) DecodeGoaContainerListEachCollection(resp *http.Response) (GoaContainerListEachCollection, error)
- func (c *Client) DecodeGoaUserAuthorizedkey(resp *http.Response) (*GoaUserAuthorizedkey, error)
- func (c *Client) DecodeGoaUserAuthorizedkeyCollection(resp *http.Response) (GoaUserAuthorizedkeyCollection, error)
- func (c *Client) DecodeGoaUserConfig(resp *http.Response) (*GoaUserConfig, error)
- func (c *Client) DecodeGoaUserDefaultshell(resp *http.Response) (*GoaUserDefaultshell, error)
- func (c *Client) DownloadContainer(ctx context.Context, path string, internalPath string) (*http.Response, error)
- func (c *Client) DownloadSwaggerJSON(ctx context.Context, dest string) (int64, error)
- func (c *Client) DownloadSwaggerYaml(ctx context.Context, dest string) (int64, error)
- func (c *Client) ExecContainer(ctx context.Context, path string, command []string, tty *bool) (*websocket.Conn, error)
- func (c *Client) GetConfigContainer(ctx context.Context, path string) (*http.Response, error)
- func (c *Client) GetConfigUser(ctx context.Context, path string) (*http.Response, error)
- func (c *Client) GetDefaultShellUser(ctx context.Context, path string) (*http.Response, error)
- func (c *Client) InspectContainer(ctx context.Context, path string) (*http.Response, error)
- func (c *Client) ListAuthorizedKeysUser(ctx context.Context, path string) (*http.Response, error)
- func (c *Client) ListContainer(ctx context.Context, path string) (*http.Response, error)
- func (c *Client) LogsContainer(ctx context.Context, path string, follow *bool, since *time.Time, stderr *bool, ...) (*websocket.Conn, error)
- func (c *Client) NewAddAuthorizedKeysUserRequest(ctx context.Context, path string, payload *UserAuthorizedKey, ...) (*http.Request, error)
- func (c *Client) NewCreateContainerRequest(ctx context.Context, path string, image string, name string, command []string, ...) (*http.Request, error)
- func (c *Client) NewDownloadContainerRequest(ctx context.Context, path string, internalPath string) (*http.Request, error)
- func (c *Client) NewGetConfigContainerRequest(ctx context.Context, path string) (*http.Request, error)
- func (c *Client) NewGetConfigUserRequest(ctx context.Context, path string) (*http.Request, error)
- func (c *Client) NewGetDefaultShellUserRequest(ctx context.Context, path string) (*http.Request, error)
- func (c *Client) NewInspectContainerRequest(ctx context.Context, path string) (*http.Request, error)
- func (c *Client) NewListAuthorizedKeysUserRequest(ctx context.Context, path string) (*http.Request, error)
- func (c *Client) NewListContainerRequest(ctx context.Context, path string) (*http.Request, error)
- func (c *Client) NewRemoveAuthorizedKeysUserRequest(ctx context.Context, path string, label string) (*http.Request, error)
- func (c *Client) NewRemoveContainerRequest(ctx context.Context, path string, force bool) (*http.Request, error)
- func (c *Client) NewSetAuthorizedKeysUserRequest(ctx context.Context, path string, payload SetAuthorizedKeysUserPayload, ...) (*http.Request, error)
- func (c *Client) NewSetConfigContainerRequest(ctx context.Context, path string, payload *ContainerConfig, contentType string) (*http.Request, error)
- func (c *Client) NewSetDefaultShellUserRequest(ctx context.Context, path string, defaultShell string) (*http.Request, error)
- func (c *Client) NewStartContainerRequest(ctx context.Context, path string) (*http.Request, error)
- func (c *Client) NewStopContainerRequest(ctx context.Context, path string) (*http.Request, error)
- func (c *Client) NewUploadContainerRequest(ctx context.Context, path string, payload *UploadPayload, contentType string) (*http.Request, error)
- func (c *Client) RemoveAuthorizedKeysUser(ctx context.Context, path string, label string) (*http.Response, error)
- func (c *Client) RemoveContainer(ctx context.Context, path string, force bool) (*http.Response, error)
- func (c *Client) SetAuthorizedKeysUser(ctx context.Context, path string, payload SetAuthorizedKeysUserPayload, ...) (*http.Response, error)
- func (c *Client) SetConfigContainer(ctx context.Context, path string, payload *ContainerConfig, contentType string) (*http.Response, error)
- func (c *Client) SetDefaultShellUser(ctx context.Context, path string, defaultShell string) (*http.Response, error)
- func (c *Client) SetJWTSigner(signer goaclient.Signer)
- func (c *Client) StartContainer(ctx context.Context, path string) (*http.Response, error)
- func (c *Client) StopContainer(ctx context.Context, path string) (*http.Response, error)
- func (c *Client) UploadContainer(ctx context.Context, path string, payload *UploadPayload, contentType string) (*http.Response, error)
- type ContainerConfig
- type GoaContainerConfig
- type GoaContainerCreateResults
- type GoaContainerDownloadResult
- type GoaContainerInspect
- type GoaContainerInspectRawState
- type GoaContainerListEach
- type GoaContainerListEachCollection
- type GoaUserAuthorizedkey
- type GoaUserAuthorizedkeyCollection
- type GoaUserConfig
- type GoaUserDefaultshell
- type SetAuthorizedKeysUserPayload
- type UploadPayload
- type UserAuthorizedKey
- type UserConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddAuthorizedKeysUserPath ¶
func AddAuthorizedKeysUserPath() string
AddAuthorizedKeysUserPath computes a request path to the addAuthorizedKeys action of user.
func CreateContainerPath ¶
func CreateContainerPath() string
CreateContainerPath computes a request path to the create action of container.
func DownloadContainerPath ¶
DownloadContainerPath computes a request path to the download action of container.
func DownloadContainerPath2 ¶
func DownloadContainerPath2() string
DownloadContainerPath2 computes a request path to the download action of container.
func ExecContainerPath ¶
ExecContainerPath computes a request path to the exec action of container.
func GetConfigContainerPath ¶
GetConfigContainerPath computes a request path to the getConfig action of container.
func GetConfigUserPath ¶
func GetConfigUserPath() string
GetConfigUserPath computes a request path to the getConfig action of user.
func GetDefaultShellUserPath ¶
func GetDefaultShellUserPath() string
GetDefaultShellUserPath computes a request path to the getDefaultShell action of user.
func InspectContainerPath ¶
InspectContainerPath computes a request path to the inspect action of container.
func ListAuthorizedKeysUserPath ¶
func ListAuthorizedKeysUserPath() string
ListAuthorizedKeysUserPath computes a request path to the listAuthorizedKeys action of user.
func ListContainerPath ¶
func ListContainerPath() string
ListContainerPath computes a request path to the list action of container.
func LogsContainerPath ¶
LogsContainerPath computes a request path to the logs action of container.
func RemoveAuthorizedKeysUserPath ¶
func RemoveAuthorizedKeysUserPath() string
RemoveAuthorizedKeysUserPath computes a request path to the removeAuthorizedKeys action of user.
func RemoveContainerPath ¶
RemoveContainerPath computes a request path to the remove action of container.
func SetAuthorizedKeysUserPath ¶
func SetAuthorizedKeysUserPath() string
SetAuthorizedKeysUserPath computes a request path to the setAuthorizedKeys action of user.
func SetConfigContainerPath ¶
SetConfigContainerPath computes a request path to the setConfig action of container.
func SetDefaultShellUserPath ¶
func SetDefaultShellUserPath() string
SetDefaultShellUserPath computes a request path to the setDefaultShell action of user.
func StartContainerPath ¶
StartContainerPath computes a request path to the start action of container.
func StopContainerPath ¶
StopContainerPath computes a request path to the stop action of container.
func UploadContainerPath ¶
UploadContainerPath computes a request path to the upload action of container.
Types ¶
type Client ¶
type Client struct { *goaclient.Client JWTSigner goaclient.Signer Encoder *goa.HTTPEncoder Decoder *goa.HTTPDecoder }
Client is the Modoki API service client.
func (*Client) AddAuthorizedKeysUser ¶
func (c *Client) AddAuthorizedKeysUser(ctx context.Context, path string, payload *UserAuthorizedKey, contentType string) (*http.Response, error)
AddAuthorizedKeysUser makes a request to the addAuthorizedKeys action endpoint of the user resource
func (*Client) CreateContainer ¶
func (c *Client) CreateContainer(ctx context.Context, path string, image string, name string, command []string, entrypoint []string, env []string, sslRedirect *bool, volumes []string, workingDir *string) (*http.Response, error)
create a new container
func (*Client) DecodeErrorResponse ¶
DecodeErrorResponse decodes the ErrorResponse instance encoded in resp body.
func (*Client) DecodeGoaContainerConfig ¶
func (c *Client) DecodeGoaContainerConfig(resp *http.Response) (*GoaContainerConfig, error)
DecodeGoaContainerConfig decodes the GoaContainerConfig instance encoded in resp body.
func (*Client) DecodeGoaContainerCreateResults ¶
func (c *Client) DecodeGoaContainerCreateResults(resp *http.Response) (*GoaContainerCreateResults, error)
DecodeGoaContainerCreateResults decodes the GoaContainerCreateResults instance encoded in resp body.
func (*Client) DecodeGoaContainerDownloadResult ¶
func (c *Client) DecodeGoaContainerDownloadResult(resp *http.Response) (*GoaContainerDownloadResult, error)
DecodeGoaContainerDownloadResult decodes the GoaContainerDownloadResult instance encoded in resp body.
func (*Client) DecodeGoaContainerInspect ¶
func (c *Client) DecodeGoaContainerInspect(resp *http.Response) (*GoaContainerInspect, error)
DecodeGoaContainerInspect decodes the GoaContainerInspect instance encoded in resp body.
func (*Client) DecodeGoaContainerInspectRawState ¶
func (c *Client) DecodeGoaContainerInspectRawState(resp *http.Response) (*GoaContainerInspectRawState, error)
DecodeGoaContainerInspectRawState decodes the GoaContainerInspectRawState instance encoded in resp body.
func (*Client) DecodeGoaContainerListEach ¶
func (c *Client) DecodeGoaContainerListEach(resp *http.Response) (*GoaContainerListEach, error)
DecodeGoaContainerListEach decodes the GoaContainerListEach instance encoded in resp body.
func (*Client) DecodeGoaContainerListEachCollection ¶
func (c *Client) DecodeGoaContainerListEachCollection(resp *http.Response) (GoaContainerListEachCollection, error)
DecodeGoaContainerListEachCollection decodes the GoaContainerListEachCollection instance encoded in resp body.
func (*Client) DecodeGoaUserAuthorizedkey ¶
func (c *Client) DecodeGoaUserAuthorizedkey(resp *http.Response) (*GoaUserAuthorizedkey, error)
DecodeGoaUserAuthorizedkey decodes the GoaUserAuthorizedkey instance encoded in resp body.
func (*Client) DecodeGoaUserAuthorizedkeyCollection ¶
func (c *Client) DecodeGoaUserAuthorizedkeyCollection(resp *http.Response) (GoaUserAuthorizedkeyCollection, error)
DecodeGoaUserAuthorizedkeyCollection decodes the GoaUserAuthorizedkeyCollection instance encoded in resp body.
func (*Client) DecodeGoaUserConfig ¶
func (c *Client) DecodeGoaUserConfig(resp *http.Response) (*GoaUserConfig, error)
DecodeGoaUserConfig decodes the GoaUserConfig instance encoded in resp body.
func (*Client) DecodeGoaUserDefaultshell ¶
func (c *Client) DecodeGoaUserDefaultshell(resp *http.Response) (*GoaUserDefaultshell, error)
DecodeGoaUserDefaultshell decodes the GoaUserDefaultshell instance encoded in resp body.
func (*Client) DownloadContainer ¶
func (c *Client) DownloadContainer(ctx context.Context, path string, internalPath string) (*http.Response, error)
Copy files from the container
func (*Client) DownloadSwaggerJSON ¶
DownloadSwaggerJSON downloads swagger.json and writes it to the file dest. It returns the number of bytes downloaded in case of success.
func (*Client) DownloadSwaggerYaml ¶
DownloadSwaggerYaml downloads swagger.yaml and writes it to the file dest. It returns the number of bytes downloaded in case of success.
func (*Client) ExecContainer ¶
func (c *Client) ExecContainer(ctx context.Context, path string, command []string, tty *bool) (*websocket.Conn, error)
Exec a command with attaching to a container using WebSocket(Mainly for xterm.js, using a protocol for terminado)
func (*Client) GetConfigContainer ¶
Get the config of a container
func (*Client) GetConfigUser ¶
GetConfigUser makes a request to the getConfig action endpoint of the user resource
func (*Client) GetDefaultShellUser ¶
GetDefaultShellUser makes a request to the getDefaultShell action endpoint of the user resource
func (*Client) InspectContainer ¶
Return details of a container
func (*Client) ListAuthorizedKeysUser ¶
ListAuthorizedKeysUser makes a request to the listAuthorizedKeys action endpoint of the user resource
func (*Client) ListContainer ¶
Return a list of containers
func (*Client) LogsContainer ¶
func (c *Client) LogsContainer(ctx context.Context, path string, follow *bool, since *time.Time, stderr *bool, stdout *bool, tail *string, timestamps *bool, until *time.Time) (*websocket.Conn, error)
Get stdout and stderr logs from a container.
func (*Client) NewAddAuthorizedKeysUserRequest ¶
func (c *Client) NewAddAuthorizedKeysUserRequest(ctx context.Context, path string, payload *UserAuthorizedKey, contentType string) (*http.Request, error)
NewAddAuthorizedKeysUserRequest create the request corresponding to the addAuthorizedKeys action endpoint of the user resource.
func (*Client) NewCreateContainerRequest ¶
func (c *Client) NewCreateContainerRequest(ctx context.Context, path string, image string, name string, command []string, entrypoint []string, env []string, sslRedirect *bool, volumes []string, workingDir *string) (*http.Request, error)
NewCreateContainerRequest create the request corresponding to the create action endpoint of the container resource.
func (*Client) NewDownloadContainerRequest ¶
func (c *Client) NewDownloadContainerRequest(ctx context.Context, path string, internalPath string) (*http.Request, error)
NewDownloadContainerRequest create the request corresponding to the download action endpoint of the container resource.
func (*Client) NewGetConfigContainerRequest ¶
func (c *Client) NewGetConfigContainerRequest(ctx context.Context, path string) (*http.Request, error)
NewGetConfigContainerRequest create the request corresponding to the getConfig action endpoint of the container resource.
func (*Client) NewGetConfigUserRequest ¶
NewGetConfigUserRequest create the request corresponding to the getConfig action endpoint of the user resource.
func (*Client) NewGetDefaultShellUserRequest ¶
func (c *Client) NewGetDefaultShellUserRequest(ctx context.Context, path string) (*http.Request, error)
NewGetDefaultShellUserRequest create the request corresponding to the getDefaultShell action endpoint of the user resource.
func (*Client) NewInspectContainerRequest ¶
func (c *Client) NewInspectContainerRequest(ctx context.Context, path string) (*http.Request, error)
NewInspectContainerRequest create the request corresponding to the inspect action endpoint of the container resource.
func (*Client) NewListAuthorizedKeysUserRequest ¶
func (c *Client) NewListAuthorizedKeysUserRequest(ctx context.Context, path string) (*http.Request, error)
NewListAuthorizedKeysUserRequest create the request corresponding to the listAuthorizedKeys action endpoint of the user resource.
func (*Client) NewListContainerRequest ¶
NewListContainerRequest create the request corresponding to the list action endpoint of the container resource.
func (*Client) NewRemoveAuthorizedKeysUserRequest ¶
func (c *Client) NewRemoveAuthorizedKeysUserRequest(ctx context.Context, path string, label string) (*http.Request, error)
NewRemoveAuthorizedKeysUserRequest create the request corresponding to the removeAuthorizedKeys action endpoint of the user resource.
func (*Client) NewRemoveContainerRequest ¶
func (c *Client) NewRemoveContainerRequest(ctx context.Context, path string, force bool) (*http.Request, error)
NewRemoveContainerRequest create the request corresponding to the remove action endpoint of the container resource.
func (*Client) NewSetAuthorizedKeysUserRequest ¶
func (c *Client) NewSetAuthorizedKeysUserRequest(ctx context.Context, path string, payload SetAuthorizedKeysUserPayload, contentType string) (*http.Request, error)
NewSetAuthorizedKeysUserRequest create the request corresponding to the setAuthorizedKeys action endpoint of the user resource.
func (*Client) NewSetConfigContainerRequest ¶
func (c *Client) NewSetConfigContainerRequest(ctx context.Context, path string, payload *ContainerConfig, contentType string) (*http.Request, error)
NewSetConfigContainerRequest create the request corresponding to the setConfig action endpoint of the container resource.
func (*Client) NewSetDefaultShellUserRequest ¶
func (c *Client) NewSetDefaultShellUserRequest(ctx context.Context, path string, defaultShell string) (*http.Request, error)
NewSetDefaultShellUserRequest create the request corresponding to the setDefaultShell action endpoint of the user resource.
func (*Client) NewStartContainerRequest ¶
NewStartContainerRequest create the request corresponding to the start action endpoint of the container resource.
func (*Client) NewStopContainerRequest ¶
NewStopContainerRequest create the request corresponding to the stop action endpoint of the container resource.
func (*Client) NewUploadContainerRequest ¶
func (c *Client) NewUploadContainerRequest(ctx context.Context, path string, payload *UploadPayload, contentType string) (*http.Request, error)
NewUploadContainerRequest create the request corresponding to the upload action endpoint of the container resource.
func (*Client) RemoveAuthorizedKeysUser ¶
func (c *Client) RemoveAuthorizedKeysUser(ctx context.Context, path string, label string) (*http.Response, error)
RemoveAuthorizedKeysUser makes a request to the removeAuthorizedKeys action endpoint of the user resource
func (*Client) RemoveContainer ¶
func (c *Client) RemoveContainer(ctx context.Context, path string, force bool) (*http.Response, error)
remove a container
func (*Client) SetAuthorizedKeysUser ¶
func (c *Client) SetAuthorizedKeysUser(ctx context.Context, path string, payload SetAuthorizedKeysUserPayload, contentType string) (*http.Response, error)
SetAuthorizedKeysUser makes a request to the setAuthorizedKeys action endpoint of the user resource
func (*Client) SetConfigContainer ¶
func (c *Client) SetConfigContainer(ctx context.Context, path string, payload *ContainerConfig, contentType string) (*http.Response, error)
Change the config of a container
func (*Client) SetDefaultShellUser ¶
func (c *Client) SetDefaultShellUser(ctx context.Context, path string, defaultShell string) (*http.Response, error)
SetDefaultShellUser makes a request to the setDefaultShell action endpoint of the user resource
func (*Client) SetJWTSigner ¶
SetJWTSigner sets the request signer for the jwt security scheme.
func (*Client) StartContainer ¶
start a container
func (*Client) StopContainer ¶
stop a container
type ContainerConfig ¶
type ContainerConfig struct {
DefaultShell *string `form:"defaultShell,omitempty" json:"defaultShell,omitempty" yaml:"defaultShell,omitempty" xml:"defaultShell,omitempty"`
}
ContainerConfig user type.
type GoaContainerConfig ¶
type GoaContainerConfig struct {
DefaultShell *string `form:"defaultShell,omitempty" json:"defaultShell,omitempty" yaml:"defaultShell,omitempty" xml:"defaultShell,omitempty"`
}
GoaContainerConfig media type (default view)
Identifier: vpn.application/goa.container.config; view=default
type GoaContainerCreateResults ¶
type GoaContainerCreateResults struct { // endpoint URL Endpoints []string `form:"endpoints" json:"endpoints" yaml:"endpoints" xml:"endpoints"` // container id ID int `form:"id" json:"id" yaml:"id" xml:"id"` }
The results of container creation (default view)
Identifier: vnd.application/goa.container.create.results+json; view=default
func (*GoaContainerCreateResults) Validate ¶
func (mt *GoaContainerCreateResults) Validate() (err error)
Validate validates the GoaContainerCreateResults media type instance.
type GoaContainerDownloadResult ¶
type GoaContainerDownloadResult struct {
File *multipart.FileHeader `form:"file,omitempty" json:"file,omitempty" yaml:"file,omitempty" xml:"file,omitempty"`
}
GoaContainerDownloadResult media type (default view)
Identifier: vpn.application/goa.container.download.result; view=default
type GoaContainerInspect ¶
type GoaContainerInspect struct { // The arguments to the command being run Args []string `form:"args" json:"args" yaml:"args" xml:"args"` // The time the container was created Created time.Time `form:"created" json:"created" yaml:"created" xml:"created"` // ID ID int `form:"id" json:"id" yaml:"id" xml:"id"` // The name of the image to use when creating the container Image string `form:"image" json:"image" yaml:"image" xml:"image"` // The container's image ID ImageID string `form:"imageID" json:"imageID" yaml:"imageID" xml:"imageID"` // Assign the specified name to the container. Must match /?[a-zA-Z0-9_-]+. Name string `form:"name" json:"name" yaml:"name" xml:"name"` // The path to the command being run Path string `form:"path" json:"path" yaml:"path" xml:"path"` RawState *GoaContainerInspectRawState `form:"raw_state" json:"raw_state" yaml:"raw_state" xml:"raw_state"` Status string `form:"status" json:"status" yaml:"status" xml:"status"` // Paths to mount volumes in Volumes []string `form:"volumes" json:"volumes" yaml:"volumes" xml:"volumes"` }
GoaContainerInspect media type (default view)
Identifier: vpn.application/goa.container.inspect; view=default
func (*GoaContainerInspect) Validate ¶
func (mt *GoaContainerInspect) Validate() (err error)
Validate validates the GoaContainerInspect media type instance.
type GoaContainerInspectRawState ¶
type GoaContainerInspectRawState struct { Dead bool `form:"dead" json:"dead" yaml:"dead" xml:"dead"` ExitCode int `form:"exitCode" json:"exitCode" yaml:"exitCode" xml:"exitCode"` FinishedAt time.Time `form:"finishedAt" json:"finishedAt" yaml:"finishedAt" xml:"finishedAt"` OomKilled bool `form:"oomKilled" json:"oomKilled" yaml:"oomKilled" xml:"oomKilled"` Paused bool `form:"paused" json:"paused" yaml:"paused" xml:"paused"` Pid int `form:"pid" json:"pid" yaml:"pid" xml:"pid"` Restarting bool `form:"restarting" json:"restarting" yaml:"restarting" xml:"restarting"` Running bool `form:"running" json:"running" yaml:"running" xml:"running"` StartedAt time.Time `form:"startedAt" json:"startedAt" yaml:"startedAt" xml:"startedAt"` Status string `form:"status" json:"status" yaml:"status" xml:"status"` }
GoaContainerInspectRaw_state media type (default view)
Identifier: vnd.application/goa.container.inspect.raw_state; view=default
func (*GoaContainerInspectRawState) Validate ¶
func (mt *GoaContainerInspectRawState) Validate() (err error)
Validate validates the GoaContainerInspectRawState media type instance.
type GoaContainerListEach ¶
type GoaContainerListEach struct { // Command to run when starting the container Command string `form:"command" json:"command" yaml:"command" xml:"command"` // The time the container was created Created time.Time `form:"created" json:"created" yaml:"created" xml:"created"` // ID ID int `form:"id" json:"id" yaml:"id" xml:"id"` // The name of the image to use when creating the container Image string `form:"image" json:"image" yaml:"image" xml:"image"` // The container's image ID ImageID string `form:"imageID" json:"imageID" yaml:"imageID" xml:"imageID"` // Assign the specified name to the container. Must match /?[a-zA-Z0-9_-]+. Name string `form:"name" json:"name" yaml:"name" xml:"name"` Status string `form:"status" json:"status" yaml:"status" xml:"status"` // Paths to mount volumes in Volumes []string `form:"volumes" json:"volumes" yaml:"volumes" xml:"volumes"` }
GoaContainerListEach media type (default view)
Identifier: vpn.application/goa.container.list.each; view=default
func (*GoaContainerListEach) Validate ¶
func (mt *GoaContainerListEach) Validate() (err error)
Validate validates the GoaContainerListEach media type instance.
type GoaContainerListEachCollection ¶
type GoaContainerListEachCollection []*GoaContainerListEach
GoaContainerListEachCollection is the media type for an array of GoaContainerListEach (default view)
Identifier: vpn.application/goa.container.list.each; type=collection; view=default
func (GoaContainerListEachCollection) Validate ¶
func (mt GoaContainerListEachCollection) Validate() (err error)
Validate validates the GoaContainerListEachCollection media type instance.
type GoaUserAuthorizedkey ¶
type GoaUserAuthorizedkey struct { Key string `form:"key" json:"key" yaml:"key" xml:"key"` Label string `form:"label" json:"label" yaml:"label" xml:"label"` }
GoaUserAuthorizedkey media type (default view)
Identifier: vpn.application/goa.user.authorizedkey; view=default
func (*GoaUserAuthorizedkey) Validate ¶
func (mt *GoaUserAuthorizedkey) Validate() (err error)
Validate validates the GoaUserAuthorizedkey media type instance.
type GoaUserAuthorizedkeyCollection ¶
type GoaUserAuthorizedkeyCollection []*GoaUserAuthorizedkey
GoaUserAuthorizedkeyCollection is the media type for an array of GoaUserAuthorizedkey (default view)
Identifier: vpn.application/goa.user.authorizedkey; type=collection; view=default
func (GoaUserAuthorizedkeyCollection) Validate ¶
func (mt GoaUserAuthorizedkeyCollection) Validate() (err error)
Validate validates the GoaUserAuthorizedkeyCollection media type instance.
type GoaUserConfig ¶
type GoaUserConfig struct { AuthorizedKeys GoaUserAuthorizedkeyCollection `form:"authorizedKeys" json:"authorizedKeys" yaml:"authorizedKeys" xml:"authorizedKeys"` DefaultShell string `form:"defaultShell" json:"defaultShell" yaml:"defaultShell" xml:"defaultShell"` }
GoaUserConfig media type (default view)
Identifier: vpn.application/goa.user.config; view=default
func (*GoaUserConfig) Validate ¶
func (mt *GoaUserConfig) Validate() (err error)
Validate validates the GoaUserConfig media type instance.
type GoaUserDefaultshell ¶
type GoaUserDefaultshell struct {
DefaultShell string `form:"defaultShell" json:"defaultShell" yaml:"defaultShell" xml:"defaultShell"`
}
GoaUserDefaultshell media type (default view)
Identifier: vpn.application/goa.user.defaultshell; view=default
func (*GoaUserDefaultshell) Validate ¶
func (mt *GoaUserDefaultshell) Validate() (err error)
Validate validates the GoaUserDefaultshell media type instance.
type SetAuthorizedKeysUserPayload ¶
type SetAuthorizedKeysUserPayload []*UserAuthorizedKey
SetAuthorizedKeysUserPayload is the user setAuthorizedKeys action payload.
type UploadPayload ¶
type UploadPayload struct { // Allow for a existing directory to be replaced by a file AllowOverwrite bool `form:"allowOverwrite" json:"allowOverwrite" yaml:"allowOverwrite" xml:"allowOverwrite"` // Copy all uid/gid information CopyUIDGID bool `form:"copyUIDGID" json:"copyUIDGID" yaml:"copyUIDGID" xml:"copyUIDGID"` // File tar archive Data string `form:"data" json:"data" yaml:"data" xml:"data"` // Path in the container to save files Path string `form:"path" json:"path" yaml:"path" xml:"path"` }
UploadPayload user type.
func (*UploadPayload) Validate ¶
func (ut *UploadPayload) Validate() (err error)
Validate validates the UploadPayload type instance.
type UserAuthorizedKey ¶
type UserAuthorizedKey struct { Key string `form:"key" json:"key" yaml:"key" xml:"key"` Label string `form:"label" json:"label" yaml:"label" xml:"label"` }
UserAuthorizedKey user type.
func (*UserAuthorizedKey) Validate ¶
func (ut *UserAuthorizedKey) Validate() (err error)
Validate validates the UserAuthorizedKey type instance.
type UserConfig ¶
type UserConfig struct { AuthorizedKeys []*UserAuthorizedKey `` /* 126-byte string literal not displayed */ DefaultShell *string `form:"defaultShell,omitempty" json:"defaultShell,omitempty" yaml:"defaultShell,omitempty" xml:"defaultShell,omitempty"` }
UserConfig user type.
func (*UserConfig) Validate ¶
func (ut *UserConfig) Validate() (err error)
Validate validates the UserConfig type instance.