Documentation ¶
Index ¶
- func CreateEndpoint(keyProvider provider.SSHKeyProvider, ...) endpoint.Endpoint
- func DecodeCreateReq(c context.Context, r *http.Request) (interface{}, error)
- func DecodeDeleteReq(c context.Context, r *http.Request) (interface{}, error)
- func DecodeListReq(c context.Context, r *http.Request) (interface{}, error)
- func DeleteEndpoint(keyProvider provider.SSHKeyProvider, ...) endpoint.Endpoint
- func ListEndpoint(keyProvider provider.SSHKeyProvider, projectProvider provider.ProjectProvider, ...) endpoint.Endpoint
- type CreateReq
- type DeleteReq
- type ListReq
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateEndpoint ¶
func CreateEndpoint(keyProvider provider.SSHKeyProvider, privilegedSSHKeyProvider provider.PrivilegedSSHKeyProvider, projectProvider provider.ProjectProvider, privilegedProjectProvider provider.PrivilegedProjectProvider, userInfoGetter provider.UserInfoGetter) endpoint.Endpoint
func DecodeCreateReq ¶
func DecodeDeleteReq ¶
func DeleteEndpoint ¶
func DeleteEndpoint(keyProvider provider.SSHKeyProvider, privilegedSSHKeyProvider provider.PrivilegedSSHKeyProvider, projectProvider provider.ProjectProvider, privilegedProjectProvider provider.PrivilegedProjectProvider, userInfoGetter provider.UserInfoGetter) endpoint.Endpoint
func ListEndpoint ¶
func ListEndpoint(keyProvider provider.SSHKeyProvider, projectProvider provider.ProjectProvider, privilegedProjectProvider provider.PrivilegedProjectProvider, userInfoGetter provider.UserInfoGetter) endpoint.Endpoint
Types ¶
type CreateReq ¶
type CreateReq struct { common.ProjectReq // in: body Key apiv1.SSHKey }
CreateReq represent a request for specific data to create a new SSH key swagger:parameters createSSHKey
type DeleteReq ¶
type DeleteReq struct { common.ProjectReq // in: path SSHKeyID string `json:"key_id"` }
DeleteReq defines HTTP request for deleteSSHKey endpoint swagger:parameters deleteSSHKey
type ListReq ¶
type ListReq struct {
common.ProjectReq
}
ListReq defined HTTP request for listSHHKeys endpoint swagger:parameters listSSHKeys
Click to show internal directories.
Click to hide internal directories.