Documentation
¶
Index ¶
- Variables
- func RegisterDiffApiServer(s grpc.ServiceRegistrar, srv DiffApiServer)
- type DiffApiClient
- type DiffApiServer
- type DiffRequest
- func (*DiffRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DiffRequest) GetFilters() []*DiffRequest_Filter
- func (x *DiffRequest) GetFrom() *Reference
- func (x *DiffRequest) GetTo() *Reference
- func (*DiffRequest) ProtoMessage()
- func (x *DiffRequest) ProtoReflect() protoreflect.Message
- func (x *DiffRequest) Reset()
- func (x *DiffRequest) String() string
- type DiffRequest_Filter
- type DiffResponse
- type DiffResponse_Diff
- func (*DiffResponse_Diff) Descriptor() ([]byte, []int)deprecated
- func (x *DiffResponse_Diff) GetChanges() []*DiffResponse_Diff_EntrypointDiff
- func (x *DiffResponse_Diff) GetEntrypoint() *Entrypoint
- func (x *DiffResponse_Diff) GetError() string
- func (*DiffResponse_Diff) ProtoMessage()
- func (x *DiffResponse_Diff) ProtoReflect() protoreflect.Message
- func (x *DiffResponse_Diff) Reset()
- func (x *DiffResponse_Diff) String() string
- type DiffResponse_Diff_EntrypointDiff
- func (*DiffResponse_Diff_EntrypointDiff) Descriptor() ([]byte, []int)deprecated
- func (x *DiffResponse_Diff_EntrypointDiff) GetDiffs() []*DiffResponse_Diff_EntrypointDiff_Change
- func (x *DiffResponse_Diff_EntrypointDiff) GetPost() *Resource
- func (x *DiffResponse_Diff_EntrypointDiff) GetPre() *Resource
- func (x *DiffResponse_Diff_EntrypointDiff) GetType() DiffType
- func (*DiffResponse_Diff_EntrypointDiff) ProtoMessage()
- func (x *DiffResponse_Diff_EntrypointDiff) ProtoReflect() protoreflect.Message
- func (x *DiffResponse_Diff_EntrypointDiff) Reset()
- func (x *DiffResponse_Diff_EntrypointDiff) String() string
- type DiffResponse_Diff_EntrypointDiff_Change
- func (*DiffResponse_Diff_EntrypointDiff_Change) Descriptor() ([]byte, []int)deprecated
- func (x *DiffResponse_Diff_EntrypointDiff_Change) GetFrom() string
- func (x *DiffResponse_Diff_EntrypointDiff_Change) GetParent() string
- func (x *DiffResponse_Diff_EntrypointDiff_Change) GetPath() []string
- func (x *DiffResponse_Diff_EntrypointDiff_Change) GetTo() string
- func (x *DiffResponse_Diff_EntrypointDiff_Change) GetType() string
- func (*DiffResponse_Diff_EntrypointDiff_Change) ProtoMessage()
- func (x *DiffResponse_Diff_EntrypointDiff_Change) ProtoReflect() protoreflect.Message
- func (x *DiffResponse_Diff_EntrypointDiff_Change) Reset()
- func (x *DiffResponse_Diff_EntrypointDiff_Change) String() string
- type DiffType
- type Entrypoint
- type Reference
- type Resource
- type UnimplementedDiffApiServer
- type UnsafeDiffApiServer
Constants ¶
This section is empty.
Variables ¶
var ( DiffType_name = map[int32]string{ 0: "CREATE", 1: "UPDATE", 2: "DELETE", } DiffType_value = map[string]int32{ "CREATE": 0, "UPDATE": 1, "DELETE": 2, } )
Enum value maps for DiffType.
var DiffApi_ServiceDesc = grpc.ServiceDesc{ ServiceName: "apipb.DiffApi", HandlerType: (*DiffApiServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Diff", Handler: _DiffApi_Diff_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/diff-api.proto", }
DiffApi_ServiceDesc is the grpc.ServiceDesc for DiffApi service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_api_diff_api_proto protoreflect.FileDescriptor
Functions ¶
func RegisterDiffApiServer ¶
func RegisterDiffApiServer(s grpc.ServiceRegistrar, srv DiffApiServer)
Types ¶
type DiffApiClient ¶
type DiffApiClient interface {
Diff(ctx context.Context, in *DiffRequest, opts ...grpc.CallOption) (*DiffResponse, error)
}
DiffApiClient is the client API for DiffApi 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 NewDiffApiClient ¶
func NewDiffApiClient(cc grpc.ClientConnInterface) DiffApiClient
type DiffApiServer ¶
type DiffApiServer interface { Diff(context.Context, *DiffRequest) (*DiffResponse, error) // contains filtered or unexported methods }
DiffApiServer is the server API for DiffApi service. All implementations must embed UnimplementedDiffApiServer for forward compatibility
type DiffRequest ¶
type DiffRequest struct { From *Reference `protobuf:"bytes,1,opt,name=From,proto3" json:"From,omitempty"` To *Reference `protobuf:"bytes,2,opt,name=To,proto3" json:"To,omitempty"` Filters []*DiffRequest_Filter `protobuf:"bytes,3,rep,name=Filters,proto3" json:"Filters,omitempty"` // contains filtered or unexported fields }
func (*DiffRequest) Descriptor
deprecated
func (*DiffRequest) Descriptor() ([]byte, []int)
Deprecated: Use DiffRequest.ProtoReflect.Descriptor instead.
func (*DiffRequest) GetFilters ¶
func (x *DiffRequest) GetFilters() []*DiffRequest_Filter
func (*DiffRequest) GetFrom ¶
func (x *DiffRequest) GetFrom() *Reference
func (*DiffRequest) GetTo ¶
func (x *DiffRequest) GetTo() *Reference
func (*DiffRequest) ProtoMessage ¶
func (*DiffRequest) ProtoMessage()
func (*DiffRequest) ProtoReflect ¶
func (x *DiffRequest) ProtoReflect() protoreflect.Message
func (*DiffRequest) Reset ¶
func (x *DiffRequest) Reset()
func (*DiffRequest) String ¶
func (x *DiffRequest) String() string
type DiffRequest_Filter ¶
type DiffRequest_Filter struct {
// contains filtered or unexported fields
}
func (*DiffRequest_Filter) Descriptor
deprecated
func (*DiffRequest_Filter) Descriptor() ([]byte, []int)
Deprecated: Use DiffRequest_Filter.ProtoReflect.Descriptor instead.
func (*DiffRequest_Filter) ProtoMessage ¶
func (*DiffRequest_Filter) ProtoMessage()
func (*DiffRequest_Filter) ProtoReflect ¶
func (x *DiffRequest_Filter) ProtoReflect() protoreflect.Message
func (*DiffRequest_Filter) Reset ¶
func (x *DiffRequest_Filter) Reset()
func (*DiffRequest_Filter) String ¶
func (x *DiffRequest_Filter) String() string
type DiffResponse ¶
type DiffResponse struct { Diffs []*DiffResponse_Diff `protobuf:"bytes,1,rep,name=Diffs,proto3" json:"Diffs,omitempty"` // contains filtered or unexported fields }
func (*DiffResponse) Descriptor
deprecated
func (*DiffResponse) Descriptor() ([]byte, []int)
Deprecated: Use DiffResponse.ProtoReflect.Descriptor instead.
func (*DiffResponse) GetDiffs ¶
func (x *DiffResponse) GetDiffs() []*DiffResponse_Diff
func (*DiffResponse) ProtoMessage ¶
func (*DiffResponse) ProtoMessage()
func (*DiffResponse) ProtoReflect ¶
func (x *DiffResponse) ProtoReflect() protoreflect.Message
func (*DiffResponse) Reset ¶
func (x *DiffResponse) Reset()
func (*DiffResponse) String ¶
func (x *DiffResponse) String() string
type DiffResponse_Diff ¶
type DiffResponse_Diff struct { Entrypoint *Entrypoint `protobuf:"bytes,1,opt,name=Entrypoint,proto3" json:"Entrypoint,omitempty"` Error string `protobuf:"bytes,2,opt,name=Error,proto3" json:"Error,omitempty"` Changes []*DiffResponse_Diff_EntrypointDiff `protobuf:"bytes,3,rep,name=Changes,proto3" json:"Changes,omitempty"` // contains filtered or unexported fields }
func (*DiffResponse_Diff) Descriptor
deprecated
func (*DiffResponse_Diff) Descriptor() ([]byte, []int)
Deprecated: Use DiffResponse_Diff.ProtoReflect.Descriptor instead.
func (*DiffResponse_Diff) GetChanges ¶
func (x *DiffResponse_Diff) GetChanges() []*DiffResponse_Diff_EntrypointDiff
func (*DiffResponse_Diff) GetEntrypoint ¶
func (x *DiffResponse_Diff) GetEntrypoint() *Entrypoint
func (*DiffResponse_Diff) GetError ¶
func (x *DiffResponse_Diff) GetError() string
func (*DiffResponse_Diff) ProtoMessage ¶
func (*DiffResponse_Diff) ProtoMessage()
func (*DiffResponse_Diff) ProtoReflect ¶
func (x *DiffResponse_Diff) ProtoReflect() protoreflect.Message
func (*DiffResponse_Diff) Reset ¶
func (x *DiffResponse_Diff) Reset()
func (*DiffResponse_Diff) String ¶
func (x *DiffResponse_Diff) String() string
type DiffResponse_Diff_EntrypointDiff ¶
type DiffResponse_Diff_EntrypointDiff struct { Type DiffType `protobuf:"varint,1,opt,name=Type,proto3,enum=apipb.DiffType" json:"Type,omitempty"` Pre *Resource `protobuf:"bytes,2,opt,name=Pre,proto3" json:"Pre,omitempty"` Post *Resource `protobuf:"bytes,3,opt,name=Post,proto3" json:"Post,omitempty"` Diffs []*DiffResponse_Diff_EntrypointDiff_Change `protobuf:"bytes,4,rep,name=Diffs,proto3" json:"Diffs,omitempty"` // contains filtered or unexported fields }
func (*DiffResponse_Diff_EntrypointDiff) Descriptor
deprecated
func (*DiffResponse_Diff_EntrypointDiff) Descriptor() ([]byte, []int)
Deprecated: Use DiffResponse_Diff_EntrypointDiff.ProtoReflect.Descriptor instead.
func (*DiffResponse_Diff_EntrypointDiff) GetDiffs ¶
func (x *DiffResponse_Diff_EntrypointDiff) GetDiffs() []*DiffResponse_Diff_EntrypointDiff_Change
func (*DiffResponse_Diff_EntrypointDiff) GetPost ¶
func (x *DiffResponse_Diff_EntrypointDiff) GetPost() *Resource
func (*DiffResponse_Diff_EntrypointDiff) GetPre ¶
func (x *DiffResponse_Diff_EntrypointDiff) GetPre() *Resource
func (*DiffResponse_Diff_EntrypointDiff) GetType ¶
func (x *DiffResponse_Diff_EntrypointDiff) GetType() DiffType
func (*DiffResponse_Diff_EntrypointDiff) ProtoMessage ¶
func (*DiffResponse_Diff_EntrypointDiff) ProtoMessage()
func (*DiffResponse_Diff_EntrypointDiff) ProtoReflect ¶
func (x *DiffResponse_Diff_EntrypointDiff) ProtoReflect() protoreflect.Message
func (*DiffResponse_Diff_EntrypointDiff) Reset ¶
func (x *DiffResponse_Diff_EntrypointDiff) Reset()
func (*DiffResponse_Diff_EntrypointDiff) String ¶
func (x *DiffResponse_Diff_EntrypointDiff) String() string
type DiffResponse_Diff_EntrypointDiff_Change ¶
type DiffResponse_Diff_EntrypointDiff_Change struct { Type string `protobuf:"bytes,1,opt,name=Type,proto3" json:"Type,omitempty"` Path []string `protobuf:"bytes,2,rep,name=Path,proto3" json:"Path,omitempty"` From string `protobuf:"bytes,3,opt,name=From,proto3" json:"From,omitempty"` To string `protobuf:"bytes,4,opt,name=To,proto3" json:"To,omitempty"` Parent string `protobuf:"bytes,5,opt,name=parent,proto3" json:"parent,omitempty"` // contains filtered or unexported fields }
func (*DiffResponse_Diff_EntrypointDiff_Change) Descriptor
deprecated
func (*DiffResponse_Diff_EntrypointDiff_Change) Descriptor() ([]byte, []int)
Deprecated: Use DiffResponse_Diff_EntrypointDiff_Change.ProtoReflect.Descriptor instead.
func (*DiffResponse_Diff_EntrypointDiff_Change) GetFrom ¶
func (x *DiffResponse_Diff_EntrypointDiff_Change) GetFrom() string
func (*DiffResponse_Diff_EntrypointDiff_Change) GetParent ¶
func (x *DiffResponse_Diff_EntrypointDiff_Change) GetParent() string
func (*DiffResponse_Diff_EntrypointDiff_Change) GetPath ¶
func (x *DiffResponse_Diff_EntrypointDiff_Change) GetPath() []string
func (*DiffResponse_Diff_EntrypointDiff_Change) GetTo ¶
func (x *DiffResponse_Diff_EntrypointDiff_Change) GetTo() string
func (*DiffResponse_Diff_EntrypointDiff_Change) GetType ¶
func (x *DiffResponse_Diff_EntrypointDiff_Change) GetType() string
func (*DiffResponse_Diff_EntrypointDiff_Change) ProtoMessage ¶
func (*DiffResponse_Diff_EntrypointDiff_Change) ProtoMessage()
func (*DiffResponse_Diff_EntrypointDiff_Change) ProtoReflect ¶
func (x *DiffResponse_Diff_EntrypointDiff_Change) ProtoReflect() protoreflect.Message
func (*DiffResponse_Diff_EntrypointDiff_Change) Reset ¶
func (x *DiffResponse_Diff_EntrypointDiff_Change) Reset()
func (*DiffResponse_Diff_EntrypointDiff_Change) String ¶
func (x *DiffResponse_Diff_EntrypointDiff_Change) String() string
type DiffType ¶
type DiffType int32
func (DiffType) Descriptor ¶
func (DiffType) Descriptor() protoreflect.EnumDescriptor
func (DiffType) EnumDescriptor
deprecated
func (DiffType) Number ¶
func (x DiffType) Number() protoreflect.EnumNumber
func (DiffType) Type ¶
func (DiffType) Type() protoreflect.EnumType
type Entrypoint ¶
type Entrypoint struct {
// contains filtered or unexported fields
}
func (*Entrypoint) Descriptor
deprecated
func (*Entrypoint) Descriptor() ([]byte, []int)
Deprecated: Use Entrypoint.ProtoReflect.Descriptor instead.
func (*Entrypoint) ProtoMessage ¶
func (*Entrypoint) ProtoMessage()
func (*Entrypoint) ProtoReflect ¶
func (x *Entrypoint) ProtoReflect() protoreflect.Message
func (*Entrypoint) Reset ¶
func (x *Entrypoint) Reset()
func (*Entrypoint) String ¶
func (x *Entrypoint) String() string
type Reference ¶
type Reference struct { Repository string `protobuf:"bytes,1,opt,name=Repository,proto3" json:"Repository,omitempty"` Target string `protobuf:"bytes,2,opt,name=Target,proto3" json:"Target,omitempty"` // contains filtered or unexported fields }
func (*Reference) Descriptor
deprecated
func (*Reference) GetRepository ¶
func (*Reference) ProtoMessage ¶
func (*Reference) ProtoMessage()
func (*Reference) ProtoReflect ¶
func (x *Reference) ProtoReflect() protoreflect.Message
type Resource ¶
type Resource struct {
// contains filtered or unexported fields
}
func (*Resource) Descriptor
deprecated
func (*Resource) ProtoMessage ¶
func (*Resource) ProtoMessage()
func (*Resource) ProtoReflect ¶
func (x *Resource) ProtoReflect() protoreflect.Message
type UnimplementedDiffApiServer ¶
type UnimplementedDiffApiServer struct { }
UnimplementedDiffApiServer must be embedded to have forward compatible implementations.
func (UnimplementedDiffApiServer) Diff ¶
func (UnimplementedDiffApiServer) Diff(context.Context, *DiffRequest) (*DiffResponse, error)
type UnsafeDiffApiServer ¶
type UnsafeDiffApiServer interface {
// contains filtered or unexported methods
}
UnsafeDiffApiServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DiffApiServer will result in compilation errors.