security

package
v1.19.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2026 License: MIT Imports: 2 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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 CommandAclRequest struct {
	Token     string `json:"token"`
	Command   string `json:"command"`
	Username  string `json:"username,omitempty"`
	Groupname string `json:"groupname,omitempty"`
}

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 FileAclRequest struct {
	Token     string `json:"token"`
	Path      string `json:"path"`
	Action    string `json:"action"`
	Username  string `json:"username,omitempty"`
	Groupname string `json:"groupname,omitempty"`
}

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 ServerAclBulkRequest struct {
	Token   string   `json:"token"`
	Servers []string `json:"servers"` // server UUIDs
}

type ServerAclRequest added in v1.4.4

type ServerAclRequest struct {
	Token  string `json:"token"`
	Server string `json:"server"` // server UUID
}

Jump to

Keyboard shortcuts

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