service

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SafeGuardAnnotationProtected = "safeguard.jw-s.com/protected"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Client *rest.Config
}

type ProtectedResourceService

type ProtectedResourceService interface {
	IsProtected(ctx context.Context, name, namespace string, gvr v1.GroupVersionResource) (bool, error)
}

func NewProtectedResourceService

func NewProtectedResourceService(cfg *Config) ProtectedResourceService

Jump to

Keyboard shortcuts

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