pb

package
v0.0.0-...-f9c8925 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Adapter_Apply_FullMethodName   = "/dex.plugin.Adapter/Apply"
	Adapter_Destroy_FullMethodName = "/dex.plugin.Adapter/Destroy"
)

Variables

View Source
var (
	ApplyResponse_Type_name = map[int32]string{
		0: "LOG",
		1: "PROGRESS",
		2: "SUCCESS",
		3: "ERROR",
	}
	ApplyResponse_Type_value = map[string]int32{
		"LOG":      0,
		"PROGRESS": 1,
		"SUCCESS":  2,
		"ERROR":    3,
	}
)

Enum value maps for ApplyResponse_Type.

View Source
var Adapter_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "dex.plugin.Adapter",
	HandlerType: (*AdapterServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "Apply",
			Handler:       _Adapter_Apply_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "Destroy",
			Handler:       _Adapter_Destroy_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "adapter.proto",
}

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

View Source
var File_adapter_proto protoreflect.FileDescriptor

Functions

func RegisterAdapterServer

func RegisterAdapterServer(s grpc.ServiceRegistrar, srv AdapterServer)

Types

type AdapterClient

type AdapterClient interface {
	Apply(ctx context.Context, in *ApplyRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[ApplyResponse], error)
	Destroy(ctx context.Context, in *DestroyRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[ApplyResponse], error)
}

AdapterClient is the client API for Adapter 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 NewAdapterClient

func NewAdapterClient(cc grpc.ClientConnInterface) AdapterClient

type AdapterServer

type AdapterServer interface {
	Apply(*ApplyRequest, grpc.ServerStreamingServer[ApplyResponse]) error
	Destroy(*DestroyRequest, grpc.ServerStreamingServer[ApplyResponse]) error
	// contains filtered or unexported methods
}

AdapterServer is the server API for Adapter service. All implementations must embed UnimplementedAdapterServer for forward compatibility.

type Adapter_ApplyClient

type Adapter_ApplyClient = grpc.ServerStreamingClient[ApplyResponse]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type Adapter_ApplyServer

type Adapter_ApplyServer = grpc.ServerStreamingServer[ApplyResponse]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type Adapter_DestroyClient

type Adapter_DestroyClient = grpc.ServerStreamingClient[ApplyResponse]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type Adapter_DestroyServer

type Adapter_DestroyServer = grpc.ServerStreamingServer[ApplyResponse]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type ApplyRequest

type ApplyRequest struct {
	ResourceId          string `protobuf:"bytes,1,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"`
	Type                string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	PropertiesJson      string `protobuf:"bytes,3,opt,name=properties_json,json=propertiesJson,proto3" json:"properties_json,omitempty"`
	PriorPropertiesJson string `protobuf:"bytes,4,opt,name=prior_properties_json,json=priorPropertiesJson,proto3" json:"prior_properties_json,omitempty"`
	// contains filtered or unexported fields
}

func (*ApplyRequest) Descriptor deprecated

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

Deprecated: Use ApplyRequest.ProtoReflect.Descriptor instead.

func (*ApplyRequest) GetPriorPropertiesJson

func (x *ApplyRequest) GetPriorPropertiesJson() string

func (*ApplyRequest) GetPropertiesJson

func (x *ApplyRequest) GetPropertiesJson() string

func (*ApplyRequest) GetResourceId

func (x *ApplyRequest) GetResourceId() string

func (*ApplyRequest) GetType

func (x *ApplyRequest) GetType() string

func (*ApplyRequest) ProtoMessage

func (*ApplyRequest) ProtoMessage()

func (*ApplyRequest) ProtoReflect

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

func (*ApplyRequest) Reset

func (x *ApplyRequest) Reset()

func (*ApplyRequest) String

func (x *ApplyRequest) String() string

type ApplyResponse

type ApplyResponse struct {
	Type         ApplyResponse_Type `protobuf:"varint,1,opt,name=type,proto3,enum=dex.plugin.ApplyResponse_Type" json:"type,omitempty"`
	Message      string             `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	NewStateJson string             `protobuf:"bytes,3,opt,name=new_state_json,json=newStateJson,proto3" json:"new_state_json,omitempty"`
	// contains filtered or unexported fields
}

func (*ApplyResponse) Descriptor deprecated

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

Deprecated: Use ApplyResponse.ProtoReflect.Descriptor instead.

func (*ApplyResponse) GetMessage

func (x *ApplyResponse) GetMessage() string

func (*ApplyResponse) GetNewStateJson

func (x *ApplyResponse) GetNewStateJson() string

func (*ApplyResponse) GetType

func (x *ApplyResponse) GetType() ApplyResponse_Type

func (*ApplyResponse) ProtoMessage

func (*ApplyResponse) ProtoMessage()

func (*ApplyResponse) ProtoReflect

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

func (*ApplyResponse) Reset

func (x *ApplyResponse) Reset()

func (*ApplyResponse) String

func (x *ApplyResponse) String() string

type ApplyResponse_Type

type ApplyResponse_Type int32
const (
	ApplyResponse_LOG      ApplyResponse_Type = 0
	ApplyResponse_PROGRESS ApplyResponse_Type = 1
	ApplyResponse_SUCCESS  ApplyResponse_Type = 2
	ApplyResponse_ERROR    ApplyResponse_Type = 3
)

func (ApplyResponse_Type) Descriptor

func (ApplyResponse_Type) Enum

func (ApplyResponse_Type) EnumDescriptor deprecated

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

Deprecated: Use ApplyResponse_Type.Descriptor instead.

func (ApplyResponse_Type) Number

func (ApplyResponse_Type) String

func (x ApplyResponse_Type) String() string

func (ApplyResponse_Type) Type

type DestroyRequest

type DestroyRequest struct {
	ResourceId     string `protobuf:"bytes,1,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"`
	Type           string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	PropertiesJson string `protobuf:"bytes,3,opt,name=properties_json,json=propertiesJson,proto3" json:"properties_json,omitempty"`
	OutputsJson    string `protobuf:"bytes,4,opt,name=outputs_json,json=outputsJson,proto3" json:"outputs_json,omitempty"`
	// contains filtered or unexported fields
}

func (*DestroyRequest) Descriptor deprecated

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

Deprecated: Use DestroyRequest.ProtoReflect.Descriptor instead.

func (*DestroyRequest) GetOutputsJson

func (x *DestroyRequest) GetOutputsJson() string

func (*DestroyRequest) GetPropertiesJson

func (x *DestroyRequest) GetPropertiesJson() string

func (*DestroyRequest) GetResourceId

func (x *DestroyRequest) GetResourceId() string

func (*DestroyRequest) GetType

func (x *DestroyRequest) GetType() string

func (*DestroyRequest) ProtoMessage

func (*DestroyRequest) ProtoMessage()

func (*DestroyRequest) ProtoReflect

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

func (*DestroyRequest) Reset

func (x *DestroyRequest) Reset()

func (*DestroyRequest) String

func (x *DestroyRequest) String() string

type UnimplementedAdapterServer

type UnimplementedAdapterServer struct{}

UnimplementedAdapterServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedAdapterServer) Apply

func (UnimplementedAdapterServer) Destroy

type UnsafeAdapterServer

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

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

Jump to

Keyboard shortcuts

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