Documentation ¶
Index ¶
- func CopyToAuthentication(key, rootNamespace string, pa *apiV1beta1.AuthenticationPolicy) *authentication.Policy
- func CopyToAuthorization(key, rootNamespace string, pa *apiV1beta1.AuthorizationPolicy) *authorization.Policy
- type Client
- type ClientImpl
- func (c *ClientImpl) GetAuthorityCert(namespace string) (string, string)
- func (c *ClientImpl) GetKubClient() *kubernetes.Clientset
- func (c *ClientImpl) GetNamespaceLabels(namespace string) map[string]string
- func (c *ClientImpl) Init(options *config.Options) bool
- func (c *ClientImpl) InitController(authenticationHandler authentication.Handler, ...)
- func (c *ClientImpl) UpdateAuthorityCert(cert string, pri string, namespace string)
- func (c *ClientImpl) UpdateAuthorityPublicKey(cert string) bool
- func (c *ClientImpl) UpdateWebhookConfig(options *config.Options, storage cert.Storage)
- func (c *ClientImpl) VerifyServiceAccount(token string, authorizationType string) (*rule.Endpoint, bool)
- type Controller
- type NotificationType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyToAuthentication ¶
func CopyToAuthentication(key, rootNamespace string, pa *apiV1beta1.AuthenticationPolicy) *authentication.Policy
func CopyToAuthorization ¶
func CopyToAuthorization(key, rootNamespace string, pa *apiV1beta1.AuthorizationPolicy) *authorization.Policy
Types ¶
type Client ¶
type Client interface { Init(options *config.Options) bool GetAuthorityCert(namespace string) (string, string) UpdateAuthorityCert(cert string, pri string, namespace string) UpdateAuthorityPublicKey(cert string) bool VerifyServiceAccount(token string, authorizationType string) (*rule.Endpoint, bool) UpdateWebhookConfig(options *config.Options, storage cert.Storage) GetNamespaceLabels(namespace string) map[string]string InitController(paHandler authentication.Handler, apHandler authorization.Handler) GetKubClient() *kubernetes.Clientset }
type ClientImpl ¶
type ClientImpl struct {
// contains filtered or unexported fields
}
func (*ClientImpl) GetAuthorityCert ¶
func (c *ClientImpl) GetAuthorityCert(namespace string) (string, string)
func (*ClientImpl) GetKubClient ¶
func (c *ClientImpl) GetKubClient() *kubernetes.Clientset
func (*ClientImpl) GetNamespaceLabels ¶
func (c *ClientImpl) GetNamespaceLabels(namespace string) map[string]string
func (*ClientImpl) InitController ¶
func (c *ClientImpl) InitController( authenticationHandler authentication.Handler, authorizationHandler authorization.Handler, )
func (*ClientImpl) UpdateAuthorityCert ¶
func (c *ClientImpl) UpdateAuthorityCert(cert string, pri string, namespace string)
func (*ClientImpl) UpdateAuthorityPublicKey ¶
func (c *ClientImpl) UpdateAuthorityPublicKey(cert string) bool
func (*ClientImpl) UpdateWebhookConfig ¶
func (c *ClientImpl) UpdateWebhookConfig(options *config.Options, storage cert.Storage)
func (*ClientImpl) VerifyServiceAccount ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller is the controller implementation for Foo resources
func NewController ¶
func NewController( clientSet clientSet.Interface, rootNamespace string, authenticationHandler authentication.Handler, authorizationHandler authorization.Handler, acInformer informerV1beta1.AuthenticationPolicyInformer, apInformer informerV1beta1.AuthorizationPolicyInformer, ) *Controller
NewController returns a new sample controller
func (*Controller) WaitSynced ¶
func (c *Controller) WaitSynced()
type NotificationType ¶
type NotificationType int
const ( // AddNotification is a notification type for add events. AddNotification NotificationType = iota // UpdateNotification is a notification type for update events. UpdateNotification // DeleteNotification is a notification type for delete events. DeleteNotification )
Click to show internal directories.
Click to hide internal directories.