Documentation
¶
Index ¶
- Constants
- func AddCommandAcl(ac *client.AlpaconClient, request CommandAclRequest) error
- func AddFileAcl(ac *client.AlpaconClient, request FileAclRequest) error
- func AddServerAcl(ac *client.AlpaconClient, request ServerAclRequest) error
- func BulkAddServerAcl(ac *client.AlpaconClient, request ServerAclBulkRequest) error
- func BulkDeleteServerAcl(ac *client.AlpaconClient, request ServerAclBulkRequest) error
- func DeleteCommandAcl(ac *client.AlpaconClient, commandAclId string) error
- func DeleteFileAcl(ac *client.AlpaconClient, fileAclID string) error
- func DeleteServerAcl(ac *client.AlpaconClient, serverAclID string) error
- type CommandAclRequest
- type CommandAclResponse
- type FileAclRequest
- type FileAclResponse
- type ServerAclAttributes
- type ServerAclBulkRequest
- type ServerAclRequest
Constants ¶
View Source
const ( FileAclActionUpload = "upload" FileAclActionDownload = "download" FileAclActionAll = "*" )
Variables ¶
This section is empty.
Functions ¶
func AddCommandAcl ¶
func AddCommandAcl(ac *client.AlpaconClient, request CommandAclRequest) error
func AddFileAcl ¶ added in v1.4.4
func AddFileAcl(ac *client.AlpaconClient, request FileAclRequest) error
func AddServerAcl ¶ added in v1.4.4
func AddServerAcl(ac *client.AlpaconClient, request ServerAclRequest) error
func BulkAddServerAcl ¶ added in v1.4.4
func BulkAddServerAcl(ac *client.AlpaconClient, request ServerAclBulkRequest) error
func BulkDeleteServerAcl ¶ added in v1.4.4
func BulkDeleteServerAcl(ac *client.AlpaconClient, request ServerAclBulkRequest) error
func DeleteCommandAcl ¶
func DeleteCommandAcl(ac *client.AlpaconClient, commandAclId string) error
func DeleteFileAcl ¶ added in v1.4.4
func DeleteFileAcl(ac *client.AlpaconClient, fileAclID string) error
func DeleteServerAcl ¶ added in v1.4.4
func DeleteServerAcl(ac *client.AlpaconClient, serverAclID string) error
Types ¶
type CommandAclRequest ¶
type CommandAclResponse ¶
type CommandAclResponse struct {
ID string `json:"id" table:"ID"`
TokenName string `json:"token_name" table:"Token"`
Command string `json:"command" table:"Command"`
Username string `json:"username" table:"Username"`
Groupname string `json:"groupname" table:"Groupname"`
}
func GetCommandAclList ¶
func GetCommandAclList(ac *client.AlpaconClient, tokenID string) ([]CommandAclResponse, error)
type FileAclRequest ¶ added in v1.4.4
type FileAclResponse ¶ added in v1.4.4
type FileAclResponse struct {
ID string `json:"id" table:"ID"`
TokenName string `json:"token_name" table:"Token"`
Path string `json:"path" table:"Path"`
Action string `json:"action" table:"Action"`
Username string `json:"username" table:"Username"`
Groupname string `json:"groupname" table:"Groupname"`
}
func GetFileAclList ¶ added in v1.4.4
func GetFileAclList(ac *client.AlpaconClient, tokenID string) ([]FileAclResponse, error)
type ServerAclAttributes ¶ added in v1.4.4
type ServerAclAttributes struct {
ID string `json:"id" table:"ID"`
TokenName string `json:"token_name" table:"Token"`
ServerName string `json:"server_name" table:"Server"`
}
ServerAclAttributes is the flat projection used for table output.
func GetServerAclList ¶ added in v1.4.4
func GetServerAclList(ac *client.AlpaconClient, tokenID string) ([]ServerAclAttributes, error)
type ServerAclBulkRequest ¶ added in v1.4.4
type ServerAclRequest ¶ added in v1.4.4
Click to show internal directories.
Click to hide internal directories.