conv

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AllSubsetPublic = "AllSubsetPublic"
	ResourceAll     = "*"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type InternalSpec

type InternalSpec struct {
	*proto.ProxySpec
	// contains filtered or unexported fields
}

func ConvertProtoSpecToInternal

func ConvertProtoSpecToInternal(protoSpec *proto.ProxySpec) *InternalSpec

func (*InternalSpec) GetMatchedSubsetEndpoint

func (is *InternalSpec) GetMatchedSubsetEndpoint(ns string, gr schema.GroupResource) (ignore bool, self bool, hosts []string)

func (*InternalSpec) GetObjectSelector

func (is *InternalSpec) GetObjectSelector(gr schema.GroupResource) (sel *metav1.LabelSelector)

type ResourceRequest

type ResourceRequest struct {
	GR             schema.GroupResource  `json:"GR,omitempty"`
	ObjectSelector *metav1.LabelSelector `json:"objectSelector,omitempty"`
}

Jump to

Keyboard shortcuts

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