rabbit

package
v1.0.11584-02b1501 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(baseURL, username string, password secret.String) *Client

func (*Client) DeleteVHost

func (c *Client) DeleteVHost(ctx context.Context, name string) error

func (*Client) ListVHosts

func (c *Client) ListVHosts(ctx context.Context) (info []VHostInfo, err error)

func (*Client) PutVHost

func (c *Client) PutVHost(ctx context.Context, name string, settings VHostSettings) error

func (*Client) UpdatePermissionsIn

func (c *Client) UpdatePermissionsIn(ctx context.Context, vhost, username string, p Permissions) error

type Permissions

type Permissions struct {
	Configure string `json:"configure"`
	Write     string `json:"write"`
	Read      string `json:"read"`
}

type VHostInfo

type VHostInfo struct {
	Name        string `json:"name"`
	Description string `json:"description"`
}

type VHostSettings

type VHostSettings struct {
	Description string   `json:"description"`
	Tags        []string `json:"tags"`
	Tracing     bool     `json:"tracing"`
}

Jump to

Keyboard shortcuts

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