resourcepb

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Operator_name = map[int32]string{
		0: "Equals",
		1: "DoubleEquals",
		2: "NotEquals",
		3: "In",
		4: "NotIn",
		5: "Exists",
		6: "DoesNotExist",
		7: "GreaterThan",
		8: "LessThan",
	}
	Operator_value = map[string]int32{
		"Equals":       0,
		"DoubleEquals": 1,
		"NotEquals":    2,
		"In":           3,
		"NotIn":        4,
		"Exists":       5,
		"DoesNotExist": 6,
		"GreaterThan":  7,
		"LessThan":     8,
	}
)

Enum value maps for Operator.

View Source
var (
	Watch_EventType_name = map[int32]string{
		0: "ERROR",
		1: "ADDED",
		2: "MODIFIED",
		3: "DELETED",
		4: "BOOKMARK",
	}
	Watch_EventType_value = map[string]int32{
		"ERROR":    0,
		"ADDED":    1,
		"MODIFIED": 2,
		"DELETED":  3,
		"BOOKMARK": 4,
	}
)

Enum value maps for Watch_EventType.

View Source
var File_resource_proto protoreflect.FileDescriptor
View Source
var Resource_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "resourcepb.Resource",
	HandlerType: (*ResourceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Get",
			Handler:    _Resource_Get_Handler,
		},
		{
			MethodName: "List",
			Handler:    _Resource_List_Handler,
		},
		{
			MethodName: "Create",
			Handler:    _Resource_Create_Handler,
		},
		{
			MethodName: "Update",
			Handler:    _Resource_Update_Handler,
		},
		{
			MethodName: "Apply",
			Handler:    _Resource_Apply_Handler,
		},
		{
			MethodName: "Delete",
			Handler:    _Resource_Delete_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "Watch",
			Handler:       _Resource_Watch_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "resource.proto",
}

Resource_ServiceDesc is the grpc.ServiceDesc for Resource service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterResourceServer

func RegisterResourceServer(s grpc.ServiceRegistrar, srv ResourceServer)

Types

type Apply

type Apply struct {
	// contains filtered or unexported fields
}

func (*Apply) Descriptor deprecated

func (*Apply) Descriptor() ([]byte, []int)

Deprecated: Use Apply.ProtoReflect.Descriptor instead.

func (*Apply) ProtoMessage

func (*Apply) ProtoMessage()

func (*Apply) ProtoReflect

func (x *Apply) ProtoReflect() protoreflect.Message

func (*Apply) Reset

func (x *Apply) Reset()

func (*Apply) String

func (x *Apply) String() string

type Apply_Options

type Apply_Options struct {
	ProxyName      string   `protobuf:"bytes,1,opt,name=proxyName,proto3" json:"proxyName,omitempty"`
	ProxyNamespace string   `protobuf:"bytes,2,opt,name=proxyNamespace,proto3" json:"proxyNamespace,omitempty"`
	Branch         string   `protobuf:"bytes,3,opt,name=branch,proto3" json:"branch,omitempty"`
	DryRun         []string `protobuf:"bytes,4,rep,name=dryRun,proto3" json:"dryRun,omitempty"`
	FieldManager   string   `protobuf:"bytes,5,opt,name=fieldManager,proto3" json:"fieldManager,omitempty"`
	Force          bool     `protobuf:"varint,6,opt,name=force,proto3" json:"force,omitempty"`
	Trace          string   `protobuf:"bytes,7,opt,name=trace,proto3" json:"trace,omitempty"`
	Origin         string   `protobuf:"bytes,8,opt,name=origin,proto3" json:"origin,omitempty"`
	// contains filtered or unexported fields
}

func (*Apply_Options) Descriptor deprecated

func (*Apply_Options) Descriptor() ([]byte, []int)

Deprecated: Use Apply_Options.ProtoReflect.Descriptor instead.

func (*Apply_Options) GetBranch

func (x *Apply_Options) GetBranch() string

func (*Apply_Options) GetDryRun

func (x *Apply_Options) GetDryRun() []string

func (*Apply_Options) GetFieldManager

func (x *Apply_Options) GetFieldManager() string

func (*Apply_Options) GetForce

func (x *Apply_Options) GetForce() bool

func (*Apply_Options) GetOrigin

func (x *Apply_Options) GetOrigin() string

func (*Apply_Options) GetProxyName added in v0.0.9

func (x *Apply_Options) GetProxyName() string

func (*Apply_Options) GetProxyNamespace added in v0.0.9

func (x *Apply_Options) GetProxyNamespace() string

func (*Apply_Options) GetTrace

func (x *Apply_Options) GetTrace() string

func (*Apply_Options) ProtoMessage

func (*Apply_Options) ProtoMessage()

func (*Apply_Options) ProtoReflect

func (x *Apply_Options) ProtoReflect() protoreflect.Message

func (*Apply_Options) Reset

func (x *Apply_Options) Reset()

func (*Apply_Options) String

func (x *Apply_Options) String() string

type Apply_Request

type Apply_Request struct {
	Object  []byte         `protobuf:"bytes,1,opt,name=object,proto3" json:"object,omitempty"`
	Options *Apply_Options `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"`
	// contains filtered or unexported fields
}

func (*Apply_Request) Descriptor deprecated

func (*Apply_Request) Descriptor() ([]byte, []int)

Deprecated: Use Apply_Request.ProtoReflect.Descriptor instead.

func (*Apply_Request) GetObject

func (x *Apply_Request) GetObject() []byte

func (*Apply_Request) GetOptions

func (x *Apply_Request) GetOptions() *Apply_Options

func (*Apply_Request) ProtoMessage

func (*Apply_Request) ProtoMessage()

func (*Apply_Request) ProtoReflect

func (x *Apply_Request) ProtoReflect() protoreflect.Message

func (*Apply_Request) Reset

func (x *Apply_Request) Reset()

func (*Apply_Request) String

func (x *Apply_Request) String() string

type Apply_Response

type Apply_Response struct {
	Object []byte `protobuf:"bytes,1,opt,name=object,proto3" json:"object,omitempty"`
	// contains filtered or unexported fields
}

func (*Apply_Response) Descriptor deprecated

func (*Apply_Response) Descriptor() ([]byte, []int)

Deprecated: Use Apply_Response.ProtoReflect.Descriptor instead.

func (*Apply_Response) GetObject

func (x *Apply_Response) GetObject() []byte

func (*Apply_Response) ProtoMessage

func (*Apply_Response) ProtoMessage()

func (*Apply_Response) ProtoReflect

func (x *Apply_Response) ProtoReflect() protoreflect.Message

func (*Apply_Response) Reset

func (x *Apply_Response) Reset()

func (*Apply_Response) String

func (x *Apply_Response) String() string

type Create

type Create struct {
	// contains filtered or unexported fields
}

func (*Create) Descriptor deprecated

func (*Create) Descriptor() ([]byte, []int)

Deprecated: Use Create.ProtoReflect.Descriptor instead.

func (*Create) ProtoMessage

func (*Create) ProtoMessage()

func (*Create) ProtoReflect

func (x *Create) ProtoReflect() protoreflect.Message

func (*Create) Reset

func (x *Create) Reset()

func (*Create) String

func (x *Create) String() string

type Create_Options

type Create_Options struct {
	ProxyName      string   `protobuf:"bytes,1,opt,name=proxyName,proto3" json:"proxyName,omitempty"`
	ProxyNamespace string   `protobuf:"bytes,2,opt,name=proxyNamespace,proto3" json:"proxyNamespace,omitempty"`
	Branch         string   `protobuf:"bytes,3,opt,name=branch,proto3" json:"branch,omitempty"`
	DryRun         []string `protobuf:"bytes,4,rep,name=dryRun,proto3" json:"dryRun,omitempty"`
	Trace          string   `protobuf:"bytes,5,opt,name=trace,proto3" json:"trace,omitempty"`
	Origin         string   `protobuf:"bytes,6,opt,name=origin,proto3" json:"origin,omitempty"` //bool allowCreate = 1;
	// contains filtered or unexported fields
}

func (*Create_Options) Descriptor deprecated

func (*Create_Options) Descriptor() ([]byte, []int)

Deprecated: Use Create_Options.ProtoReflect.Descriptor instead.

func (*Create_Options) GetBranch

func (x *Create_Options) GetBranch() string

func (*Create_Options) GetDryRun

func (x *Create_Options) GetDryRun() []string

func (*Create_Options) GetOrigin

func (x *Create_Options) GetOrigin() string

func (*Create_Options) GetProxyName added in v0.0.9

func (x *Create_Options) GetProxyName() string

func (*Create_Options) GetProxyNamespace added in v0.0.9

func (x *Create_Options) GetProxyNamespace() string

func (*Create_Options) GetTrace

func (x *Create_Options) GetTrace() string

func (*Create_Options) ProtoMessage

func (*Create_Options) ProtoMessage()

func (*Create_Options) ProtoReflect

func (x *Create_Options) ProtoReflect() protoreflect.Message

func (*Create_Options) Reset

func (x *Create_Options) Reset()

func (*Create_Options) String

func (x *Create_Options) String() string

type Create_Request

type Create_Request struct {
	Object  []byte          `protobuf:"bytes,1,opt,name=object,proto3" json:"object,omitempty"`
	Options *Create_Options `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"`
	// contains filtered or unexported fields
}

func (*Create_Request) Descriptor deprecated

func (*Create_Request) Descriptor() ([]byte, []int)

Deprecated: Use Create_Request.ProtoReflect.Descriptor instead.

func (*Create_Request) GetObject

func (x *Create_Request) GetObject() []byte

func (*Create_Request) GetOptions

func (x *Create_Request) GetOptions() *Create_Options

func (*Create_Request) ProtoMessage

func (*Create_Request) ProtoMessage()

func (*Create_Request) ProtoReflect

func (x *Create_Request) ProtoReflect() protoreflect.Message

func (*Create_Request) Reset

func (x *Create_Request) Reset()

func (*Create_Request) String

func (x *Create_Request) String() string

type Create_Response

type Create_Response struct {
	Object []byte `protobuf:"bytes,1,opt,name=object,proto3" json:"object,omitempty"`
	// contains filtered or unexported fields
}

func (*Create_Response) Descriptor deprecated

func (*Create_Response) Descriptor() ([]byte, []int)

Deprecated: Use Create_Response.ProtoReflect.Descriptor instead.

func (*Create_Response) GetObject

func (x *Create_Response) GetObject() []byte

func (*Create_Response) ProtoMessage

func (*Create_Response) ProtoMessage()

func (*Create_Response) ProtoReflect

func (x *Create_Response) ProtoReflect() protoreflect.Message

func (*Create_Response) Reset

func (x *Create_Response) Reset()

func (*Create_Response) String

func (x *Create_Response) String() string

type Delete

type Delete struct {
	// contains filtered or unexported fields
}

func (*Delete) Descriptor deprecated

func (*Delete) Descriptor() ([]byte, []int)

Deprecated: Use Delete.ProtoReflect.Descriptor instead.

func (*Delete) ProtoMessage

func (*Delete) ProtoMessage()

func (*Delete) ProtoReflect

func (x *Delete) ProtoReflect() protoreflect.Message

func (*Delete) Reset

func (x *Delete) Reset()

func (*Delete) String

func (x *Delete) String() string

type Delete_Options

type Delete_Options struct {
	ProxyName      string              `protobuf:"bytes,1,opt,name=proxyName,proto3" json:"proxyName,omitempty"`
	ProxyNamespace string              `protobuf:"bytes,2,opt,name=proxyNamespace,proto3" json:"proxyNamespace,omitempty"`
	Branch         string              `protobuf:"bytes,3,opt,name=branch,proto3" json:"branch,omitempty"`
	DryRun         []string            `protobuf:"bytes,4,rep,name=dryRun,proto3" json:"dryRun,omitempty"`
	ExprSelector   *ExpressionSelector `protobuf:"bytes,5,opt,name=exprSelector,proto3" json:"exprSelector,omitempty"`
	Trace          string              `protobuf:"bytes,6,opt,name=trace,proto3" json:"trace,omitempty"`
	Origin         string              `protobuf:"bytes,7,opt,name=origin,proto3" json:"origin,omitempty"`
	// contains filtered or unexported fields
}

func (*Delete_Options) Descriptor deprecated

func (*Delete_Options) Descriptor() ([]byte, []int)

Deprecated: Use Delete_Options.ProtoReflect.Descriptor instead.

func (*Delete_Options) GetBranch

func (x *Delete_Options) GetBranch() string

func (*Delete_Options) GetDryRun

func (x *Delete_Options) GetDryRun() []string

func (*Delete_Options) GetExprSelector

func (x *Delete_Options) GetExprSelector() *ExpressionSelector

func (*Delete_Options) GetOrigin

func (x *Delete_Options) GetOrigin() string

func (*Delete_Options) GetProxyName added in v0.0.9

func (x *Delete_Options) GetProxyName() string

func (*Delete_Options) GetProxyNamespace added in v0.0.9

func (x *Delete_Options) GetProxyNamespace() string

func (*Delete_Options) GetTrace

func (x *Delete_Options) GetTrace() string

func (*Delete_Options) ProtoMessage

func (*Delete_Options) ProtoMessage()

func (*Delete_Options) ProtoReflect

func (x *Delete_Options) ProtoReflect() protoreflect.Message

func (*Delete_Options) Reset

func (x *Delete_Options) Reset()

func (*Delete_Options) String

func (x *Delete_Options) String() string

type Delete_Request

type Delete_Request struct {
	Object  []byte          `protobuf:"bytes,1,opt,name=object,proto3" json:"object,omitempty"`
	Options *Delete_Options `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"` // options make sense for bulk delete
	// contains filtered or unexported fields
}

func (*Delete_Request) Descriptor deprecated

func (*Delete_Request) Descriptor() ([]byte, []int)

Deprecated: Use Delete_Request.ProtoReflect.Descriptor instead.

func (*Delete_Request) GetObject

func (x *Delete_Request) GetObject() []byte

func (*Delete_Request) GetOptions

func (x *Delete_Request) GetOptions() *Delete_Options

func (*Delete_Request) ProtoMessage

func (*Delete_Request) ProtoMessage()

func (*Delete_Request) ProtoReflect

func (x *Delete_Request) ProtoReflect() protoreflect.Message

func (*Delete_Request) Reset

func (x *Delete_Request) Reset()

func (*Delete_Request) String

func (x *Delete_Request) String() string

type Delete_Response

type Delete_Response struct {
	// contains filtered or unexported fields
}

func (*Delete_Response) Descriptor deprecated

func (*Delete_Response) Descriptor() ([]byte, []int)

Deprecated: Use Delete_Response.ProtoReflect.Descriptor instead.

func (*Delete_Response) ProtoMessage

func (*Delete_Response) ProtoMessage()

func (*Delete_Response) ProtoReflect

func (x *Delete_Response) ProtoReflect() protoreflect.Message

func (*Delete_Response) Reset

func (x *Delete_Response) Reset()

func (*Delete_Response) String

func (x *Delete_Response) String() string

type ExpressionSelector

type ExpressionSelector struct {

	// match is a map of {expression,value} pairs. A single {expression,value} in the match
	// map is equivalent to an element of matchExpressions, whose expression field is "expression", the
	// operator is "In", and the values array contains only "value". The requirements are ANDed.
	// +optional
	Match map[string]string `` /* 151-byte string literal not displayed */
	// matchExpressions is a list of field selector requirements. The requirements are ANDed.
	// +optional
	MatchExpressions []*ExpressionSelectorRequirement `protobuf:"bytes,2,rep,name=matchExpressions,proto3" json:"matchExpressions,omitempty"`
	// contains filtered or unexported fields
}

A expression selector is a query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty selector matches all objects. A null selector matches no objects. +structType=atomic

func (*ExpressionSelector) Descriptor deprecated

func (*ExpressionSelector) Descriptor() ([]byte, []int)

Deprecated: Use ExpressionSelector.ProtoReflect.Descriptor instead.

func (*ExpressionSelector) GetMatch

func (x *ExpressionSelector) GetMatch() map[string]string

func (*ExpressionSelector) GetMatchExpressions

func (x *ExpressionSelector) GetMatchExpressions() []*ExpressionSelectorRequirement

func (*ExpressionSelector) ProtoMessage

func (*ExpressionSelector) ProtoMessage()

func (*ExpressionSelector) ProtoReflect

func (x *ExpressionSelector) ProtoReflect() protoreflect.Message

func (*ExpressionSelector) Reset

func (x *ExpressionSelector) Reset()

func (*ExpressionSelector) String

func (x *ExpressionSelector) String() string

type ExpressionSelectorRequirement

type ExpressionSelectorRequirement struct {

	// expression is a cel expression
	Expression string `protobuf:"bytes,1,opt,name=expression,proto3" json:"expression,omitempty"`
	// operator represents a expression's relationship to a set of values.
	Operator Operator `protobuf:"varint,2,opt,name=operator,proto3,enum=resourcepb.Operator" json:"operator,omitempty"`
	// values is an array of string values. If the operator is In or NotIn,
	// the values array must be non-empty. If the operator is Exists or DoesNotExist,
	// the values array must be empty.
	// +optional
	Values []string `protobuf:"bytes,3,rep,name=values,proto3" json:"values,omitempty"`
	// contains filtered or unexported fields
}

A expression selector requirement is a selector that contains values, an expression, and an operator that relates the expression and values.

func (*ExpressionSelectorRequirement) Descriptor deprecated

func (*ExpressionSelectorRequirement) Descriptor() ([]byte, []int)

Deprecated: Use ExpressionSelectorRequirement.ProtoReflect.Descriptor instead.

func (*ExpressionSelectorRequirement) GetExpression

func (x *ExpressionSelectorRequirement) GetExpression() string

func (*ExpressionSelectorRequirement) GetOperator

func (x *ExpressionSelectorRequirement) GetOperator() Operator

func (*ExpressionSelectorRequirement) GetValues

func (x *ExpressionSelectorRequirement) GetValues() []string

func (*ExpressionSelectorRequirement) ProtoMessage

func (*ExpressionSelectorRequirement) ProtoMessage()

func (*ExpressionSelectorRequirement) ProtoReflect

func (*ExpressionSelectorRequirement) Reset

func (x *ExpressionSelectorRequirement) Reset()

func (*ExpressionSelectorRequirement) String

type Get

type Get struct {
	// contains filtered or unexported fields
}

func (*Get) Descriptor deprecated

func (*Get) Descriptor() ([]byte, []int)

Deprecated: Use Get.ProtoReflect.Descriptor instead.

func (*Get) ProtoMessage

func (*Get) ProtoMessage()

func (*Get) ProtoReflect

func (x *Get) ProtoReflect() protoreflect.Message

func (*Get) Reset

func (x *Get) Reset()

func (*Get) String

func (x *Get) String() string

type Get_Options

type Get_Options struct {
	ProxyName        string `protobuf:"bytes,1,opt,name=proxyName,proto3" json:"proxyName,omitempty"`
	ProxyNamespace   string `protobuf:"bytes,2,opt,name=proxyNamespace,proto3" json:"proxyNamespace,omitempty"`
	Branch           string `protobuf:"bytes,3,opt,name=branch,proto3" json:"branch,omitempty"`
	Ref              string `protobuf:"bytes,4,opt,name=ref,proto3" json:"ref,omitempty"`
	ShowManagedField bool   `protobuf:"varint,5,opt,name=showManagedField,proto3" json:"showManagedField,omitempty"`
	Trace            string `protobuf:"bytes,6,opt,name=trace,proto3" json:"trace,omitempty"`
	Origin           string `protobuf:"bytes,7,opt,name=origin,proto3" json:"origin,omitempty"`
	// contains filtered or unexported fields
}

func (*Get_Options) Descriptor deprecated

func (*Get_Options) Descriptor() ([]byte, []int)

Deprecated: Use Get_Options.ProtoReflect.Descriptor instead.

func (*Get_Options) GetBranch

func (x *Get_Options) GetBranch() string

func (*Get_Options) GetOrigin

func (x *Get_Options) GetOrigin() string

func (*Get_Options) GetProxyName added in v0.0.9

func (x *Get_Options) GetProxyName() string

func (*Get_Options) GetProxyNamespace added in v0.0.9

func (x *Get_Options) GetProxyNamespace() string

func (*Get_Options) GetRef

func (x *Get_Options) GetRef() string

func (*Get_Options) GetShowManagedField

func (x *Get_Options) GetShowManagedField() bool

func (*Get_Options) GetTrace

func (x *Get_Options) GetTrace() string

func (*Get_Options) ProtoMessage

func (*Get_Options) ProtoMessage()

func (*Get_Options) ProtoReflect

func (x *Get_Options) ProtoReflect() protoreflect.Message

func (*Get_Options) Reset

func (x *Get_Options) Reset()

func (*Get_Options) String

func (x *Get_Options) String() string

type Get_Request

type Get_Request struct {
	Object  []byte       `protobuf:"bytes,1,opt,name=object,proto3" json:"object,omitempty"` // the assumption is that a client generates the GVK, Name
	Options *Get_Options `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"`
	// contains filtered or unexported fields
}

func (*Get_Request) Descriptor deprecated

func (*Get_Request) Descriptor() ([]byte, []int)

Deprecated: Use Get_Request.ProtoReflect.Descriptor instead.

func (*Get_Request) GetObject

func (x *Get_Request) GetObject() []byte

func (*Get_Request) GetOptions

func (x *Get_Request) GetOptions() *Get_Options

func (*Get_Request) ProtoMessage

func (*Get_Request) ProtoMessage()

func (*Get_Request) ProtoReflect

func (x *Get_Request) ProtoReflect() protoreflect.Message

func (*Get_Request) Reset

func (x *Get_Request) Reset()

func (*Get_Request) String

func (x *Get_Request) String() string

type Get_Response

type Get_Response struct {
	Object []byte `protobuf:"bytes,1,opt,name=object,proto3" json:"object,omitempty"` // the retrieved data
	// contains filtered or unexported fields
}

func (*Get_Response) Descriptor deprecated

func (*Get_Response) Descriptor() ([]byte, []int)

Deprecated: Use Get_Response.ProtoReflect.Descriptor instead.

func (*Get_Response) GetObject

func (x *Get_Response) GetObject() []byte

func (*Get_Response) ProtoMessage

func (*Get_Response) ProtoMessage()

func (*Get_Response) ProtoReflect

func (x *Get_Response) ProtoReflect() protoreflect.Message

func (*Get_Response) Reset

func (x *Get_Response) Reset()

func (*Get_Response) String

func (x *Get_Response) String() string

type List

type List struct {
	// contains filtered or unexported fields
}

func (*List) Descriptor deprecated

func (*List) Descriptor() ([]byte, []int)

Deprecated: Use List.ProtoReflect.Descriptor instead.

func (*List) ProtoMessage

func (*List) ProtoMessage()

func (*List) ProtoReflect

func (x *List) ProtoReflect() protoreflect.Message

func (*List) Reset

func (x *List) Reset()

func (*List) String

func (x *List) String() string

type List_Options

type List_Options struct {
	ProxyName        string              `protobuf:"bytes,1,opt,name=proxyName,proto3" json:"proxyName,omitempty"`
	ProxyNamespace   string              `protobuf:"bytes,2,opt,name=proxyNamespace,proto3" json:"proxyNamespace,omitempty"`
	Branch           string              `protobuf:"bytes,3,opt,name=branch,proto3" json:"branch,omitempty"`
	Ref              string              `protobuf:"bytes,4,opt,name=ref,proto3" json:"ref,omitempty"`
	ExprSelector     *ExpressionSelector `protobuf:"bytes,5,opt,name=exprSelector,proto3" json:"exprSelector,omitempty"`
	ShowManagedField bool                `protobuf:"varint,6,opt,name=showManagedField,proto3" json:"showManagedField,omitempty"`
	Trace            string              `protobuf:"bytes,7,opt,name=trace,proto3" json:"trace,omitempty"`
	Origin           string              `protobuf:"bytes,8,opt,name=origin,proto3" json:"origin,omitempty"` // name of the origin
	// contains filtered or unexported fields
}

func (*List_Options) Descriptor deprecated

func (*List_Options) Descriptor() ([]byte, []int)

Deprecated: Use List_Options.ProtoReflect.Descriptor instead.

func (*List_Options) GetBranch

func (x *List_Options) GetBranch() string

func (*List_Options) GetExprSelector

func (x *List_Options) GetExprSelector() *ExpressionSelector

func (*List_Options) GetOrigin

func (x *List_Options) GetOrigin() string

func (*List_Options) GetProxyName added in v0.0.9

func (x *List_Options) GetProxyName() string

func (*List_Options) GetProxyNamespace added in v0.0.9

func (x *List_Options) GetProxyNamespace() string

func (*List_Options) GetRef

func (x *List_Options) GetRef() string

func (*List_Options) GetShowManagedField

func (x *List_Options) GetShowManagedField() bool

func (*List_Options) GetTrace

func (x *List_Options) GetTrace() string

func (*List_Options) ProtoMessage

func (*List_Options) ProtoMessage()

func (*List_Options) ProtoReflect

func (x *List_Options) ProtoReflect() protoreflect.Message

func (*List_Options) Reset

func (x *List_Options) Reset()

func (*List_Options) String

func (x *List_Options) String() string

type List_Request

type List_Request struct {
	Object  []byte        `protobuf:"bytes,1,opt,name=object,proto3" json:"object,omitempty"` // the assumption is that a client generates the GVK, Name, Namespace and/or Index
	Options *List_Options `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"`
	// contains filtered or unexported fields
}

func (*List_Request) Descriptor deprecated

func (*List_Request) Descriptor() ([]byte, []int)

Deprecated: Use List_Request.ProtoReflect.Descriptor instead.

func (*List_Request) GetObject

func (x *List_Request) GetObject() []byte

func (*List_Request) GetOptions

func (x *List_Request) GetOptions() *List_Options

func (*List_Request) ProtoMessage

func (*List_Request) ProtoMessage()

func (*List_Request) ProtoReflect

func (x *List_Request) ProtoReflect() protoreflect.Message

func (*List_Request) Reset

func (x *List_Request) Reset()

func (*List_Request) String

func (x *List_Request) String() string

type List_Response

type List_Response struct {
	Object []byte `protobuf:"bytes,1,opt,name=object,proto3" json:"object,omitempty"` // the retrieved data with a list of items embedded
	// contains filtered or unexported fields
}

func (*List_Response) Descriptor deprecated

func (*List_Response) Descriptor() ([]byte, []int)

Deprecated: Use List_Response.ProtoReflect.Descriptor instead.

func (*List_Response) GetObject

func (x *List_Response) GetObject() []byte

func (*List_Response) ProtoMessage

func (*List_Response) ProtoMessage()

func (*List_Response) ProtoReflect

func (x *List_Response) ProtoReflect() protoreflect.Message

func (*List_Response) Reset

func (x *List_Response) Reset()

func (*List_Response) String

func (x *List_Response) String() string

type Operator

type Operator int32
const (
	Operator_Equals       Operator = 0
	Operator_DoubleEquals Operator = 1
	Operator_NotEquals    Operator = 2
	Operator_In           Operator = 3
	Operator_NotIn        Operator = 4
	Operator_Exists       Operator = 5
	Operator_DoesNotExist Operator = 6
	Operator_GreaterThan  Operator = 7
	Operator_LessThan     Operator = 8
)

func (Operator) Descriptor

func (Operator) Descriptor() protoreflect.EnumDescriptor

func (Operator) Enum

func (x Operator) Enum() *Operator

func (Operator) EnumDescriptor deprecated

func (Operator) EnumDescriptor() ([]byte, []int)

Deprecated: Use Operator.Descriptor instead.

func (Operator) Number

func (x Operator) Number() protoreflect.EnumNumber

func (Operator) String

func (x Operator) String() string

func (Operator) Type

type ResourceClient

type ResourceClient interface {
	Get(ctx context.Context, in *Get_Request, opts ...grpc.CallOption) (*Get_Response, error)
	List(ctx context.Context, in *List_Request, opts ...grpc.CallOption) (*List_Response, error)
	Create(ctx context.Context, in *Create_Request, opts ...grpc.CallOption) (*Create_Response, error)
	Update(ctx context.Context, in *Update_Request, opts ...grpc.CallOption) (*Update_Response, error)
	Apply(ctx context.Context, in *Apply_Request, opts ...grpc.CallOption) (*Apply_Response, error)
	Delete(ctx context.Context, in *Delete_Request, opts ...grpc.CallOption) (*Delete_Response, error)
	Watch(ctx context.Context, in *Watch_Request, opts ...grpc.CallOption) (Resource_WatchClient, error)
}

ResourceClient is the client API for Resource service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewResourceClient

func NewResourceClient(cc grpc.ClientConnInterface) ResourceClient

type ResourceServer

ResourceServer is the server API for Resource service. All implementations must embed UnimplementedResourceServer for forward compatibility

type Resource_WatchClient

type Resource_WatchClient interface {
	Recv() (*Watch_Response, error)
	grpc.ClientStream
}

type Resource_WatchServer

type Resource_WatchServer interface {
	Send(*Watch_Response) error
	grpc.ServerStream
}

type UnimplementedResourceServer

type UnimplementedResourceServer struct {
}

UnimplementedResourceServer must be embedded to have forward compatible implementations.

func (UnimplementedResourceServer) Apply

func (UnimplementedResourceServer) Create

func (UnimplementedResourceServer) Delete

func (UnimplementedResourceServer) Get

func (UnimplementedResourceServer) List

func (UnimplementedResourceServer) Update

func (UnimplementedResourceServer) Watch

type UnsafeResourceServer

type UnsafeResourceServer interface {
	// contains filtered or unexported methods
}

UnsafeResourceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ResourceServer will result in compilation errors.

type Update

type Update struct {
	// contains filtered or unexported fields
}

func (*Update) Descriptor deprecated

func (*Update) Descriptor() ([]byte, []int)

Deprecated: Use Update.ProtoReflect.Descriptor instead.

func (*Update) ProtoMessage

func (*Update) ProtoMessage()

func (*Update) ProtoReflect

func (x *Update) ProtoReflect() protoreflect.Message

func (*Update) Reset

func (x *Update) Reset()

func (*Update) String

func (x *Update) String() string

type Update_Options

type Update_Options struct {
	ProxyName      string   `protobuf:"bytes,1,opt,name=proxyName,proto3" json:"proxyName,omitempty"`
	ProxyNamespace string   `protobuf:"bytes,2,opt,name=proxyNamespace,proto3" json:"proxyNamespace,omitempty"`
	Branch         string   `protobuf:"bytes,3,opt,name=branch,proto3" json:"branch,omitempty"`
	DryRun         []string `protobuf:"bytes,4,rep,name=dryRun,proto3" json:"dryRun,omitempty"`
	Trace          string   `protobuf:"bytes,5,opt,name=trace,proto3" json:"trace,omitempty"`
	Origin         string   `protobuf:"bytes,6,opt,name=origin,proto3" json:"origin,omitempty"` //bool allowCreate = 1;
	// contains filtered or unexported fields
}

func (*Update_Options) Descriptor deprecated

func (*Update_Options) Descriptor() ([]byte, []int)

Deprecated: Use Update_Options.ProtoReflect.Descriptor instead.

func (*Update_Options) GetBranch

func (x *Update_Options) GetBranch() string

func (*Update_Options) GetDryRun

func (x *Update_Options) GetDryRun() []string

func (*Update_Options) GetOrigin

func (x *Update_Options) GetOrigin() string

func (*Update_Options) GetProxyName added in v0.0.9

func (x *Update_Options) GetProxyName() string

func (*Update_Options) GetProxyNamespace added in v0.0.9

func (x *Update_Options) GetProxyNamespace() string

func (*Update_Options) GetTrace

func (x *Update_Options) GetTrace() string

func (*Update_Options) ProtoMessage

func (*Update_Options) ProtoMessage()

func (*Update_Options) ProtoReflect

func (x *Update_Options) ProtoReflect() protoreflect.Message

func (*Update_Options) Reset

func (x *Update_Options) Reset()

func (*Update_Options) String

func (x *Update_Options) String() string

type Update_Request

type Update_Request struct {
	Object  []byte          `protobuf:"bytes,1,opt,name=object,proto3" json:"object,omitempty"`
	Options *Update_Options `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"`
	// contains filtered or unexported fields
}

func (*Update_Request) Descriptor deprecated

func (*Update_Request) Descriptor() ([]byte, []int)

Deprecated: Use Update_Request.ProtoReflect.Descriptor instead.

func (*Update_Request) GetObject

func (x *Update_Request) GetObject() []byte

func (*Update_Request) GetOptions

func (x *Update_Request) GetOptions() *Update_Options

func (*Update_Request) ProtoMessage

func (*Update_Request) ProtoMessage()

func (*Update_Request) ProtoReflect

func (x *Update_Request) ProtoReflect() protoreflect.Message

func (*Update_Request) Reset

func (x *Update_Request) Reset()

func (*Update_Request) String

func (x *Update_Request) String() string

type Update_Response

type Update_Response struct {
	Object []byte `protobuf:"bytes,1,opt,name=object,proto3" json:"object,omitempty"`
	// contains filtered or unexported fields
}

func (*Update_Response) Descriptor deprecated

func (*Update_Response) Descriptor() ([]byte, []int)

Deprecated: Use Update_Response.ProtoReflect.Descriptor instead.

func (*Update_Response) GetObject

func (x *Update_Response) GetObject() []byte

func (*Update_Response) ProtoMessage

func (*Update_Response) ProtoMessage()

func (*Update_Response) ProtoReflect

func (x *Update_Response) ProtoReflect() protoreflect.Message

func (*Update_Response) Reset

func (x *Update_Response) Reset()

func (*Update_Response) String

func (x *Update_Response) String() string

type Watch

type Watch struct {
	// contains filtered or unexported fields
}

func (*Watch) Descriptor deprecated

func (*Watch) Descriptor() ([]byte, []int)

Deprecated: Use Watch.ProtoReflect.Descriptor instead.

func (*Watch) ProtoMessage

func (*Watch) ProtoMessage()

func (*Watch) ProtoReflect

func (x *Watch) ProtoReflect() protoreflect.Message

func (*Watch) Reset

func (x *Watch) Reset()

func (*Watch) String

func (x *Watch) String() string

type Watch_EventType

type Watch_EventType int32
const (
	Watch_ERROR    Watch_EventType = 0
	Watch_ADDED    Watch_EventType = 1
	Watch_MODIFIED Watch_EventType = 2
	Watch_DELETED  Watch_EventType = 3
	Watch_BOOKMARK Watch_EventType = 4
)

func (Watch_EventType) Descriptor

func (Watch_EventType) Enum

func (x Watch_EventType) Enum() *Watch_EventType

func (Watch_EventType) EnumDescriptor deprecated

func (Watch_EventType) EnumDescriptor() ([]byte, []int)

Deprecated: Use Watch_EventType.Descriptor instead.

func (Watch_EventType) Number

func (Watch_EventType) String

func (x Watch_EventType) String() string

func (Watch_EventType) Type

type Watch_Options

type Watch_Options struct {
	ProxyName      string              `protobuf:"bytes,1,opt,name=proxyName,proto3" json:"proxyName,omitempty"`
	ProxyNamespace string              `protobuf:"bytes,2,opt,name=proxyNamespace,proto3" json:"proxyNamespace,omitempty"`
	Branch         string              `protobuf:"bytes,3,opt,name=branch,proto3" json:"branch,omitempty"`
	Ref            string              `protobuf:"bytes,4,opt,name=ref,proto3" json:"ref,omitempty"`
	Watch          bool                `protobuf:"varint,5,opt,name=watch,proto3" json:"watch,omitempty"` // indicate watch only, otherwise list and watch is used
	ExprSelector   *ExpressionSelector `protobuf:"bytes,6,opt,name=exprSelector,proto3" json:"exprSelector,omitempty"`
	Trace          string              `protobuf:"bytes,7,opt,name=trace,proto3" json:"trace,omitempty"`
	Origin         string              `protobuf:"bytes,8,opt,name=origin,proto3" json:"origin,omitempty"`
	// contains filtered or unexported fields
}

func (*Watch_Options) Descriptor deprecated

func (*Watch_Options) Descriptor() ([]byte, []int)

Deprecated: Use Watch_Options.ProtoReflect.Descriptor instead.

func (*Watch_Options) GetBranch

func (x *Watch_Options) GetBranch() string

func (*Watch_Options) GetExprSelector

func (x *Watch_Options) GetExprSelector() *ExpressionSelector

func (*Watch_Options) GetOrigin

func (x *Watch_Options) GetOrigin() string

func (*Watch_Options) GetProxyName added in v0.0.9

func (x *Watch_Options) GetProxyName() string

func (*Watch_Options) GetProxyNamespace added in v0.0.9

func (x *Watch_Options) GetProxyNamespace() string

func (*Watch_Options) GetRef

func (x *Watch_Options) GetRef() string

func (*Watch_Options) GetTrace

func (x *Watch_Options) GetTrace() string

func (*Watch_Options) GetWatch

func (x *Watch_Options) GetWatch() bool

func (*Watch_Options) ProtoMessage

func (*Watch_Options) ProtoMessage()

func (*Watch_Options) ProtoReflect

func (x *Watch_Options) ProtoReflect() protoreflect.Message

func (*Watch_Options) Reset

func (x *Watch_Options) Reset()

func (*Watch_Options) String

func (x *Watch_Options) String() string

type Watch_Request

type Watch_Request struct {
	Id      string         `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Object  []byte         `protobuf:"bytes,2,opt,name=object,proto3" json:"object,omitempty"` // assumption is the client generates the proper object with GVK, NS, Index, etc
	Options *Watch_Options `protobuf:"bytes,3,opt,name=options,proto3" json:"options,omitempty"`
	// contains filtered or unexported fields
}

func (*Watch_Request) Descriptor deprecated

func (*Watch_Request) Descriptor() ([]byte, []int)

Deprecated: Use Watch_Request.ProtoReflect.Descriptor instead.

func (*Watch_Request) GetId

func (x *Watch_Request) GetId() string

func (*Watch_Request) GetObject

func (x *Watch_Request) GetObject() []byte

func (*Watch_Request) GetOptions

func (x *Watch_Request) GetOptions() *Watch_Options

func (*Watch_Request) ProtoMessage

func (*Watch_Request) ProtoMessage()

func (*Watch_Request) ProtoReflect

func (x *Watch_Request) ProtoReflect() protoreflect.Message

func (*Watch_Request) Reset

func (x *Watch_Request) Reset()

func (*Watch_Request) String

func (x *Watch_Request) String() string

type Watch_Response

type Watch_Response struct {
	Object    []byte          `protobuf:"bytes,1,opt,name=object,proto3" json:"object,omitempty"`
	EventType Watch_EventType `protobuf:"varint,2,opt,name=eventType,proto3,enum=resourcepb.Watch_EventType" json:"eventType,omitempty"`
	// contains filtered or unexported fields
}

func (*Watch_Response) Descriptor deprecated

func (*Watch_Response) Descriptor() ([]byte, []int)

Deprecated: Use Watch_Response.ProtoReflect.Descriptor instead.

func (*Watch_Response) GetEventType

func (x *Watch_Response) GetEventType() Watch_EventType

func (*Watch_Response) GetObject

func (x *Watch_Response) GetObject() []byte

func (*Watch_Response) ProtoMessage

func (*Watch_Response) ProtoMessage()

func (*Watch_Response) ProtoReflect

func (x *Watch_Response) ProtoReflect() protoreflect.Message

func (*Watch_Response) Reset

func (x *Watch_Response) Reset()

func (*Watch_Response) String

func (x *Watch_Response) String() string

Jump to

Keyboard shortcuts

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