cli

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2016 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientHandler

type ClientHandler struct {
	Config *config.Config
	M      *client.HTTPManager
}

func (*ClientHandler) CreateClient

func (h *ClientHandler) CreateClient(cmd *cobra.Command, args []string)

func (*ClientHandler) DeleteClient

func (h *ClientHandler) DeleteClient(cmd *cobra.Command, args []string)

func (*ClientHandler) ImportClients

func (h *ClientHandler) ImportClients(cmd *cobra.Command, args []string)

type ConnectionHandler

type ConnectionHandler struct {
	Config *config.Config
	M      *connection.HTTPManager
}

func (*ConnectionHandler) CreateConnection

func (h *ConnectionHandler) CreateConnection(cmd *cobra.Command, args []string)

func (*ConnectionHandler) DeleteConnection

func (h *ConnectionHandler) DeleteConnection(cmd *cobra.Command, args []string)

type Handler

type Handler struct {
	Clients     *ClientHandler
	Connections *ConnectionHandler
	Policies    *PolicyHandler
	Keys        *JWKHandler
	Warden      *WardenHandler
}

func NewHandler

func NewHandler(c *config.Config) *Handler

type JWKHandler

type JWKHandler struct {
	Config *config.Config
	M      *jwk.HTTPManager
}

func (*JWKHandler) CreateKeys

func (h *JWKHandler) CreateKeys(cmd *cobra.Command, args []string)

func (*JWKHandler) DeleteKeys

func (h *JWKHandler) DeleteKeys(cmd *cobra.Command, args []string)

func (*JWKHandler) GetKeys

func (h *JWKHandler) GetKeys(cmd *cobra.Command, args []string)

type PolicyHandler

type PolicyHandler struct {
	Config *config.Config
	M      *policy.HTTPManager
}

func (*PolicyHandler) AddActionToPolicy

func (h *PolicyHandler) AddActionToPolicy(cmd *cobra.Command, args []string)

func (*PolicyHandler) AddResourceToPolicy

func (h *PolicyHandler) AddResourceToPolicy(cmd *cobra.Command, args []string)

func (*PolicyHandler) AddSubjectToPolicy

func (h *PolicyHandler) AddSubjectToPolicy(cmd *cobra.Command, args []string)

func (*PolicyHandler) CreatePolicy

func (h *PolicyHandler) CreatePolicy(cmd *cobra.Command, args []string)

func (*PolicyHandler) DeletePolicy

func (h *PolicyHandler) DeletePolicy(cmd *cobra.Command, args []string)

func (*PolicyHandler) GetPolicy

func (h *PolicyHandler) GetPolicy(cmd *cobra.Command, args []string)

func (*PolicyHandler) RemoveActionFromPolicy

func (h *PolicyHandler) RemoveActionFromPolicy(cmd *cobra.Command, args []string)

func (*PolicyHandler) RemoveResourceFromPolicy

func (h *PolicyHandler) RemoveResourceFromPolicy(cmd *cobra.Command, args []string)

func (*PolicyHandler) RemoveSubjectFromPolicy

func (h *PolicyHandler) RemoveSubjectFromPolicy(cmd *cobra.Command, args []string)

type WardenHandler

type WardenHandler struct {
	Config *config.Config
	M      *warden.HTTPWarden
}

func (*WardenHandler) IsAuthorized

func (h *WardenHandler) IsAuthorized(cmd *cobra.Command, args []string)

Jump to

Keyboard shortcuts

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