Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIProvider ¶
type InCluster ¶
type InCluster struct { KubeAPI // contains filtered or unexported fields }
func (*InCluster) CheckAdmin ¶
func (*InCluster) CreateTokenReview ¶
func (c *InCluster) CreateTokenReview(ctx context.Context, tr *authv1.TokenReview, opts *metav1.CreateOptions) (*authv1.TokenReview, error)
type KubeAPI ¶
type KubeAPI interface { CreateTokenReview(ctx context.Context, tr *authv1.TokenReview, opts *metav1.CreateOptions) (*authv1.TokenReview, error) CheckAdmin(ctx context.Context, token string) error }
Interface for mocking
func NewInCluster ¶
Click to show internal directories.
Click to hide internal directories.