union_interface

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IngressBackend

type IngressBackend struct {
	ServiceName string
	ServicePort int
}

type IngressInterface

type IngressInterface interface {
	Create(ctx context.Context, ingress interface{}, opts v1.CreateOptions) (interface{}, error)
	Update(ctx context.Context, ingress interface{}, opts v1.UpdateOptions) (interface{}, error)
	UpdateStatus(ctx context.Context, ingress interface{}, opts v1.UpdateOptions) (interface{}, error)
	Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
	DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
	Get(ctx context.Context, name string, opts v1.GetOptions) (interface{}, error)
	List(ctx context.Context, opts v1.ListOptions) (interface{}, error)
	Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
	Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result interface{}, err error)
	Apply(ctx context.Context, ingress interface{}, opts v1.ApplyOptions) (result interface{}, err error)
	ApplyStatus(ctx context.Context, ingress interface{}, opts v1.ApplyOptions) (result interface{}, err error)
}

type IngressMaterial

type IngressMaterial struct {
	Name      string
	Namespace string
	Routes    []IngressRoute
	Backend   IngressBackend
	NeedTLS   bool
}

type IngressRoute

type IngressRoute struct {
	Domain    string
	Path      string
	MatchType MatchType
}

type IngressesHelper

type IngressesHelper interface {
	Ingresses(namespace string) IngressInterface
	NewIngress(IngressMaterial) interface{}
	IngressAnnotationBatchSet(ingress interface{}, kvs map[string]string) error
	IngressAnnotationSet(ingress interface{}, key, value string) error
	IngressAnnotationBatchGet(ingress interface{}) (map[string]string, error)
	IngressAnnotationGet(ingress interface{}, key string) (string, error)
	IngressAnnotationClear(ingress interface{}, key string) error
}

type MatchType

type MatchType int
const (
	PrefixMatch MatchType = 0
	ExactMatch  MatchType = 1
)

Jump to

Keyboard shortcuts

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