client

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: May 26, 2024 License: 0BSD Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var APIClient *http.Client

Functions

func AcceptKey added in v0.0.5

func AcceptKey(id string) (bool, error)

func Cook added in v0.0.4

func Cook(target string, cmdCook types.CmdCook) (types.CmdCook, error)

func CreateSecureTransport added in v0.0.5

func CreateSecureTransport() error

func DeleteKey added in v0.0.5

func DeleteKey(id string) (bool, error)

func DenyKey added in v0.0.5

func DenyKey(id string) (bool, error)

func GetVersion

func GetVersion() (types.Version, error)

func ListKeys added in v0.0.5

func ListKeys() (types.KeysByType, error)

func NewNatsClient added in v0.0.4

func NewNatsClient() (*nats.Conn, error)

func RejectKey added in v0.0.5

func RejectKey(id string) (bool, error)

func ResolveTargets added in v0.0.5

func ResolveTargets(target string) ([]string, error)

Target matching behavior is as follows: If the target string contains commas, it's considered to be a literal list Otherwise, the target string will be treated as a regular expression with an implicit '^' prepended and '$' appended. To avoid RegExp matching, use a trailing or preceding comma in the target.

func UnacceptKey added in v0.0.5

func UnacceptKey(id string) (bool, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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