permissions

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(client *golangsdk.ServiceClient, instanceId string, opts []CreateOpts) error

Types

type CreateOpts

type CreateOpts struct {
	Name     string         `json:"name" required:"true"`
	Policies []CreatePolicy `json:"policies" required:"true"`
}

type CreatePolicy

type CreatePolicy struct {
	UserName     string `json:"user_name,omitempty"`
	AccessPolicy string `json:"access_policy,omitempty"`
}

type Permissions

type Permissions struct {
	Name      string   `json:"name"`
	TopicType int      `json:"topic_type"`
	Policies  []Policy `json:"policies"`
}

func List

func List(client *golangsdk.ServiceClient, instanceId, topicName string) (*Permissions, error)

type Policy

type Policy struct {
	Owner        bool   `json:"owner"`
	UserName     string `json:"user_name"`
	AccessPolicy string `json:"access_policy"`
}

Jump to

Keyboard shortcuts

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