v1

package
v0.0.0-...-b6b0985 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package v1 has client method used to deal with iam resources.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthzExpansion

type AuthzExpansion interface{}

The AuthzExpansion interface allows manually adding extra methods to the AuthzInterface.

type AuthzGetter

type AuthzGetter interface {
	Authz() AuthzInterface
}

AuthzGetter has a method to return a AuthzInterface. A group's client should implement this interface.

type AuthzInterface

type AuthzInterface interface {
	Authorize(ctx context.Context, request *ladon.Request, opts metav1.AuthorizeOptions) (*authzv1.Response, error)
	AuthzExpansion
}

AuthzInterface has methods to work with Authz resources.

type AuthzV1Client

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

AuthzV1Client is used to interact with features provided by the group.

func New

New creates a new AuthzV1Client for the given RESTClient.

func NewForConfig

func NewForConfig(c *rest.Config) (*AuthzV1Client, error)

NewForConfig creates a new AuthzV1Client for the given config.

func NewForConfigOrDie

func NewForConfigOrDie(c *rest.Config) *AuthzV1Client

NewForConfigOrDie creates a new AuthzV1Client for the given config and panics if there is an error in the config.

func (*AuthzV1Client) Authz

func (c *AuthzV1Client) Authz() AuthzInterface

Authz create and return authz rest client.

func (*AuthzV1Client) RESTClient

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

RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.

type AuthzV1Interface

type AuthzV1Interface interface {
	RESTClient() rest.Interface
	AuthzGetter
}

AuthzV1Interface has methods to work with iam resources.

Jump to

Keyboard shortcuts

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