common

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultAPIVersion = "v2"
View Source
const UnknownErrorReason = "Unknown pulsar error"

Variables

This section is empty.

Functions

func IsAdminError

func IsAdminError(err error) bool

Types

type APIVersion

type APIVersion int
const (
	V1 APIVersion = iota
	V2
	V3
)

func (APIVersion) String

func (v APIVersion) String() string

type AuthAction

type AuthAction string

func ParseAuthAction

func ParseAuthAction(action string) (AuthAction, error)

func (AuthAction) String

func (a AuthAction) String() string

type AuthPolicies

type AuthPolicies struct {
	NamespaceAuth         map[string]AuthAction            `json:"namespace_auth"`
	DestinationAuth       map[string]map[string]AuthAction `json:"destination_auth"`
	SubscriptionAuthRoles map[string][]string              `json:"subscription_auth_roles"`
}

func NewAuthPolicies

func NewAuthPolicies() *AuthPolicies

type Error

type Error struct {
	Reason string `json:"reason"`
	Code   int
}

func (Error) Error

func (e Error) Error() string

Jump to

Keyboard shortcuts

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