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 ¶ added in v2.20.0
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 ¶ added in v2.20.0
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 ¶ added in v2.20.0
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 ¶ added in v2.20.0
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 ¶ added in v2.20.0
func RegisterBlueprintsServiceServer(s grpc.ServiceRegistrar, srv BlueprintsServiceServer)
func RegisterPolicyServiceServer ¶
func RegisterPolicyServiceServer(s grpc.ServiceRegistrar, srv PolicyServiceServer)
Types ¶
type ApplyRequest ¶ added in v2.20.0
type ApplyRequest struct { Blueprint *Blueprint `protobuf:"bytes,1,opt,name=blueprint,proto3" json:"blueprint,omitempty"` // contains filtered or unexported fields }
func (*ApplyRequest) Descriptor
deprecated
added in
v2.20.0
func (*ApplyRequest) Descriptor() ([]byte, []int)
Deprecated: Use ApplyRequest.ProtoReflect.Descriptor instead.
func (*ApplyRequest) GetBlueprint ¶ added in v2.20.0
func (x *ApplyRequest) GetBlueprint() *Blueprint
func (*ApplyRequest) MarshalJSON ¶ added in v2.20.0
func (msg *ApplyRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler
func (*ApplyRequest) MarshalToSizedBufferVT ¶ added in v2.20.0
func (m *ApplyRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*ApplyRequest) MarshalToVT ¶ added in v2.20.0
func (m *ApplyRequest) MarshalToVT(dAtA []byte) (int, error)
func (*ApplyRequest) MarshalVT ¶ added in v2.20.0
func (m *ApplyRequest) MarshalVT() (dAtA []byte, err error)
func (*ApplyRequest) ProtoMessage ¶ added in v2.20.0
func (*ApplyRequest) ProtoMessage()
func (*ApplyRequest) ProtoReflect ¶ added in v2.20.0
func (x *ApplyRequest) ProtoReflect() protoreflect.Message
func (*ApplyRequest) Reset ¶ added in v2.20.0
func (x *ApplyRequest) Reset()
func (*ApplyRequest) SizeVT ¶ added in v2.20.0
func (m *ApplyRequest) SizeVT() (n int)
func (*ApplyRequest) String ¶ added in v2.20.0
func (x *ApplyRequest) String() string
func (*ApplyRequest) UnmarshalJSON ¶ added in v2.20.0
func (msg *ApplyRequest) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler
func (*ApplyRequest) UnmarshalVT ¶ added in v2.20.0
func (m *ApplyRequest) UnmarshalVT(dAtA []byte) error
func (*ApplyRequest) Validate ¶ added in v2.20.0
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 ¶ added in v2.20.0
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 ¶ added in v2.20.0
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 ¶ added in v2.20.0
func (m ApplyRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ApplyRequestMultiError) Error ¶ added in v2.20.0
func (m ApplyRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ApplyRequestValidationError ¶ added in v2.20.0
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 ¶ added in v2.20.0
func (e ApplyRequestValidationError) Cause() error
Cause function returns cause value.
func (ApplyRequestValidationError) Error ¶ added in v2.20.0
func (e ApplyRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ApplyRequestValidationError) ErrorName ¶ added in v2.20.0
func (e ApplyRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ApplyRequestValidationError) Field ¶ added in v2.20.0
func (e ApplyRequestValidationError) Field() string
Field function returns field value.
func (ApplyRequestValidationError) Key ¶ added in v2.20.0
func (e ApplyRequestValidationError) Key() bool
Key function returns key value.
func (ApplyRequestValidationError) Reason ¶ added in v2.20.0
func (e ApplyRequestValidationError) Reason() string
Reason function returns reason value.
type Blueprint ¶ added in v2.20.0
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
added in
v2.20.0
func (*Blueprint) GetBlueprintsName ¶ added in v2.20.0
func (*Blueprint) GetPolicyName ¶ added in v2.20.0
func (*Blueprint) GetVersion ¶ added in v2.20.0
func (*Blueprint) MarshalJSON ¶ added in v2.20.0
MarshalJSON implements json.Marshaler
func (*Blueprint) MarshalToSizedBufferVT ¶ added in v2.20.0
func (*Blueprint) MarshalToVT ¶ added in v2.20.0
func (*Blueprint) ProtoMessage ¶ added in v2.20.0
func (*Blueprint) ProtoMessage()
func (*Blueprint) ProtoReflect ¶ added in v2.20.0
func (x *Blueprint) ProtoReflect() protoreflect.Message
func (*Blueprint) UnmarshalJSON ¶ added in v2.20.0
UnmarshalJSON implements json.Unmarshaler
func (*Blueprint) UnmarshalVT ¶ added in v2.20.0
func (*Blueprint) Validate ¶ added in v2.20.0
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 ¶ added in v2.20.0
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 ¶ added in v2.20.0
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 ¶ added in v2.20.0
func (m BlueprintMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (BlueprintMultiError) Error ¶ added in v2.20.0
func (m BlueprintMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type BlueprintValidationError ¶ added in v2.20.0
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 ¶ added in v2.20.0
func (e BlueprintValidationError) Cause() error
Cause function returns cause value.
func (BlueprintValidationError) Error ¶ added in v2.20.0
func (e BlueprintValidationError) Error() string
Error satisfies the builtin error interface
func (BlueprintValidationError) ErrorName ¶ added in v2.20.0
func (e BlueprintValidationError) ErrorName() string
ErrorName returns error name.
func (BlueprintValidationError) Field ¶ added in v2.20.0
func (e BlueprintValidationError) Field() string
Field function returns field value.
func (BlueprintValidationError) Key ¶ added in v2.20.0
func (e BlueprintValidationError) Key() bool
Key function returns key value.
func (BlueprintValidationError) Reason ¶ added in v2.20.0
func (e BlueprintValidationError) Reason() string
Reason function returns reason value.
type BlueprintsServiceClient ¶ added in v2.20.0
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 ¶ added in v2.20.0
func NewBlueprintsServiceClient(cc grpc.ClientConnInterface) BlueprintsServiceClient
type BlueprintsServiceServer ¶ added in v2.20.0
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 ¶ added in v2.20.0
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
added in
v2.20.0
func (*DeleteRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.
func (*DeleteRequest) GetPolicyName ¶ added in v2.20.0
func (x *DeleteRequest) GetPolicyName() string
func (*DeleteRequest) MarshalJSON ¶ added in v2.20.0
func (msg *DeleteRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler
func (*DeleteRequest) MarshalToSizedBufferVT ¶ added in v2.20.0
func (m *DeleteRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*DeleteRequest) MarshalToVT ¶ added in v2.20.0
func (m *DeleteRequest) MarshalToVT(dAtA []byte) (int, error)
func (*DeleteRequest) MarshalVT ¶ added in v2.20.0
func (m *DeleteRequest) MarshalVT() (dAtA []byte, err error)
func (*DeleteRequest) ProtoMessage ¶ added in v2.20.0
func (*DeleteRequest) ProtoMessage()
func (*DeleteRequest) ProtoReflect ¶ added in v2.20.0
func (x *DeleteRequest) ProtoReflect() protoreflect.Message
func (*DeleteRequest) Reset ¶ added in v2.20.0
func (x *DeleteRequest) Reset()
func (*DeleteRequest) SizeVT ¶ added in v2.20.0
func (m *DeleteRequest) SizeVT() (n int)
func (*DeleteRequest) String ¶ added in v2.20.0
func (x *DeleteRequest) String() string
func (*DeleteRequest) UnmarshalJSON ¶ added in v2.20.0
func (msg *DeleteRequest) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler
func (*DeleteRequest) UnmarshalVT ¶ added in v2.20.0
func (m *DeleteRequest) UnmarshalVT(dAtA []byte) error
func (*DeleteRequest) Validate ¶ added in v2.20.0
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 ¶ added in v2.20.0
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 ¶ added in v2.20.0
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 ¶ added in v2.20.0
func (m DeleteRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteRequestMultiError) Error ¶ added in v2.20.0
func (m DeleteRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteRequestValidationError ¶ added in v2.20.0
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 ¶ added in v2.20.0
func (e DeleteRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteRequestValidationError) Error ¶ added in v2.20.0
func (e DeleteRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteRequestValidationError) ErrorName ¶ added in v2.20.0
func (e DeleteRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteRequestValidationError) Field ¶ added in v2.20.0
func (e DeleteRequestValidationError) Field() string
Field function returns field value.
func (DeleteRequestValidationError) Key ¶ added in v2.20.0
func (e DeleteRequestValidationError) Key() bool
Key function returns key value.
func (DeleteRequestValidationError) Reason ¶ added in v2.20.0
func (e DeleteRequestValidationError) Reason() string
Reason function returns reason value.
type GetRequest ¶ added in v2.20.0
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
added in
v2.20.0
func (*GetRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.
func (*GetRequest) GetPolicyName ¶ added in v2.20.0
func (x *GetRequest) GetPolicyName() string
func (*GetRequest) MarshalJSON ¶ added in v2.20.0
func (msg *GetRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler
func (*GetRequest) MarshalToSizedBufferVT ¶ added in v2.20.0
func (m *GetRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*GetRequest) MarshalToVT ¶ added in v2.20.0
func (m *GetRequest) MarshalToVT(dAtA []byte) (int, error)
func (*GetRequest) MarshalVT ¶ added in v2.20.0
func (m *GetRequest) MarshalVT() (dAtA []byte, err error)
func (*GetRequest) ProtoMessage ¶ added in v2.20.0
func (*GetRequest) ProtoMessage()
func (*GetRequest) ProtoReflect ¶ added in v2.20.0
func (x *GetRequest) ProtoReflect() protoreflect.Message
func (*GetRequest) Reset ¶ added in v2.20.0
func (x *GetRequest) Reset()
func (*GetRequest) SizeVT ¶ added in v2.20.0
func (m *GetRequest) SizeVT() (n int)
func (*GetRequest) String ¶ added in v2.20.0
func (x *GetRequest) String() string
func (*GetRequest) UnmarshalJSON ¶ added in v2.20.0
func (msg *GetRequest) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler
func (*GetRequest) UnmarshalVT ¶ added in v2.20.0
func (m *GetRequest) UnmarshalVT(dAtA []byte) error
func (*GetRequest) Validate ¶ added in v2.20.0
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 ¶ added in v2.20.0
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 ¶ added in v2.20.0
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 ¶ added in v2.20.0
func (m GetRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetRequestMultiError) Error ¶ added in v2.20.0
func (m GetRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetRequestValidationError ¶ added in v2.20.0
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 ¶ added in v2.20.0
func (e GetRequestValidationError) Cause() error
Cause function returns cause value.
func (GetRequestValidationError) Error ¶ added in v2.20.0
func (e GetRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetRequestValidationError) ErrorName ¶ added in v2.20.0
func (e GetRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetRequestValidationError) Field ¶ added in v2.20.0
func (e GetRequestValidationError) Field() string
Field function returns field value.
func (GetRequestValidationError) Key ¶ added in v2.20.0
func (e GetRequestValidationError) Key() bool
Key function returns key value.
func (GetRequestValidationError) Reason ¶ added in v2.20.0
func (e GetRequestValidationError) Reason() string
Reason function returns reason value.
type GetResponse ¶ added in v2.20.0
type GetResponse struct { Blueprint *Blueprint `protobuf:"bytes,1,opt,name=blueprint,proto3" json:"blueprint,omitempty"` // contains filtered or unexported fields }
func (*GetResponse) Descriptor
deprecated
added in
v2.20.0
func (*GetResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetResponse.ProtoReflect.Descriptor instead.
func (*GetResponse) GetBlueprint ¶ added in v2.20.0
func (x *GetResponse) GetBlueprint() *Blueprint
func (*GetResponse) MarshalJSON ¶ added in v2.20.0
func (msg *GetResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler
func (*GetResponse) MarshalToSizedBufferVT ¶ added in v2.20.0
func (m *GetResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*GetResponse) MarshalToVT ¶ added in v2.20.0
func (m *GetResponse) MarshalToVT(dAtA []byte) (int, error)
func (*GetResponse) MarshalVT ¶ added in v2.20.0
func (m *GetResponse) MarshalVT() (dAtA []byte, err error)
func (*GetResponse) ProtoMessage ¶ added in v2.20.0
func (*GetResponse) ProtoMessage()
func (*GetResponse) ProtoReflect ¶ added in v2.20.0
func (x *GetResponse) ProtoReflect() protoreflect.Message
func (*GetResponse) Reset ¶ added in v2.20.0
func (x *GetResponse) Reset()
func (*GetResponse) SizeVT ¶ added in v2.20.0
func (m *GetResponse) SizeVT() (n int)
func (*GetResponse) String ¶ added in v2.20.0
func (x *GetResponse) String() string
func (*GetResponse) UnmarshalJSON ¶ added in v2.20.0
func (msg *GetResponse) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler
func (*GetResponse) UnmarshalVT ¶ added in v2.20.0
func (m *GetResponse) UnmarshalVT(dAtA []byte) error
func (*GetResponse) Validate ¶ added in v2.20.0
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 ¶ added in v2.20.0
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 ¶ added in v2.20.0
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 ¶ added in v2.20.0
func (m GetResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetResponseMultiError) Error ¶ added in v2.20.0
func (m GetResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetResponseValidationError ¶ added in v2.20.0
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 ¶ added in v2.20.0
func (e GetResponseValidationError) Cause() error
Cause function returns cause value.
func (GetResponseValidationError) Error ¶ added in v2.20.0
func (e GetResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetResponseValidationError) ErrorName ¶ added in v2.20.0
func (e GetResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetResponseValidationError) Field ¶ added in v2.20.0
func (e GetResponseValidationError) Field() string
Field function returns field value.
func (GetResponseValidationError) Key ¶ added in v2.20.0
func (e GetResponseValidationError) Key() bool
Key function returns key value.
func (GetResponseValidationError) Reason ¶ added in v2.20.0
func (e GetResponseValidationError) Reason() string
Reason function returns reason value.
type ListResponse ¶ added in v2.20.0
type ListResponse struct { Blueprints []*Blueprint `protobuf:"bytes,1,rep,name=blueprints,proto3" json:"blueprints,omitempty"` // contains filtered or unexported fields }
func (*ListResponse) Descriptor
deprecated
added in
v2.20.0
func (*ListResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListResponse.ProtoReflect.Descriptor instead.
func (*ListResponse) GetBlueprints ¶ added in v2.20.0
func (x *ListResponse) GetBlueprints() []*Blueprint
func (*ListResponse) MarshalJSON ¶ added in v2.20.0
func (msg *ListResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler
func (*ListResponse) MarshalToSizedBufferVT ¶ added in v2.20.0
func (m *ListResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*ListResponse) MarshalToVT ¶ added in v2.20.0
func (m *ListResponse) MarshalToVT(dAtA []byte) (int, error)
func (*ListResponse) MarshalVT ¶ added in v2.20.0
func (m *ListResponse) MarshalVT() (dAtA []byte, err error)
func (*ListResponse) ProtoMessage ¶ added in v2.20.0
func (*ListResponse) ProtoMessage()
func (*ListResponse) ProtoReflect ¶ added in v2.20.0
func (x *ListResponse) ProtoReflect() protoreflect.Message
func (*ListResponse) Reset ¶ added in v2.20.0
func (x *ListResponse) Reset()
func (*ListResponse) SizeVT ¶ added in v2.20.0
func (m *ListResponse) SizeVT() (n int)
func (*ListResponse) String ¶ added in v2.20.0
func (x *ListResponse) String() string
func (*ListResponse) UnmarshalJSON ¶ added in v2.20.0
func (msg *ListResponse) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler
func (*ListResponse) UnmarshalVT ¶ added in v2.20.0
func (m *ListResponse) UnmarshalVT(dAtA []byte) error
func (*ListResponse) Validate ¶ added in v2.20.0
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 ¶ added in v2.20.0
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 ¶ added in v2.20.0
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 ¶ added in v2.20.0
func (m ListResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListResponseMultiError) Error ¶ added in v2.20.0
func (m ListResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListResponseValidationError ¶ added in v2.20.0
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 ¶ added in v2.20.0
func (e ListResponseValidationError) Cause() error
Cause function returns cause value.
func (ListResponseValidationError) Error ¶ added in v2.20.0
func (e ListResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ListResponseValidationError) ErrorName ¶ added in v2.20.0
func (e ListResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ListResponseValidationError) Field ¶ added in v2.20.0
func (e ListResponseValidationError) Field() string
Field function returns field value.
func (ListResponseValidationError) Key ¶ added in v2.20.0
func (e ListResponseValidationError) Key() bool
Key function returns key value.
func (ListResponseValidationError) Reason ¶ added in v2.20.0
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 ¶ added in v2.20.0
type UnimplementedBlueprintsServiceServer struct { }
UnimplementedBlueprintsServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedBlueprintsServiceServer) Apply ¶ added in v2.20.0
func (UnimplementedBlueprintsServiceServer) Apply(context.Context, *ApplyRequest) (*emptypb.Empty, error)
func (UnimplementedBlueprintsServiceServer) Archive ¶ added in v2.20.2
func (UnimplementedBlueprintsServiceServer) Archive(context.Context, *DeleteRequest) (*emptypb.Empty, error)
func (UnimplementedBlueprintsServiceServer) Delete ¶ added in v2.20.0
func (UnimplementedBlueprintsServiceServer) Delete(context.Context, *DeleteRequest) (*emptypb.Empty, error)
func (UnimplementedBlueprintsServiceServer) Get ¶ added in v2.20.0
func (UnimplementedBlueprintsServiceServer) Get(context.Context, *GetRequest) (*GetResponse, error)
func (UnimplementedBlueprintsServiceServer) List ¶ added in v2.20.0
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 ¶ added in v2.20.2
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 ¶ added in v2.20.0
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.