cloudv1

package
v2.0.0-...-d8f0e26 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: Apache-2.0 Imports: 32 Imported by: 3

Documentation

Overview

Package cloudv1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
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"
)
View Source
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

View Source
var (
	ErrInvalidLength        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflow          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroup = fmt.Errorf("proto: unexpected end of group")
)
View Source
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)

View Source
var File_aperture_cloud_v1_blueprints_proto protoreflect.FileDescriptor
View Source
var File_aperture_cloud_v1_policy_proto protoreflect.FileDescriptor
View Source
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

Cause function returns cause value.

func (ApplyRequestValidationError) Error

Error satisfies the builtin error interface

func (ApplyRequestValidationError) ErrorName

func (e ApplyRequestValidationError) ErrorName() string

ErrorName returns error name.

func (ApplyRequestValidationError) Field

Field function returns field value.

func (ApplyRequestValidationError) Key

Key function returns key value.

func (ApplyRequestValidationError) Reason

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) Descriptor() ([]byte, []int)

Deprecated: Use Blueprint.ProtoReflect.Descriptor instead.

func (*Blueprint) GetBlueprintsName

func (x *Blueprint) GetBlueprintsName() string

func (*Blueprint) GetPolicyName

func (x *Blueprint) GetPolicyName() string

func (*Blueprint) GetValues

func (x *Blueprint) GetValues() []byte

func (*Blueprint) GetVersion

func (x *Blueprint) GetVersion() string

func (*Blueprint) MarshalJSON

func (msg *Blueprint) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler

func (*Blueprint) MarshalToSizedBufferVT

func (m *Blueprint) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Blueprint) MarshalToVT

func (m *Blueprint) MarshalToVT(dAtA []byte) (int, error)

func (*Blueprint) MarshalVT

func (m *Blueprint) MarshalVT() (dAtA []byte, err error)

func (*Blueprint) ProtoMessage

func (*Blueprint) ProtoMessage()

func (*Blueprint) ProtoReflect

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

func (*Blueprint) Reset

func (x *Blueprint) Reset()

func (*Blueprint) SizeVT

func (m *Blueprint) SizeVT() (n int)

func (*Blueprint) String

func (x *Blueprint) String() string

func (*Blueprint) UnmarshalJSON

func (msg *Blueprint) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler

func (*Blueprint) UnmarshalVT

func (m *Blueprint) UnmarshalVT(dAtA []byte) error

func (*Blueprint) Validate

func (m *Blueprint) Validate() error

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

func (m *Blueprint) ValidateAll() error

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

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.

type BlueprintsServiceServer

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

Cause function returns cause value.

func (DeleteRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteRequestValidationError) ErrorName

func (e DeleteRequestValidationError) ErrorName() string

ErrorName returns error name.

func (DeleteRequestValidationError) Field

Field function returns field value.

func (DeleteRequestValidationError) Key

Key function returns key value.

func (DeleteRequestValidationError) Reason

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

Error satisfies the builtin error interface

func (GetRequestValidationError) ErrorName

func (e GetRequestValidationError) ErrorName() string

ErrorName returns error name.

func (GetRequestValidationError) Field

Field function returns field value.

func (GetRequestValidationError) Key

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

Cause function returns cause value.

func (GetResponseValidationError) Error

Error satisfies the builtin error interface

func (GetResponseValidationError) ErrorName

func (e GetResponseValidationError) ErrorName() string

ErrorName returns error name.

func (GetResponseValidationError) Field

Field function returns field value.

func (GetResponseValidationError) Key

Key function returns key value.

func (GetResponseValidationError) Reason

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

Cause function returns cause value.

func (ListResponseValidationError) Error

Error satisfies the builtin error interface

func (ListResponseValidationError) ErrorName

func (e ListResponseValidationError) ErrorName() string

ErrorName returns error name.

func (ListResponseValidationError) Field

Field function returns field value.

func (ListResponseValidationError) Key

Key function returns key value.

func (ListResponseValidationError) Reason

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.

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) Archive

func (UnimplementedBlueprintsServiceServer) Delete

func (UnimplementedBlueprintsServiceServer) Get

func (UnimplementedBlueprintsServiceServer) List

type UnimplementedPolicyServiceServer

type UnimplementedPolicyServiceServer struct {
}

UnimplementedPolicyServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedPolicyServiceServer) ArchivePolicy

func (UnimplementedPolicyServiceServer) DeletePolicy

func (UnimplementedPolicyServiceServer) UpsertPolicy

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.

Jump to

Keyboard shortcuts

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