Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAuthorizer

NewAuthorizer creates an authorizer compatible with the kubelet's needs

Types

type Config

type Config struct {
	ResourceAttributes     *ResourceAttributes
	ResourceAttributesFile string
}

Config holds configuration enabling request authorization

type ResourceAttributes

type ResourceAttributes struct {
	Namespace   string `json:"namespace,omitempty"`
	APIGroup    string `json:"apiGroup,omitempty"`
	APIVersion  string `json:"apiVersion,omitempty"`
	Resource    string `json:"resource,omitempty"`
	Subresource string `json:"subresource,omitempty"`
	Name        string `json:"name,omitempty"`
}

ResourceAttributes describes attributes available for resource request authorization

Source Files