admission

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2023 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

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

API is a reviewer that handle API.

func NewAPI

func NewAPI(client apiService) *API

NewAPI returns a new API reviewer.

func (*API) CanReview

func (a *API) CanReview(req *admv1.AdmissionRequest) bool

CanReview returns true if the reviewer can review the admission request.

func (*API) Review

func (a *API) Review(ctx context.Context, req *admv1.AdmissionRequest) ([]byte, error)

Review reviews the admission request.

type Access

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

Access is a reviewer that handle APIAccess.

func NewAccess

func NewAccess(client accessService) *Access

NewAccess returns a new APIAccess reviewer.

func (*Access) CanReview

func (a *Access) CanReview(req *admv1.AdmissionRequest) bool

CanReview returns true if the reviewer can review the admission request.

func (*Access) Review

func (a *Access) Review(ctx context.Context, req *admv1.AdmissionRequest) ([]byte, error)

Review reviews the admission request.

type Collection

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

Collection is a reviewer that handle Collection.

func NewCollection

func NewCollection(client collectionService) *Collection

NewCollection returns a new Collection reviewer.

func (*Collection) CanReview

func (c *Collection) CanReview(req *admv1.AdmissionRequest) bool

CanReview returns true if the reviewer can review the admission request.

func (*Collection) Review

func (c *Collection) Review(ctx context.Context, req *admv1.AdmissionRequest) ([]byte, error)

Review reviews the admission request.

type Gateway

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

Gateway is a reviewer that handle APIGateway.

func NewGateway

func NewGateway(client gatewayService) *Gateway

NewGateway returns a new Gateway.

func (*Gateway) CanReview

func (g *Gateway) CanReview(req *admv1.AdmissionRequest) bool

CanReview returns true if the reviewer can review the admission request.

func (*Gateway) Review

func (g *Gateway) Review(ctx context.Context, req *admv1.AdmissionRequest) ([]byte, error)

Review reviews the admission request.

type Portal

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

Portal is a reviewer that handle APIPortal.

func NewPortal

func NewPortal(client portalService) *Portal

NewPortal returns a new Portal.

func (*Portal) CanReview

func (p *Portal) CanReview(req *admv1.AdmissionRequest) bool

CanReview returns true if the reviewer can review the admission request.

func (*Portal) Review

func (p *Portal) Review(ctx context.Context, req *admv1.AdmissionRequest) ([]byte, error)

Review reviews the admission request.

Jump to

Keyboard shortcuts

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