security

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCommandAcl

func AddCommandAcl(ac *client.AlpaconClient, request CommandAclRequest) error

func DeleteCommandAcl

func DeleteCommandAcl(ac *client.AlpaconClient, commandAclId string) error

Types

type CommandAclRequest

type CommandAclRequest struct {
	Token   string `json:"token"`
	Command string `json:"command"`
}

type CommandAclResponse

type CommandAclResponse struct {
	Id        string `json:"id"`
	Token     string `json:"token"`
	TokenName string `json:"token_name"`
	Command   string `json:"command"`
}

func GetCommandAclList

func GetCommandAclList(ac *client.AlpaconClient, tokenId string) ([]CommandAclResponse, error)

Jump to

Keyboard shortcuts

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