notification

package
v0.0.0-...-e779149 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2023 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Secret              = "secrets"
	ConfigMap           = "configmaps"
	VerificationAPIPath = "/api/v2/verify"

	V2beta1 = "v2beta1"
	V2beta2 = "v2beta2"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	Config   v2beta2.Config   `json:"config"`
	Receiver v2beta2.Receiver `json:"receiver"`
}

type Operator

type Operator interface {
	ListV2beta1(user, resource, subresource string, query *query.Query) (*api.ListResult, error)
	GetV2beta1(user, resource, name, subresource string) (runtime.Object, error)
	CreateV2beta1(user, resource string, obj runtime.Object) (runtime.Object, error)
	DeleteV2beta1(user, resource, name string) error
	UpdateV2beta1(user, resource, name string, obj runtime.Object) (runtime.Object, error)

	List(user, resource, subresource string, query *query.Query) (*api.ListResult, error)
	Get(user, resource, name, subresource string) (runtime.Object, error)
	Create(user, resource string, obj runtime.Object) (runtime.Object, error)
	Delete(user, resource, name string) error
	Update(user, resource, name string, obj runtime.Object) (runtime.Object, error)
	Patch(user, resource, name string, data []byte) (runtime.Object, error)

	Verify(request *restful.Request, response *restful.Response)

	GetObject(resource, version string) runtime.Object
	IsKnownResource(resource, version, subresource string) bool
}

func NewOperator

func NewOperator(
	informers informers.InformerFactory,
	k8sClient kubernetes.Interface,
	ksClient kubesphere.Interface,
	options *notification.Options) Operator

type Result

type Result struct {
	Code    int    `json:"Status"`
	Message string `json:"Message"`
}

Jump to

Keyboard shortcuts

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