consulfunc

package
v0.0.0-...-9ce36fb Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateOrUpdateAuthMethod

func CreateOrUpdateAuthMethod(client *api.Client, am *api.ACLAuthMethod, opts *Options) (*api.ACLAuthMethod, error)

func CreateOrUpdateBindingRule

func CreateOrUpdateBindingRule(client *api.Client, rule *api.ACLBindingRule, opts *Options) (*api.ACLBindingRule, error)

func CreateOrUpdatePolicy

func CreateOrUpdatePolicy(client *api.Client, p *api.ACLPolicy, opts *Options) (*api.ACLPolicy, error)

func CreateOrUpdateToken

func CreateOrUpdateToken(client *api.Client, t *api.ACLToken, opts *Options) (*api.ACLToken, error)

func GetACLMode

func GetACLMode(client *api.Client, name string) (int, error)

unknown is "3"

func GetBindingRuleByDescription

func GetBindingRuleByDescription(client *api.Client, description string, opts *Options) (*api.ACLBindingRule, error)

func GetClient

func GetClient(ip, token string) (*api.Client, error)

func GetPolicyByName

func GetPolicyByName(client *api.Client, name string, opts *Options) (*api.ACLPolicy, error)

func GetTokenByDescription

func GetTokenByDescription(client *api.Client, description string, opts *Options) (*api.ACLToken, error)

func HasAllNodeUpdates

func HasAllNodeUpdates(nodes []*api.Node) bool

func ListAllConfigEntries

func ListAllConfigEntries(client *api.Client, enterprise bool) (map[ConfigKindName]api.ConfigEntry, error)

func ListAllNodes

func ListAllNodes(client *api.Client, dc string, enterprise bool) ([]*api.Node, error)

func ListAllNodesWithFilter

func ListAllNodesWithFilter(client *api.Client, dc string, enterprise bool, filter string) ([]*api.Node, error)

func ListAllServices

func ListAllServices(client *api.Client, enterprise bool) ([]util.Identifier, error)

func ListExistingBindingRuleIDsForAuthMethod

func ListExistingBindingRuleIDsForAuthMethod(client *api.Client, authMethod string, opts *Options) (map[string]string, error)

func ListExistingPoliciesByName

func ListExistingPoliciesByName(client *api.Client, opts *Options) (map[string]string, error)

func ListExistingTokenAccessorsByDescription

func ListExistingTokenAccessorsByDescription(client *api.Client, opts *Options) (map[string]string, error)

func ListNamespaceNames

func ListNamespaceNames(client *api.Client, partition string) ([]string, error)

func ListNamespaces

func ListNamespaces(client *api.Client, partition string) ([]*api.Namespace, error)

func ListPartitionNames

func ListPartitionNames(client *api.Client) ([]string, error)

func ListPartitions

func ListPartitions(client *api.Client) ([]*api.Partition, error)

func PartitionQueryOptionsList

func PartitionQueryOptionsList(client *api.Client, enterprise bool) ([]*api.QueryOptions, error)

func TenantQueryOptionsList

func TenantQueryOptionsList(client *api.Client, enterprise bool) ([]*api.QueryOptions, error)

Types

type ConfigKindName

type ConfigKindName struct {
	Kind      string
	Name      string
	Namespace string
	Partition string
}

type Options

type Options struct {
	Partition string
	Namespace string
}

func (*Options) Read

func (o *Options) Read() *api.QueryOptions

func (*Options) Write

func (o *Options) Write() *api.WriteOptions

Jump to

Keyboard shortcuts

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