common

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultAPIVersion = "v2"

Variables

This section is empty.

Functions

This section is empty.

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

Directories

Path Synopsis
rsa

Jump to

Keyboard shortcuts

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