Documentation ¶
Overview ¶
Package cloudv1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterBlueprintsServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterBlueprintsServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client BlueprintsServiceClient) error
- func RegisterBlueprintsServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterBlueprintsServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server BlueprintsServiceServer) error
- func RegisterBlueprintsServiceServer(s grpc.ServiceRegistrar, srv BlueprintsServiceServer)
- func RegisterPolicyServiceServer(s grpc.ServiceRegistrar, srv PolicyServiceServer)
- type ApplyRequest
- func (*ApplyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ApplyRequest) GetBlueprint() *Blueprint
- func (msg *ApplyRequest) MarshalJSON() ([]byte, error)
- func (m *ApplyRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *ApplyRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *ApplyRequest) MarshalVT() (dAtA []byte, err error)
- func (*ApplyRequest) ProtoMessage()
- func (x *ApplyRequest) ProtoReflect() protoreflect.Message
- func (x *ApplyRequest) Reset()
- func (m *ApplyRequest) SizeVT() (n int)
- func (x *ApplyRequest) String() string
- func (msg *ApplyRequest) UnmarshalJSON(b []byte) error
- func (m *ApplyRequest) UnmarshalVT(dAtA []byte) error
- func (m *ApplyRequest) Validate() error
- func (m *ApplyRequest) ValidateAll() error
- type ApplyRequestMultiError
- type ApplyRequestValidationError
- func (e ApplyRequestValidationError) Cause() error
- func (e ApplyRequestValidationError) Error() string
- func (e ApplyRequestValidationError) ErrorName() string
- func (e ApplyRequestValidationError) Field() string
- func (e ApplyRequestValidationError) Key() bool
- func (e ApplyRequestValidationError) Reason() string
- type Blueprint
- func (*Blueprint) Descriptor() ([]byte, []int)deprecated
- func (x *Blueprint) GetBlueprintsName() string
- func (x *Blueprint) GetPolicyName() string
- func (x *Blueprint) GetValues() []byte
- func (x *Blueprint) GetVersion() string
- func (msg *Blueprint) MarshalJSON() ([]byte, error)
- func (m *Blueprint) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Blueprint) MarshalToVT(dAtA []byte) (int, error)
- func (m *Blueprint) MarshalVT() (dAtA []byte, err error)
- func (*Blueprint) ProtoMessage()
- func (x *Blueprint) ProtoReflect() protoreflect.Message
- func (x *Blueprint) Reset()
- func (m *Blueprint) SizeVT() (n int)
- func (x *Blueprint) String() string
- func (msg *Blueprint) UnmarshalJSON(b []byte) error
- func (m *Blueprint) UnmarshalVT(dAtA []byte) error
- func (m *Blueprint) Validate() error
- func (m *Blueprint) ValidateAll() error
- type BlueprintMultiError
- type BlueprintValidationError
- type BlueprintsServiceClient
- type BlueprintsServiceServer
- type DeleteRequest
- func (*DeleteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteRequest) GetPolicyName() string
- func (msg *DeleteRequest) MarshalJSON() ([]byte, error)
- func (m *DeleteRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *DeleteRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *DeleteRequest) MarshalVT() (dAtA []byte, err error)
- func (*DeleteRequest) ProtoMessage()
- func (x *DeleteRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteRequest) Reset()
- func (m *DeleteRequest) SizeVT() (n int)
- func (x *DeleteRequest) String() string
- func (msg *DeleteRequest) UnmarshalJSON(b []byte) error
- func (m *DeleteRequest) UnmarshalVT(dAtA []byte) error
- func (m *DeleteRequest) Validate() error
- func (m *DeleteRequest) ValidateAll() error
- type DeleteRequestMultiError
- type DeleteRequestValidationError
- func (e DeleteRequestValidationError) Cause() error
- func (e DeleteRequestValidationError) Error() string
- func (e DeleteRequestValidationError) ErrorName() string
- func (e DeleteRequestValidationError) Field() string
- func (e DeleteRequestValidationError) Key() bool
- func (e DeleteRequestValidationError) Reason() string
- type GetRequest
- func (*GetRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetRequest) GetPolicyName() string
- func (msg *GetRequest) MarshalJSON() ([]byte, error)
- func (m *GetRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *GetRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *GetRequest) MarshalVT() (dAtA []byte, err error)
- func (*GetRequest) ProtoMessage()
- func (x *GetRequest) ProtoReflect() protoreflect.Message
- func (x *GetRequest) Reset()
- func (m *GetRequest) SizeVT() (n int)
- func (x *GetRequest) String() string
- func (msg *GetRequest) UnmarshalJSON(b []byte) error
- func (m *GetRequest) UnmarshalVT(dAtA []byte) error
- func (m *GetRequest) Validate() error
- func (m *GetRequest) ValidateAll() error
- type GetRequestMultiError
- type GetRequestValidationError
- type GetResponse
- func (*GetResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetResponse) GetBlueprint() *Blueprint
- func (msg *GetResponse) MarshalJSON() ([]byte, error)
- func (m *GetResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *GetResponse) MarshalToVT(dAtA []byte) (int, error)
- func (m *GetResponse) MarshalVT() (dAtA []byte, err error)
- func (*GetResponse) ProtoMessage()
- func (x *GetResponse) ProtoReflect() protoreflect.Message
- func (x *GetResponse) Reset()
- func (m *GetResponse) SizeVT() (n int)
- func (x *GetResponse) String() string
- func (msg *GetResponse) UnmarshalJSON(b []byte) error
- func (m *GetResponse) UnmarshalVT(dAtA []byte) error
- func (m *GetResponse) Validate() error
- func (m *GetResponse) ValidateAll() error
- type GetResponseMultiError
- type GetResponseValidationError
- func (e GetResponseValidationError) Cause() error
- func (e GetResponseValidationError) Error() string
- func (e GetResponseValidationError) ErrorName() string
- func (e GetResponseValidationError) Field() string
- func (e GetResponseValidationError) Key() bool
- func (e GetResponseValidationError) Reason() string
- type ListResponse
- func (*ListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListResponse) GetBlueprints() []*Blueprint
- func (msg *ListResponse) MarshalJSON() ([]byte, error)
- func (m *ListResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *ListResponse) MarshalToVT(dAtA []byte) (int, error)
- func (m *ListResponse) MarshalVT() (dAtA []byte, err error)
- func (*ListResponse) ProtoMessage()
- func (x *ListResponse) ProtoReflect() protoreflect.Message
- func (x *ListResponse) Reset()
- func (m *ListResponse) SizeVT() (n int)
- func (x *ListResponse) String() string
- func (msg *ListResponse) UnmarshalJSON(b []byte) error
- func (m *ListResponse) UnmarshalVT(dAtA []byte) error
- func (m *ListResponse) Validate() error
- func (m *ListResponse) ValidateAll() error
- type ListResponseMultiError
- type ListResponseValidationError
- func (e ListResponseValidationError) Cause() error
- func (e ListResponseValidationError) Error() string
- func (e ListResponseValidationError) ErrorName() string
- func (e ListResponseValidationError) Field() string
- func (e ListResponseValidationError) Key() bool
- func (e ListResponseValidationError) Reason() string
- type PolicyServiceClient
- type PolicyServiceServer
- type UnimplementedBlueprintsServiceServer
- func (UnimplementedBlueprintsServiceServer) Apply(context.Context, *ApplyRequest) (*emptypb.Empty, error)
- func (UnimplementedBlueprintsServiceServer) Archive(context.Context, *DeleteRequest) (*emptypb.Empty, error)
- func (UnimplementedBlueprintsServiceServer) Delete(context.Context, *DeleteRequest) (*emptypb.Empty, error)
- func (UnimplementedBlueprintsServiceServer) Get(context.Context, *GetRequest) (*GetResponse, error)
- func (UnimplementedBlueprintsServiceServer) List(context.Context, *emptypb.Empty) (*ListResponse, error)
- type UnimplementedPolicyServiceServer
- func (UnimplementedPolicyServiceServer) ArchivePolicy(context.Context, *v1.DeletePolicyRequest) (*emptypb.Empty, error)
- func (UnimplementedPolicyServiceServer) DeletePolicy(context.Context, *v1.DeletePolicyRequest) (*emptypb.Empty, error)
- func (UnimplementedPolicyServiceServer) UpsertPolicy(context.Context, *v1.UpsertPolicyRequest) (*v1.UpsertPolicyResponse, error)
- type UnsafeBlueprintsServiceServer
- type UnsafePolicyServiceServer
Constants ¶
const ( BlueprintsService_List_FullMethodName = "/aperture.cloud.v1.BlueprintsService/List" BlueprintsService_Get_FullMethodName = "/aperture.cloud.v1.BlueprintsService/Get" BlueprintsService_Apply_FullMethodName = "/aperture.cloud.v1.BlueprintsService/Apply" BlueprintsService_Delete_FullMethodName = "/aperture.cloud.v1.BlueprintsService/Delete" BlueprintsService_Archive_FullMethodName = "/aperture.cloud.v1.BlueprintsService/Archive" )
const ( PolicyService_UpsertPolicy_FullMethodName = "/aperture.cloud.v1.PolicyService/UpsertPolicy" PolicyService_DeletePolicy_FullMethodName = "/aperture.cloud.v1.PolicyService/DeletePolicy" PolicyService_ArchivePolicy_FullMethodName = "/aperture.cloud.v1.PolicyService/ArchivePolicy" )
Variables ¶
var ( ErrInvalidLength = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflow = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroup = fmt.Errorf("proto: unexpected end of group") )
var BlueprintsService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "aperture.cloud.v1.BlueprintsService", HandlerType: (*BlueprintsServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "List", Handler: _BlueprintsService_List_Handler, }, { MethodName: "Get", Handler: _BlueprintsService_Get_Handler, }, { MethodName: "Apply", Handler: _BlueprintsService_Apply_Handler, }, { MethodName: "Delete", Handler: _BlueprintsService_Delete_Handler, }, { MethodName: "Archive", Handler: _BlueprintsService_Archive_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "aperture/cloud/v1/blueprints.proto", }
BlueprintsService_ServiceDesc is the grpc.ServiceDesc for BlueprintsService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_aperture_cloud_v1_blueprints_proto protoreflect.FileDescriptor
var File_aperture_cloud_v1_policy_proto protoreflect.FileDescriptor
var PolicyService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "aperture.cloud.v1.PolicyService", HandlerType: (*PolicyServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "UpsertPolicy", Handler: _PolicyService_UpsertPolicy_Handler, }, { MethodName: "DeletePolicy", Handler: _PolicyService_DeletePolicy_Handler, }, { MethodName: "ArchivePolicy", Handler: _PolicyService_ArchivePolicy_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "aperture/cloud/v1/policy.proto", }
PolicyService_ServiceDesc is the grpc.ServiceDesc for PolicyService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterBlueprintsServiceHandler ¶
func RegisterBlueprintsServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterBlueprintsServiceHandler registers the http handlers for service BlueprintsService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterBlueprintsServiceHandlerClient ¶
func RegisterBlueprintsServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client BlueprintsServiceClient) error
RegisterBlueprintsServiceHandlerClient registers the http handlers for service BlueprintsService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "BlueprintsServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "BlueprintsServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "BlueprintsServiceClient" to call the correct interceptors.
func RegisterBlueprintsServiceHandlerFromEndpoint ¶
func RegisterBlueprintsServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterBlueprintsServiceHandlerFromEndpoint is same as RegisterBlueprintsServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterBlueprintsServiceHandlerServer ¶
func RegisterBlueprintsServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server BlueprintsServiceServer) error
RegisterBlueprintsServiceHandlerServer registers the http handlers for service BlueprintsService to "mux". UnaryRPC :call BlueprintsServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterBlueprintsServiceHandlerFromEndpoint instead.
func RegisterBlueprintsServiceServer ¶
func RegisterBlueprintsServiceServer(s grpc.ServiceRegistrar, srv BlueprintsServiceServer)
func RegisterPolicyServiceServer ¶
func RegisterPolicyServiceServer(s grpc.ServiceRegistrar, srv PolicyServiceServer)
Types ¶
type ApplyRequest ¶
type ApplyRequest struct { Blueprint *Blueprint `protobuf:"bytes,1,opt,name=blueprint,proto3" json:"blueprint,omitempty"` // contains filtered or unexported fields }
func (*ApplyRequest) Descriptor
deprecated
func (*ApplyRequest) Descriptor() ([]byte, []int)
Deprecated: Use ApplyRequest.ProtoReflect.Descriptor instead.
func (*ApplyRequest) GetBlueprint ¶
func (x *ApplyRequest) GetBlueprint() *Blueprint
func (*ApplyRequest) MarshalJSON ¶
func (msg *ApplyRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler
func (*ApplyRequest) MarshalToSizedBufferVT ¶
func (m *ApplyRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*ApplyRequest) MarshalToVT ¶
func (m *ApplyRequest) MarshalToVT(dAtA []byte) (int, error)
func (*ApplyRequest) MarshalVT ¶
func (m *ApplyRequest) MarshalVT() (dAtA []byte, err error)
func (*ApplyRequest) ProtoMessage ¶
func (*ApplyRequest) ProtoMessage()
func (*ApplyRequest) ProtoReflect ¶
func (x *ApplyRequest) ProtoReflect() protoreflect.Message
func (*ApplyRequest) Reset ¶
func (x *ApplyRequest) Reset()
func (*ApplyRequest) SizeVT ¶
func (m *ApplyRequest) SizeVT() (n int)
func (*ApplyRequest) String ¶
func (x *ApplyRequest) String() string
func (*ApplyRequest) UnmarshalJSON ¶
func (msg *ApplyRequest) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler
func (*ApplyRequest) UnmarshalVT ¶
func (m *ApplyRequest) UnmarshalVT(dAtA []byte) error
func (*ApplyRequest) Validate ¶
func (m *ApplyRequest) Validate() error
Validate checks the field values on ApplyRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ApplyRequest) ValidateAll ¶
func (m *ApplyRequest) ValidateAll() error
ValidateAll checks the field values on ApplyRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ApplyRequestMultiError, or nil if none found.
type ApplyRequestMultiError ¶
type ApplyRequestMultiError []error
ApplyRequestMultiError is an error wrapping multiple validation errors returned by ApplyRequest.ValidateAll() if the designated constraints aren't met.
func (ApplyRequestMultiError) AllErrors ¶
func (m ApplyRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ApplyRequestMultiError) Error ¶
func (m ApplyRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ApplyRequestValidationError ¶
type ApplyRequestValidationError struct {
// contains filtered or unexported fields
}
ApplyRequestValidationError is the validation error returned by ApplyRequest.Validate if the designated constraints aren't met.
func (ApplyRequestValidationError) Cause ¶
func (e ApplyRequestValidationError) Cause() error
Cause function returns cause value.
func (ApplyRequestValidationError) Error ¶
func (e ApplyRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ApplyRequestValidationError) ErrorName ¶
func (e ApplyRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ApplyRequestValidationError) Field ¶
func (e ApplyRequestValidationError) Field() string
Field function returns field value.
func (ApplyRequestValidationError) Key ¶
func (e ApplyRequestValidationError) Key() bool
Key function returns key value.
func (ApplyRequestValidationError) Reason ¶
func (e ApplyRequestValidationError) Reason() string
Reason function returns reason value.
type Blueprint ¶
type Blueprint struct { BlueprintsName string `protobuf:"bytes,1,opt,name=blueprints_name,json=blueprintsName,proto3" json:"blueprints_name,omitempty"` Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` PolicyName string `protobuf:"bytes,3,opt,name=policy_name,json=policyName,proto3" json:"policy_name,omitempty"` Values []byte `protobuf:"bytes,4,opt,name=values,proto3" json:"values,omitempty"` // contains filtered or unexported fields }
func (*Blueprint) Descriptor
deprecated
func (*Blueprint) GetBlueprintsName ¶
func (*Blueprint) GetPolicyName ¶
func (*Blueprint) GetVersion ¶
func (*Blueprint) MarshalJSON ¶
MarshalJSON implements json.Marshaler
func (*Blueprint) MarshalToSizedBufferVT ¶
func (*Blueprint) ProtoMessage ¶
func (*Blueprint) ProtoMessage()
func (*Blueprint) ProtoReflect ¶
func (x *Blueprint) ProtoReflect() protoreflect.Message
func (*Blueprint) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler
func (*Blueprint) UnmarshalVT ¶
func (*Blueprint) Validate ¶
Validate checks the field values on Blueprint with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Blueprint) ValidateAll ¶
ValidateAll checks the field values on Blueprint with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in BlueprintMultiError, or nil if none found.
type BlueprintMultiError ¶
type BlueprintMultiError []error
BlueprintMultiError is an error wrapping multiple validation errors returned by Blueprint.ValidateAll() if the designated constraints aren't met.
func (BlueprintMultiError) AllErrors ¶
func (m BlueprintMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (BlueprintMultiError) Error ¶
func (m BlueprintMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type BlueprintValidationError ¶
type BlueprintValidationError struct {
// contains filtered or unexported fields
}
BlueprintValidationError is the validation error returned by Blueprint.Validate if the designated constraints aren't met.
func (BlueprintValidationError) Cause ¶
func (e BlueprintValidationError) Cause() error
Cause function returns cause value.
func (BlueprintValidationError) Error ¶
func (e BlueprintValidationError) Error() string
Error satisfies the builtin error interface
func (BlueprintValidationError) ErrorName ¶
func (e BlueprintValidationError) ErrorName() string
ErrorName returns error name.
func (BlueprintValidationError) Field ¶
func (e BlueprintValidationError) Field() string
Field function returns field value.
func (BlueprintValidationError) Key ¶
func (e BlueprintValidationError) Key() bool
Key function returns key value.
func (BlueprintValidationError) Reason ¶
func (e BlueprintValidationError) Reason() string
Reason function returns reason value.
type BlueprintsServiceClient ¶
type BlueprintsServiceClient interface { List(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ListResponse, error) Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) Apply(ctx context.Context, in *ApplyRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) Archive(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) }
BlueprintsServiceClient is the client API for BlueprintsService 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 NewBlueprintsServiceClient ¶
func NewBlueprintsServiceClient(cc grpc.ClientConnInterface) BlueprintsServiceClient
type BlueprintsServiceServer ¶
type BlueprintsServiceServer interface { List(context.Context, *emptypb.Empty) (*ListResponse, error) Get(context.Context, *GetRequest) (*GetResponse, error) Apply(context.Context, *ApplyRequest) (*emptypb.Empty, error) Delete(context.Context, *DeleteRequest) (*emptypb.Empty, error) Archive(context.Context, *DeleteRequest) (*emptypb.Empty, error) }
BlueprintsServiceServer is the server API for BlueprintsService service. All implementations should embed UnimplementedBlueprintsServiceServer for forward compatibility
type DeleteRequest ¶
type DeleteRequest struct { PolicyName string `protobuf:"bytes,1,opt,name=policy_name,json=policyName,proto3" json:"policy_name,omitempty"` // contains filtered or unexported fields }
func (*DeleteRequest) Descriptor
deprecated
func (*DeleteRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.
func (*DeleteRequest) GetPolicyName ¶
func (x *DeleteRequest) GetPolicyName() string
func (*DeleteRequest) MarshalJSON ¶
func (msg *DeleteRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler
func (*DeleteRequest) MarshalToSizedBufferVT ¶
func (m *DeleteRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*DeleteRequest) MarshalToVT ¶
func (m *DeleteRequest) MarshalToVT(dAtA []byte) (int, error)
func (*DeleteRequest) MarshalVT ¶
func (m *DeleteRequest) MarshalVT() (dAtA []byte, err error)
func (*DeleteRequest) ProtoMessage ¶
func (*DeleteRequest) ProtoMessage()
func (*DeleteRequest) ProtoReflect ¶
func (x *DeleteRequest) ProtoReflect() protoreflect.Message
func (*DeleteRequest) Reset ¶
func (x *DeleteRequest) Reset()
func (*DeleteRequest) SizeVT ¶
func (m *DeleteRequest) SizeVT() (n int)
func (*DeleteRequest) String ¶
func (x *DeleteRequest) String() string
func (*DeleteRequest) UnmarshalJSON ¶
func (msg *DeleteRequest) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler
func (*DeleteRequest) UnmarshalVT ¶
func (m *DeleteRequest) UnmarshalVT(dAtA []byte) error
func (*DeleteRequest) Validate ¶
func (m *DeleteRequest) Validate() error
Validate checks the field values on DeleteRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*DeleteRequest) ValidateAll ¶
func (m *DeleteRequest) ValidateAll() error
ValidateAll checks the field values on DeleteRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteRequestMultiError, or nil if none found.
type DeleteRequestMultiError ¶
type DeleteRequestMultiError []error
DeleteRequestMultiError is an error wrapping multiple validation errors returned by DeleteRequest.ValidateAll() if the designated constraints aren't met.
func (DeleteRequestMultiError) AllErrors ¶
func (m DeleteRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteRequestMultiError) Error ¶
func (m DeleteRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteRequestValidationError ¶
type DeleteRequestValidationError struct {
// contains filtered or unexported fields
}
DeleteRequestValidationError is the validation error returned by DeleteRequest.Validate if the designated constraints aren't met.
func (DeleteRequestValidationError) Cause ¶
func (e DeleteRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteRequestValidationError) Error ¶
func (e DeleteRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteRequestValidationError) ErrorName ¶
func (e DeleteRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteRequestValidationError) Field ¶
func (e DeleteRequestValidationError) Field() string
Field function returns field value.
func (DeleteRequestValidationError) Key ¶
func (e DeleteRequestValidationError) Key() bool
Key function returns key value.
func (DeleteRequestValidationError) Reason ¶
func (e DeleteRequestValidationError) Reason() string
Reason function returns reason value.
type GetRequest ¶
type GetRequest struct { PolicyName string `protobuf:"bytes,1,opt,name=policy_name,json=policyName,proto3" json:"policy_name,omitempty"` // contains filtered or unexported fields }
func (*GetRequest) Descriptor
deprecated
func (*GetRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.
func (*GetRequest) GetPolicyName ¶
func (x *GetRequest) GetPolicyName() string
func (*GetRequest) MarshalJSON ¶
func (msg *GetRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler
func (*GetRequest) MarshalToSizedBufferVT ¶
func (m *GetRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*GetRequest) MarshalToVT ¶
func (m *GetRequest) MarshalToVT(dAtA []byte) (int, error)
func (*GetRequest) MarshalVT ¶
func (m *GetRequest) MarshalVT() (dAtA []byte, err error)
func (*GetRequest) ProtoMessage ¶
func (*GetRequest) ProtoMessage()
func (*GetRequest) ProtoReflect ¶
func (x *GetRequest) ProtoReflect() protoreflect.Message
func (*GetRequest) Reset ¶
func (x *GetRequest) Reset()
func (*GetRequest) SizeVT ¶
func (m *GetRequest) SizeVT() (n int)
func (*GetRequest) String ¶
func (x *GetRequest) String() string
func (*GetRequest) UnmarshalJSON ¶
func (msg *GetRequest) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler
func (*GetRequest) UnmarshalVT ¶
func (m *GetRequest) UnmarshalVT(dAtA []byte) error
func (*GetRequest) Validate ¶
func (m *GetRequest) Validate() error
Validate checks the field values on GetRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetRequest) ValidateAll ¶
func (m *GetRequest) ValidateAll() error
ValidateAll checks the field values on GetRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetRequestMultiError, or nil if none found.
type GetRequestMultiError ¶
type GetRequestMultiError []error
GetRequestMultiError is an error wrapping multiple validation errors returned by GetRequest.ValidateAll() if the designated constraints aren't met.
func (GetRequestMultiError) AllErrors ¶
func (m GetRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetRequestMultiError) Error ¶
func (m GetRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetRequestValidationError ¶
type GetRequestValidationError struct {
// contains filtered or unexported fields
}
GetRequestValidationError is the validation error returned by GetRequest.Validate if the designated constraints aren't met.
func (GetRequestValidationError) Cause ¶
func (e GetRequestValidationError) Cause() error
Cause function returns cause value.
func (GetRequestValidationError) Error ¶
func (e GetRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetRequestValidationError) ErrorName ¶
func (e GetRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetRequestValidationError) Field ¶
func (e GetRequestValidationError) Field() string
Field function returns field value.
func (GetRequestValidationError) Key ¶
func (e GetRequestValidationError) Key() bool
Key function returns key value.
func (GetRequestValidationError) Reason ¶
func (e GetRequestValidationError) Reason() string
Reason function returns reason value.
type GetResponse ¶
type GetResponse struct { Blueprint *Blueprint `protobuf:"bytes,1,opt,name=blueprint,proto3" json:"blueprint,omitempty"` // contains filtered or unexported fields }
func (*GetResponse) Descriptor
deprecated
func (*GetResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetResponse.ProtoReflect.Descriptor instead.
func (*GetResponse) GetBlueprint ¶
func (x *GetResponse) GetBlueprint() *Blueprint
func (*GetResponse) MarshalJSON ¶
func (msg *GetResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler
func (*GetResponse) MarshalToSizedBufferVT ¶
func (m *GetResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*GetResponse) MarshalToVT ¶
func (m *GetResponse) MarshalToVT(dAtA []byte) (int, error)
func (*GetResponse) MarshalVT ¶
func (m *GetResponse) MarshalVT() (dAtA []byte, err error)
func (*GetResponse) ProtoMessage ¶
func (*GetResponse) ProtoMessage()
func (*GetResponse) ProtoReflect ¶
func (x *GetResponse) ProtoReflect() protoreflect.Message
func (*GetResponse) Reset ¶
func (x *GetResponse) Reset()
func (*GetResponse) SizeVT ¶
func (m *GetResponse) SizeVT() (n int)
func (*GetResponse) String ¶
func (x *GetResponse) String() string
func (*GetResponse) UnmarshalJSON ¶
func (msg *GetResponse) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler
func (*GetResponse) UnmarshalVT ¶
func (m *GetResponse) UnmarshalVT(dAtA []byte) error
func (*GetResponse) Validate ¶
func (m *GetResponse) Validate() error
Validate checks the field values on GetResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetResponse) ValidateAll ¶
func (m *GetResponse) ValidateAll() error
ValidateAll checks the field values on GetResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetResponseMultiError, or nil if none found.
type GetResponseMultiError ¶
type GetResponseMultiError []error
GetResponseMultiError is an error wrapping multiple validation errors returned by GetResponse.ValidateAll() if the designated constraints aren't met.
func (GetResponseMultiError) AllErrors ¶
func (m GetResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetResponseMultiError) Error ¶
func (m GetResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetResponseValidationError ¶
type GetResponseValidationError struct {
// contains filtered or unexported fields
}
GetResponseValidationError is the validation error returned by GetResponse.Validate if the designated constraints aren't met.
func (GetResponseValidationError) Cause ¶
func (e GetResponseValidationError) Cause() error
Cause function returns cause value.
func (GetResponseValidationError) Error ¶
func (e GetResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetResponseValidationError) ErrorName ¶
func (e GetResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetResponseValidationError) Field ¶
func (e GetResponseValidationError) Field() string
Field function returns field value.
func (GetResponseValidationError) Key ¶
func (e GetResponseValidationError) Key() bool
Key function returns key value.
func (GetResponseValidationError) Reason ¶
func (e GetResponseValidationError) Reason() string
Reason function returns reason value.
type ListResponse ¶
type ListResponse struct { Blueprints []*Blueprint `protobuf:"bytes,1,rep,name=blueprints,proto3" json:"blueprints,omitempty"` // contains filtered or unexported fields }
func (*ListResponse) Descriptor
deprecated
func (*ListResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListResponse.ProtoReflect.Descriptor instead.
func (*ListResponse) GetBlueprints ¶
func (x *ListResponse) GetBlueprints() []*Blueprint
func (*ListResponse) MarshalJSON ¶
func (msg *ListResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler
func (*ListResponse) MarshalToSizedBufferVT ¶
func (m *ListResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*ListResponse) MarshalToVT ¶
func (m *ListResponse) MarshalToVT(dAtA []byte) (int, error)
func (*ListResponse) MarshalVT ¶
func (m *ListResponse) MarshalVT() (dAtA []byte, err error)
func (*ListResponse) ProtoMessage ¶
func (*ListResponse) ProtoMessage()
func (*ListResponse) ProtoReflect ¶
func (x *ListResponse) ProtoReflect() protoreflect.Message
func (*ListResponse) Reset ¶
func (x *ListResponse) Reset()
func (*ListResponse) SizeVT ¶
func (m *ListResponse) SizeVT() (n int)
func (*ListResponse) String ¶
func (x *ListResponse) String() string
func (*ListResponse) UnmarshalJSON ¶
func (msg *ListResponse) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler
func (*ListResponse) UnmarshalVT ¶
func (m *ListResponse) UnmarshalVT(dAtA []byte) error
func (*ListResponse) Validate ¶
func (m *ListResponse) Validate() error
Validate checks the field values on ListResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ListResponse) ValidateAll ¶
func (m *ListResponse) ValidateAll() error
ValidateAll checks the field values on ListResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListResponseMultiError, or nil if none found.
type ListResponseMultiError ¶
type ListResponseMultiError []error
ListResponseMultiError is an error wrapping multiple validation errors returned by ListResponse.ValidateAll() if the designated constraints aren't met.
func (ListResponseMultiError) AllErrors ¶
func (m ListResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListResponseMultiError) Error ¶
func (m ListResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListResponseValidationError ¶
type ListResponseValidationError struct {
// contains filtered or unexported fields
}
ListResponseValidationError is the validation error returned by ListResponse.Validate if the designated constraints aren't met.
func (ListResponseValidationError) Cause ¶
func (e ListResponseValidationError) Cause() error
Cause function returns cause value.
func (ListResponseValidationError) Error ¶
func (e ListResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ListResponseValidationError) ErrorName ¶
func (e ListResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ListResponseValidationError) Field ¶
func (e ListResponseValidationError) Field() string
Field function returns field value.
func (ListResponseValidationError) Key ¶
func (e ListResponseValidationError) Key() bool
Key function returns key value.
func (ListResponseValidationError) Reason ¶
func (e ListResponseValidationError) Reason() string
Reason function returns reason value.
type PolicyServiceClient ¶
type PolicyServiceClient interface { UpsertPolicy(ctx context.Context, in *v1.UpsertPolicyRequest, opts ...grpc.CallOption) (*v1.UpsertPolicyResponse, error) DeletePolicy(ctx context.Context, in *v1.DeletePolicyRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) ArchivePolicy(ctx context.Context, in *v1.DeletePolicyRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) }
PolicyServiceClient is the client API for PolicyService 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 NewPolicyServiceClient ¶
func NewPolicyServiceClient(cc grpc.ClientConnInterface) PolicyServiceClient
type PolicyServiceServer ¶
type PolicyServiceServer interface { UpsertPolicy(context.Context, *v1.UpsertPolicyRequest) (*v1.UpsertPolicyResponse, error) DeletePolicy(context.Context, *v1.DeletePolicyRequest) (*emptypb.Empty, error) ArchivePolicy(context.Context, *v1.DeletePolicyRequest) (*emptypb.Empty, error) }
PolicyServiceServer is the server API for PolicyService service. All implementations should embed UnimplementedPolicyServiceServer for forward compatibility
type UnimplementedBlueprintsServiceServer ¶
type UnimplementedBlueprintsServiceServer struct { }
UnimplementedBlueprintsServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedBlueprintsServiceServer) Apply ¶
func (UnimplementedBlueprintsServiceServer) Apply(context.Context, *ApplyRequest) (*emptypb.Empty, error)
func (UnimplementedBlueprintsServiceServer) Archive ¶
func (UnimplementedBlueprintsServiceServer) Archive(context.Context, *DeleteRequest) (*emptypb.Empty, error)
func (UnimplementedBlueprintsServiceServer) Delete ¶
func (UnimplementedBlueprintsServiceServer) Delete(context.Context, *DeleteRequest) (*emptypb.Empty, error)
func (UnimplementedBlueprintsServiceServer) Get ¶
func (UnimplementedBlueprintsServiceServer) Get(context.Context, *GetRequest) (*GetResponse, error)
func (UnimplementedBlueprintsServiceServer) List ¶
func (UnimplementedBlueprintsServiceServer) List(context.Context, *emptypb.Empty) (*ListResponse, error)
type UnimplementedPolicyServiceServer ¶
type UnimplementedPolicyServiceServer struct { }
UnimplementedPolicyServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedPolicyServiceServer) ArchivePolicy ¶
func (UnimplementedPolicyServiceServer) ArchivePolicy(context.Context, *v1.DeletePolicyRequest) (*emptypb.Empty, error)
func (UnimplementedPolicyServiceServer) DeletePolicy ¶
func (UnimplementedPolicyServiceServer) DeletePolicy(context.Context, *v1.DeletePolicyRequest) (*emptypb.Empty, error)
func (UnimplementedPolicyServiceServer) UpsertPolicy ¶
func (UnimplementedPolicyServiceServer) UpsertPolicy(context.Context, *v1.UpsertPolicyRequest) (*v1.UpsertPolicyResponse, error)
type UnsafeBlueprintsServiceServer ¶
type UnsafeBlueprintsServiceServer interface {
// contains filtered or unexported methods
}
UnsafeBlueprintsServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to BlueprintsServiceServer will result in compilation errors.
type UnsafePolicyServiceServer ¶
type UnsafePolicyServiceServer interface {
// contains filtered or unexported methods
}
UnsafePolicyServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PolicyServiceServer will result in compilation errors.