Documentation
¶
Index ¶
- Constants
- type AuthorizationRoleBindingInterface
- type AuthorizationRoleBindingsGetter
- type AuthorizationRoleInterface
- type AuthorizationRolesGetter
- type AuthorizationRuleInterface
- type AuthorizationRulesGetter
- type Client
- func (c *Client) AuthorizationRoleBindings(organizationID string) AuthorizationRoleBindingInterface
- func (c *Client) AuthorizationRoles(organizationID string) AuthorizationRoleInterface
- func (c *Client) AuthorizationRules(organizationID string) AuthorizationRuleInterface
- func (c *Client) Login(method string) LoginInterface
- func (c *Client) RESTClient() rest.Interface
- type Interface
- type LoginGetter
- type LoginInterface
Constants ¶
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 (*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 ¶
RESTClient returns the REST client associated with this client
type Interface ¶
type Interface interface { RESTClient() rest.Interface AuthorizationRolesGetter AuthorizationRulesGetter AuthorizationRoleBindingsGetter LoginGetter }
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