admin

package
v0.0.0-...-5212a78 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_zenia_authz_admin_v1_admin_proto protoreflect.FileDescriptor
View Source
var File_zenia_authz_admin_v1_namespace_proto protoreflect.FileDescriptor

Functions

func RegisterAdminServiceServer

func RegisterAdminServiceServer(s grpc.ServiceRegistrar, srv AdminServiceServer)

Types

type AdminServiceClient

type AdminServiceClient interface {
	ApplyNamespace(ctx context.Context, in *ApplyNamespaceRequest, opts ...grpc.CallOption) (*ApplyNamespaceResponse, error)
}

AdminServiceClient is the client API for AdminService 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 AdminServiceServer

type AdminServiceServer interface {
	ApplyNamespace(context.Context, *ApplyNamespaceRequest) (*ApplyNamespaceResponse, error)
}

AdminServiceServer is the server API for AdminService service. All implementations should embed UnimplementedAdminServiceServer for forward compatibility

type ApplyNamespaceRequest

type ApplyNamespaceRequest struct {
	Namespace *Namespace `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
	// contains filtered or unexported fields
}

func (*ApplyNamespaceRequest) Descriptor deprecated

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

Deprecated: Use ApplyNamespaceRequest.ProtoReflect.Descriptor instead.

func (*ApplyNamespaceRequest) GetNamespace

func (x *ApplyNamespaceRequest) GetNamespace() *Namespace

func (*ApplyNamespaceRequest) ProtoMessage

func (*ApplyNamespaceRequest) ProtoMessage()

func (*ApplyNamespaceRequest) ProtoReflect

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

func (*ApplyNamespaceRequest) Reset

func (x *ApplyNamespaceRequest) Reset()

func (*ApplyNamespaceRequest) String

func (x *ApplyNamespaceRequest) String() string

type ApplyNamespaceResponse

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

func (*ApplyNamespaceResponse) Descriptor deprecated

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

Deprecated: Use ApplyNamespaceResponse.ProtoReflect.Descriptor instead.

func (*ApplyNamespaceResponse) ProtoMessage

func (*ApplyNamespaceResponse) ProtoMessage()

func (*ApplyNamespaceResponse) ProtoReflect

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

func (*ApplyNamespaceResponse) Reset

func (x *ApplyNamespaceResponse) Reset()

func (*ApplyNamespaceResponse) String

func (x *ApplyNamespaceResponse) String() string

type Namespace

type Namespace struct {
	Name   string           `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Config *NamespaceConfig `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"`
	// contains filtered or unexported fields
}

func (*Namespace) Descriptor deprecated

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

Deprecated: Use Namespace.ProtoReflect.Descriptor instead.

func (*Namespace) GetConfig

func (x *Namespace) GetConfig() *NamespaceConfig

func (*Namespace) GetName

func (x *Namespace) GetName() string

func (*Namespace) ProtoMessage

func (*Namespace) ProtoMessage()

func (*Namespace) ProtoReflect

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

func (*Namespace) Reset

func (x *Namespace) Reset()

func (*Namespace) String

func (x *Namespace) String() string

type NamespaceConfig

type NamespaceConfig struct {
	Storage *StorageConfig `protobuf:"bytes,1,opt,name=storage,proto3" json:"storage,omitempty"`
	// contains filtered or unexported fields
}

func (*NamespaceConfig) Descriptor deprecated

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

Deprecated: Use NamespaceConfig.ProtoReflect.Descriptor instead.

func (*NamespaceConfig) GetStorage

func (x *NamespaceConfig) GetStorage() *StorageConfig

func (*NamespaceConfig) ProtoMessage

func (*NamespaceConfig) ProtoMessage()

func (*NamespaceConfig) ProtoReflect

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

func (*NamespaceConfig) Reset

func (x *NamespaceConfig) Reset()

func (*NamespaceConfig) String

func (x *NamespaceConfig) String() string

type StorageConfig

type StorageConfig struct {
	Sharding                  *StorageConfig_Sharding `protobuf:"bytes,1,opt,name=sharding,proto3" json:"sharding,omitempty"`
	GarbageCollectionDuration *duration.Duration      `` /* 138-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*StorageConfig) Descriptor deprecated

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

Deprecated: Use StorageConfig.ProtoReflect.Descriptor instead.

func (*StorageConfig) GetGarbageCollectionDuration

func (x *StorageConfig) GetGarbageCollectionDuration() *duration.Duration

func (*StorageConfig) GetSharding

func (x *StorageConfig) GetSharding() *StorageConfig_Sharding

func (*StorageConfig) ProtoMessage

func (*StorageConfig) ProtoMessage()

func (*StorageConfig) ProtoReflect

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

func (*StorageConfig) Reset

func (x *StorageConfig) Reset()

func (*StorageConfig) String

func (x *StorageConfig) String() string

type StorageConfig_Sharding

type StorageConfig_Sharding struct {

	// compute shard id:
	//  - objectID
	//  - relation
	//  - ...
	//
	// So that: hash(objectId) / hash(objectId, relation) / ...
	HashParameters []string `protobuf:"bytes,1,rep,name=hash_parameters,json=hashParameters,proto3" json:"hash_parameters,omitempty"`
	// contains filtered or unexported fields
}

func (*StorageConfig_Sharding) Descriptor deprecated

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

Deprecated: Use StorageConfig_Sharding.ProtoReflect.Descriptor instead.

func (*StorageConfig_Sharding) GetHashParameters

func (x *StorageConfig_Sharding) GetHashParameters() []string

func (*StorageConfig_Sharding) ProtoMessage

func (*StorageConfig_Sharding) ProtoMessage()

func (*StorageConfig_Sharding) ProtoReflect

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

func (*StorageConfig_Sharding) Reset

func (x *StorageConfig_Sharding) Reset()

func (*StorageConfig_Sharding) String

func (x *StorageConfig_Sharding) String() string

type UnimplementedAdminServiceServer

type UnimplementedAdminServiceServer struct {
}

UnimplementedAdminServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedAdminServiceServer) ApplyNamespace

type UnsafeAdminServiceServer

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

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

Jump to

Keyboard shortcuts

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