migrate

package
v0.0.0-...-d568a5a Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2021 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Version = "0.0.1"
)

Variables

This section is empty.

Functions

func Import

func Import(client *api.Client, data *Data) error

Types

type ACLData

type ACLData struct {
	// ACLPolicies is a mapping of the policy id to the policy definition
	ACLPolicies map[string]api.ACLPolicy `json:"acl_policies,omitempty"`
	// ACLRoles is a mapping of the role id to the role definition
	ACLRoles map[string]api.ACLRole `json:"acl_roles,omitempty"`
	// ACLTokens is a map of accessor id to acl token definition
	ACLTokens map[string]api.ACLToken `json:"acl_tokens,omitempty"`
}

type Data

type Data struct {
	Enterprise bool                     `json:"enterprise,omitempty"`
	Namespaces map[string]NamespaceData `json:"namespaces,omitempty"`
	ACLData
}

func Export

func Export(client *api.Client) (*Data, error)

type NamespaceData

type NamespaceData struct {
	Definition api.Namespace `json:"definition"`
	ACLData
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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