control

package
v0.29.1 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	HealthStatus_name = map[int32]string{
		0: "HEALTH_STATUS_UNDEFINED",
		1: "STARTING",
		2: "READY",
		3: "SHUTTING_DOWN",
	}
	HealthStatus_value = map[string]int32{
		"HEALTH_STATUS_UNDEFINED": 0,
		"STARTING":                1,
		"READY":                   2,
		"SHUTTING_DOWN":           3,
	}
)

Enum value maps for HealthStatus.

View Source
var (
	PolicyTarget_name = map[int32]string{
		0: "TARGET_UNDEFINED",
		1: "CONTAINER",
		2: "NAMESPACE",
		3: "USER",
		4: "GROUP",
	}
	PolicyTarget_value = map[string]int32{
		"TARGET_UNDEFINED": 0,
		"CONTAINER":        1,
		"NAMESPACE":        2,
		"USER":             3,
		"GROUP":            4,
	}
)

Enum value maps for PolicyTarget.

View Source
var ControlService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "s3gw.control.ControlService",
	HandlerType: (*ControlServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "HealthCheck",
			Handler:    _ControlService_HealthCheck_Handler,
		},
		{
			MethodName: "PutPolicies",
			Handler:    _ControlService_PutPolicies_Handler,
		},
		{
			MethodName: "RemovePolicies",
			Handler:    _ControlService_RemovePolicies_Handler,
		},
		{
			MethodName: "GetPolicy",
			Handler:    _ControlService_GetPolicy_Handler,
		},
		{
			MethodName: "ListPolicies",
			Handler:    _ControlService_ListPolicies_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "pkg/service/control/service.proto",
}

ControlService_ServiceDesc is the grpc.ServiceDesc for ControlService 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_pkg_service_control_service_proto protoreflect.FileDescriptor

Functions

func RegisterControlServiceServer

func RegisterControlServiceServer(s grpc.ServiceRegistrar, srv ControlServiceServer)

Types

type ControlServiceClient

type ControlServiceClient interface {
	// Performs health check of the storage node.
	HealthCheck(ctx context.Context, in *HealthCheckRequest, opts ...grpc.CallOption) (*HealthCheckResponse, error)
	PutPolicies(ctx context.Context, in *PutPoliciesRequest, opts ...grpc.CallOption) (*PutPoliciesResponse, error)
	RemovePolicies(ctx context.Context, in *RemovePoliciesRequest, opts ...grpc.CallOption) (*RemovePoliciesResponse, error)
	GetPolicy(ctx context.Context, in *GetPolicyRequest, opts ...grpc.CallOption) (*GetPolicyResponse, error)
	ListPolicies(ctx context.Context, in *ListPoliciesRequest, opts ...grpc.CallOption) (*ListPoliciesResponse, error)
}

ControlServiceClient is the client API for ControlService 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 ControlServiceServer

type ControlServiceServer interface {
	// Performs health check of the storage node.
	HealthCheck(context.Context, *HealthCheckRequest) (*HealthCheckResponse, error)
	PutPolicies(context.Context, *PutPoliciesRequest) (*PutPoliciesResponse, error)
	RemovePolicies(context.Context, *RemovePoliciesRequest) (*RemovePoliciesResponse, error)
	GetPolicy(context.Context, *GetPolicyRequest) (*GetPolicyResponse, error)
	ListPolicies(context.Context, *ListPoliciesRequest) (*ListPoliciesResponse, error)
}

ControlServiceServer is the server API for ControlService service. All implementations should embed UnimplementedControlServiceServer for forward compatibility

type GetPolicyRequest

type GetPolicyRequest struct {
	Body *GetPolicyRequest_Body `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"`
	// Body signature.
	Signature *Signature `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
	// contains filtered or unexported fields
}

Get policy request.

func (*GetPolicyRequest) Descriptor deprecated

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

Deprecated: Use GetPolicyRequest.ProtoReflect.Descriptor instead.

func (*GetPolicyRequest) GetBody

func (*GetPolicyRequest) GetSignature

func (x *GetPolicyRequest) GetSignature() *Signature

func (*GetPolicyRequest) ProtoMessage

func (*GetPolicyRequest) ProtoMessage()

func (*GetPolicyRequest) ProtoReflect

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

func (*GetPolicyRequest) ReadSignedData

func (x *GetPolicyRequest) ReadSignedData(buf []byte) ([]byte, error)

SignedDataSize returns size of the request signed data in bytes.

Structures with the same field values have the same signed data size.

func (*GetPolicyRequest) Reset

func (x *GetPolicyRequest) Reset()

func (*GetPolicyRequest) SetSignature

func (x *GetPolicyRequest) SetSignature(sig *Signature)

func (*GetPolicyRequest) SignedDataSize

func (x *GetPolicyRequest) SignedDataSize() int

ReadSignedData fills buf with signed data of x. If buffer length is less than x.SignedDataSize(), new buffer is allocated.

Returns any error encountered which did not allow writing the data completely. Otherwise, returns the buffer in which the data is written.

Structures with the same field values have the same signed data.

func (*GetPolicyRequest) StableMarshal

func (x *GetPolicyRequest) StableMarshal(buf []byte) []byte

StableMarshal marshals x in protobuf binary format with stable field order.

If buffer length is less than x.StableSize(), new buffer is allocated.

Returns any error encountered which did not allow writing the data completely. Otherwise, returns the buffer in which the data is written.

Structures with the same field values have the same binary format.

func (*GetPolicyRequest) StableSize

func (x *GetPolicyRequest) StableSize() (size int)

StableSize returns the size of x in protobuf format.

Structures with the same field values have the same binary size.

func (*GetPolicyRequest) String

func (x *GetPolicyRequest) String() string

type GetPolicyRequest_Body

type GetPolicyRequest_Body struct {

	// Policy entity type.
	Target PolicyTarget `protobuf:"varint,1,opt,name=target,proto3,enum=s3gw.control.PolicyTarget" json:"target,omitempty"`
	// Policy name.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// Chain id to get.
	ChainID []byte `protobuf:"bytes,3,opt,name=chainID,proto3" json:"chainID,omitempty"`
	// contains filtered or unexported fields
}

func (*GetPolicyRequest_Body) Descriptor deprecated

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

Deprecated: Use GetPolicyRequest_Body.ProtoReflect.Descriptor instead.

func (*GetPolicyRequest_Body) GetChainID

func (x *GetPolicyRequest_Body) GetChainID() []byte

func (*GetPolicyRequest_Body) GetName

func (x *GetPolicyRequest_Body) GetName() string

func (*GetPolicyRequest_Body) GetTarget

func (x *GetPolicyRequest_Body) GetTarget() PolicyTarget

func (*GetPolicyRequest_Body) ProtoMessage

func (*GetPolicyRequest_Body) ProtoMessage()

func (*GetPolicyRequest_Body) ProtoReflect

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

func (*GetPolicyRequest_Body) Reset

func (x *GetPolicyRequest_Body) Reset()

func (*GetPolicyRequest_Body) StableMarshal

func (x *GetPolicyRequest_Body) StableMarshal(buf []byte) []byte

StableMarshal marshals x in protobuf binary format with stable field order.

If buffer length is less than x.StableSize(), new buffer is allocated.

Returns any error encountered which did not allow writing the data completely. Otherwise, returns the buffer in which the data is written.

Structures with the same field values have the same binary format.

func (*GetPolicyRequest_Body) StableSize

func (x *GetPolicyRequest_Body) StableSize() (size int)

StableSize returns the size of x in protobuf format.

Structures with the same field values have the same binary size.

func (*GetPolicyRequest_Body) String

func (x *GetPolicyRequest_Body) String() string

type GetPolicyResponse

type GetPolicyResponse struct {
	Body      *GetPolicyResponse_Body `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"`
	Signature *Signature              `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
	// contains filtered or unexported fields
}

Get policy response.

func (*GetPolicyResponse) Descriptor deprecated

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

Deprecated: Use GetPolicyResponse.ProtoReflect.Descriptor instead.

func (*GetPolicyResponse) GetBody

func (*GetPolicyResponse) GetSignature

func (x *GetPolicyResponse) GetSignature() *Signature

func (*GetPolicyResponse) ProtoMessage

func (*GetPolicyResponse) ProtoMessage()

func (*GetPolicyResponse) ProtoReflect

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

func (*GetPolicyResponse) ReadSignedData

func (x *GetPolicyResponse) ReadSignedData(buf []byte) ([]byte, error)

SignedDataSize returns size of the request signed data in bytes.

Structures with the same field values have the same signed data size.

func (*GetPolicyResponse) Reset

func (x *GetPolicyResponse) Reset()

func (*GetPolicyResponse) SetSignature

func (x *GetPolicyResponse) SetSignature(sig *Signature)

func (*GetPolicyResponse) SignedDataSize

func (x *GetPolicyResponse) SignedDataSize() int

ReadSignedData fills buf with signed data of x. If buffer length is less than x.SignedDataSize(), new buffer is allocated.

Returns any error encountered which did not allow writing the data completely. Otherwise, returns the buffer in which the data is written.

Structures with the same field values have the same signed data.

func (*GetPolicyResponse) StableMarshal

func (x *GetPolicyResponse) StableMarshal(buf []byte) []byte

StableMarshal marshals x in protobuf binary format with stable field order.

If buffer length is less than x.StableSize(), new buffer is allocated.

Returns any error encountered which did not allow writing the data completely. Otherwise, returns the buffer in which the data is written.

Structures with the same field values have the same binary format.

func (*GetPolicyResponse) StableSize

func (x *GetPolicyResponse) StableSize() (size int)

StableSize returns the size of x in protobuf format.

Structures with the same field values have the same binary size.

func (*GetPolicyResponse) String

func (x *GetPolicyResponse) String() string

type GetPolicyResponse_Body

type GetPolicyResponse_Body struct {

	// Chain rules.
	Chain []byte `protobuf:"bytes,1,opt,name=chain,proto3" json:"chain,omitempty"`
	// contains filtered or unexported fields
}

func (*GetPolicyResponse_Body) Descriptor deprecated

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

Deprecated: Use GetPolicyResponse_Body.ProtoReflect.Descriptor instead.

func (*GetPolicyResponse_Body) GetChain

func (x *GetPolicyResponse_Body) GetChain() []byte

func (*GetPolicyResponse_Body) ProtoMessage

func (*GetPolicyResponse_Body) ProtoMessage()

func (*GetPolicyResponse_Body) ProtoReflect

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

func (*GetPolicyResponse_Body) Reset

func (x *GetPolicyResponse_Body) Reset()

func (*GetPolicyResponse_Body) StableMarshal

func (x *GetPolicyResponse_Body) StableMarshal(buf []byte) []byte

StableMarshal marshals x in protobuf binary format with stable field order.

If buffer length is less than x.StableSize(), new buffer is allocated.

Returns any error encountered which did not allow writing the data completely. Otherwise, returns the buffer in which the data is written.

Structures with the same field values have the same binary format.

func (*GetPolicyResponse_Body) StableSize

func (x *GetPolicyResponse_Body) StableSize() (size int)

StableSize returns the size of x in protobuf format.

Structures with the same field values have the same binary size.

func (*GetPolicyResponse_Body) String

func (x *GetPolicyResponse_Body) String() string

type HealthCheckRequest

type HealthCheckRequest struct {

	// Body of health check request message.
	Body *HealthCheckRequest_Body `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"`
	// Body signature.
	Signature *Signature `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
	// contains filtered or unexported fields
}

Health check request.

func (*HealthCheckRequest) Descriptor deprecated

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

Deprecated: Use HealthCheckRequest.ProtoReflect.Descriptor instead.

func (*HealthCheckRequest) GetBody

func (*HealthCheckRequest) GetSignature

func (x *HealthCheckRequest) GetSignature() *Signature

func (*HealthCheckRequest) ProtoMessage

func (*HealthCheckRequest) ProtoMessage()

func (*HealthCheckRequest) ProtoReflect

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

func (*HealthCheckRequest) ReadSignedData

func (x *HealthCheckRequest) ReadSignedData(buf []byte) ([]byte, error)

SignedDataSize returns size of the request signed data in bytes.

Structures with the same field values have the same signed data size.

func (*HealthCheckRequest) Reset

func (x *HealthCheckRequest) Reset()

func (*HealthCheckRequest) SetSignature

func (x *HealthCheckRequest) SetSignature(sig *Signature)

func (*HealthCheckRequest) SignedDataSize

func (x *HealthCheckRequest) SignedDataSize() int

ReadSignedData fills buf with signed data of x. If buffer length is less than x.SignedDataSize(), new buffer is allocated.

Returns any error encountered which did not allow writing the data completely. Otherwise, returns the buffer in which the data is written.

Structures with the same field values have the same signed data.

func (*HealthCheckRequest) StableMarshal

func (x *HealthCheckRequest) StableMarshal(buf []byte) []byte

StableMarshal marshals x in protobuf binary format with stable field order.

If buffer length is less than x.StableSize(), new buffer is allocated.

Returns any error encountered which did not allow writing the data completely. Otherwise, returns the buffer in which the data is written.

Structures with the same field values have the same binary format.

func (*HealthCheckRequest) StableSize

func (x *HealthCheckRequest) StableSize() (size int)

StableSize returns the size of x in protobuf format.

Structures with the same field values have the same binary size.

func (*HealthCheckRequest) String

func (x *HealthCheckRequest) String() string

type HealthCheckRequest_Body

type HealthCheckRequest_Body struct {
	// contains filtered or unexported fields
}

func (*HealthCheckRequest_Body) Descriptor deprecated

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

Deprecated: Use HealthCheckRequest_Body.ProtoReflect.Descriptor instead.

func (*HealthCheckRequest_Body) ProtoMessage

func (*HealthCheckRequest_Body) ProtoMessage()

func (*HealthCheckRequest_Body) ProtoReflect

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

func (*HealthCheckRequest_Body) Reset

func (x *HealthCheckRequest_Body) Reset()

func (*HealthCheckRequest_Body) StableMarshal

func (x *HealthCheckRequest_Body) StableMarshal(buf []byte) []byte

StableMarshal marshals x in protobuf binary format with stable field order.

If buffer length is less than x.StableSize(), new buffer is allocated.

Returns any error encountered which did not allow writing the data completely. Otherwise, returns the buffer in which the data is written.

Structures with the same field values have the same binary format.

func (*HealthCheckRequest_Body) StableSize

func (x *HealthCheckRequest_Body) StableSize() (size int)

StableSize returns the size of x in protobuf format.

Structures with the same field values have the same binary size.

func (*HealthCheckRequest_Body) String

func (x *HealthCheckRequest_Body) String() string

type HealthCheckResponse

type HealthCheckResponse struct {

	// Body of health check response message.
	Body      *HealthCheckResponse_Body `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"`
	Signature *Signature                `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
	// contains filtered or unexported fields
}

Health check response.

func (*HealthCheckResponse) Descriptor deprecated

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

Deprecated: Use HealthCheckResponse.ProtoReflect.Descriptor instead.

func (*HealthCheckResponse) GetBody

func (*HealthCheckResponse) GetSignature

func (x *HealthCheckResponse) GetSignature() *Signature

func (*HealthCheckResponse) ProtoMessage

func (*HealthCheckResponse) ProtoMessage()

func (*HealthCheckResponse) ProtoReflect

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

func (*HealthCheckResponse) ReadSignedData

func (x *HealthCheckResponse) ReadSignedData(buf []byte) ([]byte, error)

SignedDataSize returns size of the request signed data in bytes.

Structures with the same field values have the same signed data size.

func (*HealthCheckResponse) Reset

func (x *HealthCheckResponse) Reset()

func (*HealthCheckResponse) SetSignature

func (x *HealthCheckResponse) SetSignature(sig *Signature)

func (*HealthCheckResponse) SignedDataSize

func (x *HealthCheckResponse) SignedDataSize() int

ReadSignedData fills buf with signed data of x. If buffer length is less than x.SignedDataSize(), new buffer is allocated.

Returns any error encountered which did not allow writing the data completely. Otherwise, returns the buffer in which the data is written.

Structures with the same field values have the same signed data.

func (*HealthCheckResponse) StableMarshal

func (x *HealthCheckResponse) StableMarshal(buf []byte) []byte

StableMarshal marshals x in protobuf binary format with stable field order.

If buffer length is less than x.StableSize(), new buffer is allocated.

Returns any error encountered which did not allow writing the data completely. Otherwise, returns the buffer in which the data is written.

Structures with the same field values have the same binary format.

func (*HealthCheckResponse) StableSize

func (x *HealthCheckResponse) StableSize() (size int)

StableSize returns the size of x in protobuf format.

Structures with the same field values have the same binary size.

func (*HealthCheckResponse) String

func (x *HealthCheckResponse) String() string

type HealthCheckResponse_Body

type HealthCheckResponse_Body struct {

	// Health status of storage node application.
	HealthStatus HealthStatus `` /* 129-byte string literal not displayed */
	// contains filtered or unexported fields
}

Health check response body

func (*HealthCheckResponse_Body) Descriptor deprecated

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

Deprecated: Use HealthCheckResponse_Body.ProtoReflect.Descriptor instead.

func (*HealthCheckResponse_Body) GetHealthStatus

func (x *HealthCheckResponse_Body) GetHealthStatus() HealthStatus

func (*HealthCheckResponse_Body) ProtoMessage

func (*HealthCheckResponse_Body) ProtoMessage()

func (*HealthCheckResponse_Body) ProtoReflect

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

func (*HealthCheckResponse_Body) Reset

func (x *HealthCheckResponse_Body) Reset()

func (*HealthCheckResponse_Body) StableMarshal

func (x *HealthCheckResponse_Body) StableMarshal(buf []byte) []byte

StableMarshal marshals x in protobuf binary format with stable field order.

If buffer length is less than x.StableSize(), new buffer is allocated.

Returns any error encountered which did not allow writing the data completely. Otherwise, returns the buffer in which the data is written.

Structures with the same field values have the same binary format.

func (*HealthCheckResponse_Body) StableSize

func (x *HealthCheckResponse_Body) StableSize() (size int)

StableSize returns the size of x in protobuf format.

Structures with the same field values have the same binary size.

func (*HealthCheckResponse_Body) String

func (x *HealthCheckResponse_Body) String() string

type HealthStatus

type HealthStatus int32

Health status of the storage node application.

const (
	// Undefined status, default value.
	HealthStatus_HEALTH_STATUS_UNDEFINED HealthStatus = 0
	// Storage node application is starting.
	HealthStatus_STARTING HealthStatus = 1
	// Storage node application is started and serves all services.
	HealthStatus_READY HealthStatus = 2
	// Storage node application is shutting down.
	HealthStatus_SHUTTING_DOWN HealthStatus = 3
)

func (HealthStatus) Descriptor

func (HealthStatus) Enum

func (x HealthStatus) Enum() *HealthStatus

func (HealthStatus) EnumDescriptor deprecated

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

Deprecated: Use HealthStatus.Descriptor instead.

func (HealthStatus) Number

func (HealthStatus) String

func (x HealthStatus) String() string

func (HealthStatus) Type

type ListPoliciesRequest

type ListPoliciesRequest struct {
	Body *ListPoliciesRequest_Body `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"`
	// Body signature.
	Signature *Signature `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
	// contains filtered or unexported fields
}

List policies request.

func (*ListPoliciesRequest) Descriptor deprecated

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

Deprecated: Use ListPoliciesRequest.ProtoReflect.Descriptor instead.

func (*ListPoliciesRequest) GetBody

func (*ListPoliciesRequest) GetSignature

func (x *ListPoliciesRequest) GetSignature() *Signature

func (*ListPoliciesRequest) ProtoMessage

func (*ListPoliciesRequest) ProtoMessage()

func (*ListPoliciesRequest) ProtoReflect

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

func (*ListPoliciesRequest) ReadSignedData

func (x *ListPoliciesRequest) ReadSignedData(buf []byte) ([]byte, error)

SignedDataSize returns size of the request signed data in bytes.

Structures with the same field values have the same signed data size.

func (*ListPoliciesRequest) Reset

func (x *ListPoliciesRequest) Reset()

func (*ListPoliciesRequest) SetSignature

func (x *ListPoliciesRequest) SetSignature(sig *Signature)

func (*ListPoliciesRequest) SignedDataSize

func (x *ListPoliciesRequest) SignedDataSize() int

ReadSignedData fills buf with signed data of x. If buffer length is less than x.SignedDataSize(), new buffer is allocated.

Returns any error encountered which did not allow writing the data completely. Otherwise, returns the buffer in which the data is written.

Structures with the same field values have the same signed data.

func (*ListPoliciesRequest) StableMarshal

func (x *ListPoliciesRequest) StableMarshal(buf []byte) []byte

StableMarshal marshals x in protobuf binary format with stable field order.

If buffer length is less than x.StableSize(), new buffer is allocated.

Returns any error encountered which did not allow writing the data completely. Otherwise, returns the buffer in which the data is written.

Structures with the same field values have the same binary format.

func (*ListPoliciesRequest) StableSize

func (x *ListPoliciesRequest) StableSize() (size int)

StableSize returns the size of x in protobuf format.

Structures with the same field values have the same binary size.

func (*ListPoliciesRequest) String

func (x *ListPoliciesRequest) String() string

type ListPoliciesRequest_Body

type ListPoliciesRequest_Body struct {

	// Policy entity type.
	Target PolicyTarget `protobuf:"varint,1,opt,name=target,proto3,enum=s3gw.control.PolicyTarget" json:"target,omitempty"`
	// Policy name.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*ListPoliciesRequest_Body) Descriptor deprecated

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

Deprecated: Use ListPoliciesRequest_Body.ProtoReflect.Descriptor instead.

func (*ListPoliciesRequest_Body) GetName

func (x *ListPoliciesRequest_Body) GetName() string

func (*ListPoliciesRequest_Body) GetTarget

func (x *ListPoliciesRequest_Body) GetTarget() PolicyTarget

func (*ListPoliciesRequest_Body) ProtoMessage

func (*ListPoliciesRequest_Body) ProtoMessage()

func (*ListPoliciesRequest_Body) ProtoReflect

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

func (*ListPoliciesRequest_Body) Reset

func (x *ListPoliciesRequest_Body) Reset()

func (*ListPoliciesRequest_Body) StableMarshal

func (x *ListPoliciesRequest_Body) StableMarshal(buf []byte) []byte

StableMarshal marshals x in protobuf binary format with stable field order.

If buffer length is less than x.StableSize(), new buffer is allocated.

Returns any error encountered which did not allow writing the data completely. Otherwise, returns the buffer in which the data is written.

Structures with the same field values have the same binary format.

func (*ListPoliciesRequest_Body) StableSize

func (x *ListPoliciesRequest_Body) StableSize() (size int)

StableSize returns the size of x in protobuf format.

Structures with the same field values have the same binary size.

func (*ListPoliciesRequest_Body) String

func (x *ListPoliciesRequest_Body) String() string

type ListPoliciesResponse

type ListPoliciesResponse struct {
	Body      *ListPoliciesResponse_Body `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"`
	Signature *Signature                 `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
	// contains filtered or unexported fields
}

List policies response.

func (*ListPoliciesResponse) Descriptor deprecated

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

Deprecated: Use ListPoliciesResponse.ProtoReflect.Descriptor instead.

func (*ListPoliciesResponse) GetBody

func (*ListPoliciesResponse) GetSignature

func (x *ListPoliciesResponse) GetSignature() *Signature

func (*ListPoliciesResponse) ProtoMessage

func (*ListPoliciesResponse) ProtoMessage()

func (*ListPoliciesResponse) ProtoReflect

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

func (*ListPoliciesResponse) ReadSignedData

func (x *ListPoliciesResponse) ReadSignedData(buf []byte) ([]byte, error)

SignedDataSize returns size of the request signed data in bytes.

Structures with the same field values have the same signed data size.

func (*ListPoliciesResponse) Reset

func (x *ListPoliciesResponse) Reset()

func (*ListPoliciesResponse) SetSignature

func (x *ListPoliciesResponse) SetSignature(sig *Signature)

func (*ListPoliciesResponse) SignedDataSize

func (x *ListPoliciesResponse) SignedDataSize() int

ReadSignedData fills buf with signed data of x. If buffer length is less than x.SignedDataSize(), new buffer is allocated.

Returns any error encountered which did not allow writing the data completely. Otherwise, returns the buffer in which the data is written.

Structures with the same field values have the same signed data.

func (*ListPoliciesResponse) StableMarshal

func (x *ListPoliciesResponse) StableMarshal(buf []byte) []byte

StableMarshal marshals x in protobuf binary format with stable field order.

If buffer length is less than x.StableSize(), new buffer is allocated.

Returns any error encountered which did not allow writing the data completely. Otherwise, returns the buffer in which the data is written.

Structures with the same field values have the same binary format.

func (*ListPoliciesResponse) StableSize

func (x *ListPoliciesResponse) StableSize() (size int)

StableSize returns the size of x in protobuf format.

Structures with the same field values have the same binary size.

func (*ListPoliciesResponse) String

func (x *ListPoliciesResponse) String() string

type ListPoliciesResponse_Body

type ListPoliciesResponse_Body struct {

	// Chain ids.
	ChainIDs [][]byte `protobuf:"bytes,1,rep,name=chainIDs,proto3" json:"chainIDs,omitempty"`
	// contains filtered or unexported fields
}

func (*ListPoliciesResponse_Body) Descriptor deprecated

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

Deprecated: Use ListPoliciesResponse_Body.ProtoReflect.Descriptor instead.

func (*ListPoliciesResponse_Body) GetChainIDs

func (x *ListPoliciesResponse_Body) GetChainIDs() [][]byte

func (*ListPoliciesResponse_Body) ProtoMessage

func (*ListPoliciesResponse_Body) ProtoMessage()

func (*ListPoliciesResponse_Body) ProtoReflect

func (*ListPoliciesResponse_Body) Reset

func (x *ListPoliciesResponse_Body) Reset()

func (*ListPoliciesResponse_Body) StableMarshal

func (x *ListPoliciesResponse_Body) StableMarshal(buf []byte) []byte

StableMarshal marshals x in protobuf binary format with stable field order.

If buffer length is less than x.StableSize(), new buffer is allocated.

Returns any error encountered which did not allow writing the data completely. Otherwise, returns the buffer in which the data is written.

Structures with the same field values have the same binary format.

func (*ListPoliciesResponse_Body) StableSize

func (x *ListPoliciesResponse_Body) StableSize() (size int)

StableSize returns the size of x in protobuf format.

Structures with the same field values have the same binary size.

func (*ListPoliciesResponse_Body) String

func (x *ListPoliciesResponse_Body) String() string

type PolicyTarget

type PolicyTarget int32

Policy target to store chains.

const (
	// Undefined target, invalid to use.
	PolicyTarget_TARGET_UNDEFINED PolicyTarget = 0
	// Container target for bucket policies.
	PolicyTarget_CONTAINER PolicyTarget = 1
	// Namespace target for namespace policies.
	PolicyTarget_NAMESPACE PolicyTarget = 2
	// User target for namespace user policies.
	PolicyTarget_USER PolicyTarget = 3
	// Group target for namespace target policies.
	PolicyTarget_GROUP PolicyTarget = 4
)

func (PolicyTarget) Descriptor

func (PolicyTarget) Enum

func (x PolicyTarget) Enum() *PolicyTarget

func (PolicyTarget) EnumDescriptor deprecated

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

Deprecated: Use PolicyTarget.Descriptor instead.

func (PolicyTarget) Number

func (PolicyTarget) String

func (x PolicyTarget) String() string

func (PolicyTarget) Type

type PutPoliciesRequest

type PutPoliciesRequest struct {
	Body *PutPoliciesRequest_Body `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"`
	// Body signature.
	Signature *Signature `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
	// contains filtered or unexported fields
}

Put policies request.

func (*PutPoliciesRequest) Descriptor deprecated

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

Deprecated: Use PutPoliciesRequest.ProtoReflect.Descriptor instead.

func (*PutPoliciesRequest) GetBody

func (*PutPoliciesRequest) GetSignature

func (x *PutPoliciesRequest) GetSignature() *Signature

func (*PutPoliciesRequest) ProtoMessage

func (*PutPoliciesRequest) ProtoMessage()

func (*PutPoliciesRequest) ProtoReflect

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

func (*PutPoliciesRequest) ReadSignedData

func (x *PutPoliciesRequest) ReadSignedData(buf []byte) ([]byte, error)

SignedDataSize returns size of the request signed data in bytes.

Structures with the same field values have the same signed data size.

func (*PutPoliciesRequest) Reset

func (x *PutPoliciesRequest) Reset()

func (*PutPoliciesRequest) SetSignature

func (x *PutPoliciesRequest) SetSignature(sig *Signature)

func (*PutPoliciesRequest) SignedDataSize

func (x *PutPoliciesRequest) SignedDataSize() int

ReadSignedData fills buf with signed data of x. If buffer length is less than x.SignedDataSize(), new buffer is allocated.

Returns any error encountered which did not allow writing the data completely. Otherwise, returns the buffer in which the data is written.

Structures with the same field values have the same signed data.

func (*PutPoliciesRequest) StableMarshal

func (x *PutPoliciesRequest) StableMarshal(buf []byte) []byte

StableMarshal marshals x in protobuf binary format with stable field order.

If buffer length is less than x.StableSize(), new buffer is allocated.

Returns any error encountered which did not allow writing the data completely. Otherwise, returns the buffer in which the data is written.

Structures with the same field values have the same binary format.

func (*PutPoliciesRequest) StableSize

func (x *PutPoliciesRequest) StableSize() (size int)

StableSize returns the size of x in protobuf format.

Structures with the same field values have the same binary size.

func (*PutPoliciesRequest) String

func (x *PutPoliciesRequest) String() string

type PutPoliciesRequest_Body

type PutPoliciesRequest_Body struct {
	ChainDatas []*PutPoliciesRequest_ChainData `protobuf:"bytes,1,rep,name=chainDatas,proto3" json:"chainDatas,omitempty"`
	// contains filtered or unexported fields
}

func (*PutPoliciesRequest_Body) Descriptor deprecated

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

Deprecated: Use PutPoliciesRequest_Body.ProtoReflect.Descriptor instead.

func (*PutPoliciesRequest_Body) GetChainDatas

func (*PutPoliciesRequest_Body) ProtoMessage

func (*PutPoliciesRequest_Body) ProtoMessage()

func (*PutPoliciesRequest_Body) ProtoReflect

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

func (*PutPoliciesRequest_Body) Reset

func (x *PutPoliciesRequest_Body) Reset()

func (*PutPoliciesRequest_Body) StableMarshal

func (x *PutPoliciesRequest_Body) StableMarshal(buf []byte) []byte

StableMarshal marshals x in protobuf binary format with stable field order.

If buffer length is less than x.StableSize(), new buffer is allocated.

Returns any error encountered which did not allow writing the data completely. Otherwise, returns the buffer in which the data is written.

Structures with the same field values have the same binary format.

func (*PutPoliciesRequest_Body) StableSize

func (x *PutPoliciesRequest_Body) StableSize() (size int)

StableSize returns the size of x in protobuf format.

Structures with the same field values have the same binary size.

func (*PutPoliciesRequest_Body) String

func (x *PutPoliciesRequest_Body) String() string

type PutPoliciesRequest_ChainData

type PutPoliciesRequest_ChainData struct {

	// Policy entity type.
	Target PolicyTarget `protobuf:"varint,1,opt,name=target,proto3,enum=s3gw.control.PolicyTarget" json:"target,omitempty"`
	// Policy name.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// Chain rules.
	Chain []byte `protobuf:"bytes,3,opt,name=chain,proto3" json:"chain,omitempty"`
	// contains filtered or unexported fields
}

func (*PutPoliciesRequest_ChainData) Descriptor deprecated

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

Deprecated: Use PutPoliciesRequest_ChainData.ProtoReflect.Descriptor instead.

func (*PutPoliciesRequest_ChainData) GetChain

func (x *PutPoliciesRequest_ChainData) GetChain() []byte

func (*PutPoliciesRequest_ChainData) GetName

func (x *PutPoliciesRequest_ChainData) GetName() string

func (*PutPoliciesRequest_ChainData) GetTarget

func (*PutPoliciesRequest_ChainData) ProtoMessage

func (*PutPoliciesRequest_ChainData) ProtoMessage()

func (*PutPoliciesRequest_ChainData) ProtoReflect

func (*PutPoliciesRequest_ChainData) Reset

func (x *PutPoliciesRequest_ChainData) Reset()

func (*PutPoliciesRequest_ChainData) StableMarshal

func (x *PutPoliciesRequest_ChainData) StableMarshal(buf []byte) []byte

StableMarshal marshals x in protobuf binary format with stable field order.

If buffer length is less than x.StableSize(), new buffer is allocated.

Returns any error encountered which did not allow writing the data completely. Otherwise, returns the buffer in which the data is written.

Structures with the same field values have the same binary format.

func (*PutPoliciesRequest_ChainData) StableSize

func (x *PutPoliciesRequest_ChainData) StableSize() (size int)

StableSize returns the size of x in protobuf format.

Structures with the same field values have the same binary size.

func (*PutPoliciesRequest_ChainData) String

type PutPoliciesResponse

type PutPoliciesResponse struct {
	Body      *PutPoliciesResponse_Body `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"`
	Signature *Signature                `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
	// contains filtered or unexported fields
}

Put policies response.

func (*PutPoliciesResponse) Descriptor deprecated

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

Deprecated: Use PutPoliciesResponse.ProtoReflect.Descriptor instead.

func (*PutPoliciesResponse) GetBody

func (*PutPoliciesResponse) GetSignature

func (x *PutPoliciesResponse) GetSignature() *Signature

func (*PutPoliciesResponse) ProtoMessage

func (*PutPoliciesResponse) ProtoMessage()

func (*PutPoliciesResponse) ProtoReflect

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

func (*PutPoliciesResponse) ReadSignedData

func (x *PutPoliciesResponse) ReadSignedData(buf []byte) ([]byte, error)

SignedDataSize returns size of the request signed data in bytes.

Structures with the same field values have the same signed data size.

func (*PutPoliciesResponse) Reset

func (x *PutPoliciesResponse) Reset()

func (*PutPoliciesResponse) SetSignature

func (x *PutPoliciesResponse) SetSignature(sig *Signature)

func (*PutPoliciesResponse) SignedDataSize

func (x *PutPoliciesResponse) SignedDataSize() int

ReadSignedData fills buf with signed data of x. If buffer length is less than x.SignedDataSize(), new buffer is allocated.

Returns any error encountered which did not allow writing the data completely. Otherwise, returns the buffer in which the data is written.

Structures with the same field values have the same signed data.

func (*PutPoliciesResponse) StableMarshal

func (x *PutPoliciesResponse) StableMarshal(buf []byte) []byte

StableMarshal marshals x in protobuf binary format with stable field order.

If buffer length is less than x.StableSize(), new buffer is allocated.

Returns any error encountered which did not allow writing the data completely. Otherwise, returns the buffer in which the data is written.

Structures with the same field values have the same binary format.

func (*PutPoliciesResponse) StableSize

func (x *PutPoliciesResponse) StableSize() (size int)

StableSize returns the size of x in protobuf format.

Structures with the same field values have the same binary size.

func (*PutPoliciesResponse) String

func (x *PutPoliciesResponse) String() string

type PutPoliciesResponse_Body

type PutPoliciesResponse_Body struct {
	// contains filtered or unexported fields
}

func (*PutPoliciesResponse_Body) Descriptor deprecated

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

Deprecated: Use PutPoliciesResponse_Body.ProtoReflect.Descriptor instead.

func (*PutPoliciesResponse_Body) ProtoMessage

func (*PutPoliciesResponse_Body) ProtoMessage()

func (*PutPoliciesResponse_Body) ProtoReflect

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

func (*PutPoliciesResponse_Body) Reset

func (x *PutPoliciesResponse_Body) Reset()

func (*PutPoliciesResponse_Body) StableMarshal

func (x *PutPoliciesResponse_Body) StableMarshal(buf []byte) []byte

StableMarshal marshals x in protobuf binary format with stable field order.

If buffer length is less than x.StableSize(), new buffer is allocated.

Returns any error encountered which did not allow writing the data completely. Otherwise, returns the buffer in which the data is written.

Structures with the same field values have the same binary format.

func (*PutPoliciesResponse_Body) StableSize

func (x *PutPoliciesResponse_Body) StableSize() (size int)

StableSize returns the size of x in protobuf format.

Structures with the same field values have the same binary size.

func (*PutPoliciesResponse_Body) String

func (x *PutPoliciesResponse_Body) String() string

type RemovePoliciesRequest

type RemovePoliciesRequest struct {
	Body *RemovePoliciesRequest_Body `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"`
	// Body signature.
	Signature *Signature `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
	// contains filtered or unexported fields
}

Remove policies request.

func (*RemovePoliciesRequest) Descriptor deprecated

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

Deprecated: Use RemovePoliciesRequest.ProtoReflect.Descriptor instead.

func (*RemovePoliciesRequest) GetBody

func (*RemovePoliciesRequest) GetSignature

func (x *RemovePoliciesRequest) GetSignature() *Signature

func (*RemovePoliciesRequest) ProtoMessage

func (*RemovePoliciesRequest) ProtoMessage()

func (*RemovePoliciesRequest) ProtoReflect

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

func (*RemovePoliciesRequest) ReadSignedData

func (x *RemovePoliciesRequest) ReadSignedData(buf []byte) ([]byte, error)

SignedDataSize returns size of the request signed data in bytes.

Structures with the same field values have the same signed data size.

func (*RemovePoliciesRequest) Reset

func (x *RemovePoliciesRequest) Reset()

func (*RemovePoliciesRequest) SetSignature

func (x *RemovePoliciesRequest) SetSignature(sig *Signature)

func (*RemovePoliciesRequest) SignedDataSize

func (x *RemovePoliciesRequest) SignedDataSize() int

ReadSignedData fills buf with signed data of x. If buffer length is less than x.SignedDataSize(), new buffer is allocated.

Returns any error encountered which did not allow writing the data completely. Otherwise, returns the buffer in which the data is written.

Structures with the same field values have the same signed data.

func (*RemovePoliciesRequest) StableMarshal

func (x *RemovePoliciesRequest) StableMarshal(buf []byte) []byte

StableMarshal marshals x in protobuf binary format with stable field order.

If buffer length is less than x.StableSize(), new buffer is allocated.

Returns any error encountered which did not allow writing the data completely. Otherwise, returns the buffer in which the data is written.

Structures with the same field values have the same binary format.

func (*RemovePoliciesRequest) StableSize

func (x *RemovePoliciesRequest) StableSize() (size int)

StableSize returns the size of x in protobuf format.

Structures with the same field values have the same binary size.

func (*RemovePoliciesRequest) String

func (x *RemovePoliciesRequest) String() string

type RemovePoliciesRequest_Body

type RemovePoliciesRequest_Body struct {
	ChainInfos []*RemovePoliciesRequest_ChainInfo `protobuf:"bytes,1,rep,name=chainInfos,proto3" json:"chainInfos,omitempty"`
	// contains filtered or unexported fields
}

func (*RemovePoliciesRequest_Body) Descriptor deprecated

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

Deprecated: Use RemovePoliciesRequest_Body.ProtoReflect.Descriptor instead.

func (*RemovePoliciesRequest_Body) GetChainInfos

func (*RemovePoliciesRequest_Body) ProtoMessage

func (*RemovePoliciesRequest_Body) ProtoMessage()

func (*RemovePoliciesRequest_Body) ProtoReflect

func (*RemovePoliciesRequest_Body) Reset

func (x *RemovePoliciesRequest_Body) Reset()

func (*RemovePoliciesRequest_Body) StableMarshal

func (x *RemovePoliciesRequest_Body) StableMarshal(buf []byte) []byte

StableMarshal marshals x in protobuf binary format with stable field order.

If buffer length is less than x.StableSize(), new buffer is allocated.

Returns any error encountered which did not allow writing the data completely. Otherwise, returns the buffer in which the data is written.

Structures with the same field values have the same binary format.

func (*RemovePoliciesRequest_Body) StableSize

func (x *RemovePoliciesRequest_Body) StableSize() (size int)

StableSize returns the size of x in protobuf format.

Structures with the same field values have the same binary size.

func (*RemovePoliciesRequest_Body) String

func (x *RemovePoliciesRequest_Body) String() string

type RemovePoliciesRequest_ChainInfo

type RemovePoliciesRequest_ChainInfo struct {

	// Policy entity type.
	Target PolicyTarget `protobuf:"varint,1,opt,name=target,proto3,enum=s3gw.control.PolicyTarget" json:"target,omitempty"`
	// Policy name.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// Chain id to remove.
	ChainID []byte `protobuf:"bytes,3,opt,name=chainID,proto3" json:"chainID,omitempty"`
	// contains filtered or unexported fields
}

func (*RemovePoliciesRequest_ChainInfo) Descriptor deprecated

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

Deprecated: Use RemovePoliciesRequest_ChainInfo.ProtoReflect.Descriptor instead.

func (*RemovePoliciesRequest_ChainInfo) GetChainID

func (x *RemovePoliciesRequest_ChainInfo) GetChainID() []byte

func (*RemovePoliciesRequest_ChainInfo) GetName

func (*RemovePoliciesRequest_ChainInfo) GetTarget

func (*RemovePoliciesRequest_ChainInfo) ProtoMessage

func (*RemovePoliciesRequest_ChainInfo) ProtoMessage()

func (*RemovePoliciesRequest_ChainInfo) ProtoReflect

func (*RemovePoliciesRequest_ChainInfo) Reset

func (*RemovePoliciesRequest_ChainInfo) StableMarshal

func (x *RemovePoliciesRequest_ChainInfo) StableMarshal(buf []byte) []byte

StableMarshal marshals x in protobuf binary format with stable field order.

If buffer length is less than x.StableSize(), new buffer is allocated.

Returns any error encountered which did not allow writing the data completely. Otherwise, returns the buffer in which the data is written.

Structures with the same field values have the same binary format.

func (*RemovePoliciesRequest_ChainInfo) StableSize

func (x *RemovePoliciesRequest_ChainInfo) StableSize() (size int)

StableSize returns the size of x in protobuf format.

Structures with the same field values have the same binary size.

func (*RemovePoliciesRequest_ChainInfo) String

type RemovePoliciesResponse

type RemovePoliciesResponse struct {
	Body      *RemovePoliciesResponse_Body `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"`
	Signature *Signature                   `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
	// contains filtered or unexported fields
}

Remove policies response.

func (*RemovePoliciesResponse) Descriptor deprecated

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

Deprecated: Use RemovePoliciesResponse.ProtoReflect.Descriptor instead.

func (*RemovePoliciesResponse) GetBody

func (*RemovePoliciesResponse) GetSignature

func (x *RemovePoliciesResponse) GetSignature() *Signature

func (*RemovePoliciesResponse) ProtoMessage

func (*RemovePoliciesResponse) ProtoMessage()

func (*RemovePoliciesResponse) ProtoReflect

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

func (*RemovePoliciesResponse) ReadSignedData

func (x *RemovePoliciesResponse) ReadSignedData(buf []byte) ([]byte, error)

SignedDataSize returns size of the request signed data in bytes.

Structures with the same field values have the same signed data size.

func (*RemovePoliciesResponse) Reset

func (x *RemovePoliciesResponse) Reset()

func (*RemovePoliciesResponse) SetSignature

func (x *RemovePoliciesResponse) SetSignature(sig *Signature)

func (*RemovePoliciesResponse) SignedDataSize

func (x *RemovePoliciesResponse) SignedDataSize() int

ReadSignedData fills buf with signed data of x. If buffer length is less than x.SignedDataSize(), new buffer is allocated.

Returns any error encountered which did not allow writing the data completely. Otherwise, returns the buffer in which the data is written.

Structures with the same field values have the same signed data.

func (*RemovePoliciesResponse) StableMarshal

func (x *RemovePoliciesResponse) StableMarshal(buf []byte) []byte

StableMarshal marshals x in protobuf binary format with stable field order.

If buffer length is less than x.StableSize(), new buffer is allocated.

Returns any error encountered which did not allow writing the data completely. Otherwise, returns the buffer in which the data is written.

Structures with the same field values have the same binary format.

func (*RemovePoliciesResponse) StableSize

func (x *RemovePoliciesResponse) StableSize() (size int)

StableSize returns the size of x in protobuf format.

Structures with the same field values have the same binary size.

func (*RemovePoliciesResponse) String

func (x *RemovePoliciesResponse) String() string

type RemovePoliciesResponse_Body

type RemovePoliciesResponse_Body struct {
	// contains filtered or unexported fields
}

func (*RemovePoliciesResponse_Body) Descriptor deprecated

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

Deprecated: Use RemovePoliciesResponse_Body.ProtoReflect.Descriptor instead.

func (*RemovePoliciesResponse_Body) ProtoMessage

func (*RemovePoliciesResponse_Body) ProtoMessage()

func (*RemovePoliciesResponse_Body) ProtoReflect

func (*RemovePoliciesResponse_Body) Reset

func (x *RemovePoliciesResponse_Body) Reset()

func (*RemovePoliciesResponse_Body) StableMarshal

func (x *RemovePoliciesResponse_Body) StableMarshal(buf []byte) []byte

StableMarshal marshals x in protobuf binary format with stable field order.

If buffer length is less than x.StableSize(), new buffer is allocated.

Returns any error encountered which did not allow writing the data completely. Otherwise, returns the buffer in which the data is written.

Structures with the same field values have the same binary format.

func (*RemovePoliciesResponse_Body) StableSize

func (x *RemovePoliciesResponse_Body) StableSize() (size int)

StableSize returns the size of x in protobuf format.

Structures with the same field values have the same binary size.

func (*RemovePoliciesResponse_Body) String

func (x *RemovePoliciesResponse_Body) String() string

type Signature

type Signature struct {

	// Public key used for signing.
	Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// Binary signature.
	Sign []byte `protobuf:"bytes,2,opt,name=sign,json=signature,proto3" json:"sign,omitempty"`
	// contains filtered or unexported fields
}

Signature of some message.

func (*Signature) Descriptor deprecated

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

Deprecated: Use Signature.ProtoReflect.Descriptor instead.

func (*Signature) GetKey

func (x *Signature) GetKey() []byte

func (*Signature) GetSign

func (x *Signature) GetSign() []byte

func (*Signature) ProtoMessage

func (*Signature) ProtoMessage()

func (*Signature) ProtoReflect

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

func (*Signature) Reset

func (x *Signature) Reset()

func (*Signature) StableMarshal

func (x *Signature) StableMarshal(buf []byte) []byte

StableMarshal marshals x in protobuf binary format with stable field order.

If buffer length is less than x.StableSize(), new buffer is allocated.

Returns any error encountered which did not allow writing the data completely. Otherwise, returns the buffer in which the data is written.

Structures with the same field values have the same binary format.

func (*Signature) StableSize

func (x *Signature) StableSize() (size int)

StableSize returns the size of x in protobuf format.

Structures with the same field values have the same binary size.

func (*Signature) String

func (x *Signature) String() string

type UnimplementedControlServiceServer

type UnimplementedControlServiceServer struct {
}

UnimplementedControlServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedControlServiceServer) GetPolicy

func (UnimplementedControlServiceServer) HealthCheck

func (UnimplementedControlServiceServer) ListPolicies

func (UnimplementedControlServiceServer) PutPolicies

func (UnimplementedControlServiceServer) RemovePolicies

type UnsafeControlServiceServer

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

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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