auth

package
v0.0.0-...-237ed90 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const AuthMethodEmail = "email"

AuthMethodEmail is the method type for email authentication

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthorizationRoleBindingInterface

type AuthorizationRoleBindingInterface interface {
	Get(id string) (*types.AuthorizationRoleBinding, error)
	Delete(id string) error
	List() ([]types.AuthorizationRoleBinding, error)
	ListForRole(roleID string) ([]types.AuthorizationRoleBinding, error)
	ListForCluster(clusterID string) ([]types.AuthorizationRoleBinding, error)
}

AuthorizationRoleBindingInterface is the interface for authorization role bindings

type AuthorizationRoleBindingsGetter

type AuthorizationRoleBindingsGetter interface {
	AuthorizationRoleBindings(organizationID string) AuthorizationRoleBindingInterface
}

AuthorizationRoleBindingsGetter is the getter for authorization role bindings

type AuthorizationRoleInterface

type AuthorizationRoleInterface interface {
	Get(id string) (*types.AuthorizationRole, error)
	Delete(id string) error
	List() ([]types.AuthorizationRole, error)
	KubernetesClusterRBAC(clusterID string) ([]types.AuthorizationRole, error)
}

AuthorizationRoleInterface is the interface for authorization roles

type AuthorizationRolesGetter

type AuthorizationRolesGetter interface {
	AuthorizationRoles(organizationID string) AuthorizationRoleInterface
}

AuthorizationRolesGetter is the getter for authorization roles

type AuthorizationRuleInterface

type AuthorizationRuleInterface interface {
	Get(id string) (*types.AuthorizationRule, error)
	Delete(id string) error
	List() ([]types.AuthorizationRule, error)
	ListForRole(roleID string) ([]types.AuthorizationRule, error)
}

AuthorizationRuleInterface is the interface for authorization rules

type AuthorizationRulesGetter

type AuthorizationRulesGetter interface {
	AuthorizationRules(organizationID string) AuthorizationRuleInterface
}

AuthorizationRulesGetter is the getter for authorization rules

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client is the Auth client

func New

func New(cfg rest.Config) (*Client, error)

New constructs a new API client

func (*Client) AuthorizationRoleBindings

func (c *Client) AuthorizationRoleBindings(organizationID string) AuthorizationRoleBindingInterface

AuthorizationRoleBindings returns the authorization role binding interface

func (*Client) AuthorizationRoles

func (c *Client) AuthorizationRoles(organizationID string) AuthorizationRoleInterface

AuthorizationRoles returns the authorization roles interface

func (*Client) AuthorizationRules

func (c *Client) AuthorizationRules(organizationID string) AuthorizationRuleInterface

AuthorizationRules returns the authorization rules interface

func (*Client) Login

func (c *Client) Login(method string) LoginInterface

Login returns the login interface

func (*Client) RESTClient

func (c *Client) RESTClient() rest.Interface

RESTClient returns the REST client associated with this client

type Interface

Interface is the interface for Auth

type LoginGetter

type LoginGetter interface {
	Login(method string) LoginInterface
}

LoginGetter is the getter for login

type LoginInterface

type LoginInterface interface {
	Post(*types.LoginRequest) (*types.AccountToken, error)
}

LoginInterface is the interface for login

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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