domain

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: Apache-2.0 Imports: 26 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AuditLog_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "domain.AuditLog",
	HandlerType: (*AuditLogServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "GetByDateRange",
			Handler:       _AuditLog_GetByDateRange_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "GetByUser",
			Handler:       _AuditLog_GetByUser_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "GetUserActions",
			Handler:       _AuditLog_GetUserActions_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "GetUsersOverview",
			Handler:       _AuditLog_GetUsersOverview_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "api/domain/queryhandler_service.proto",
}

AuditLog_ServiceDesc is the grpc.ServiceDesc for AuditLog 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 ClusterAccess_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "domain.ClusterAccess",
	HandlerType: (*ClusterAccessServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetTenantClusterMappingByTenantAndClusterId",
			Handler:    _ClusterAccess_GetTenantClusterMappingByTenantAndClusterId_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "GetClusterAccess",
			Handler:       _ClusterAccess_GetClusterAccess_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "GetClusterAccessV2",
			Handler:       _ClusterAccess_GetClusterAccessV2_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "GetTenantClusterMappingsByTenantId",
			Handler:       _ClusterAccess_GetTenantClusterMappingsByTenantId_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "GetTenantClusterMappingsByClusterId",
			Handler:       _ClusterAccess_GetTenantClusterMappingsByClusterId_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "api/domain/queryhandler_service.proto",
}

ClusterAccess_ServiceDesc is the grpc.ServiceDesc for ClusterAccess 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 Cluster_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "domain.Cluster",
	HandlerType: (*ClusterServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetById",
			Handler:    _Cluster_GetById_Handler,
		},
		{
			MethodName: "GetByName",
			Handler:    _Cluster_GetByName_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "GetAll",
			Handler:       _Cluster_GetAll_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "api/domain/queryhandler_service.proto",
}

Cluster_ServiceDesc is the grpc.ServiceDesc for Cluster 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 CommandHandlerExtensions_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "domain.CommandHandlerExtensions",
	HandlerType: (*CommandHandlerExtensionsServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetPermissionModel",
			Handler:    _CommandHandlerExtensions_GetPermissionModel_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/domain/commandhandler_service.proto",
}

CommandHandlerExtensions_ServiceDesc is the grpc.ServiceDesc for CommandHandlerExtensions 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_api_domain_commandhandler_service_proto protoreflect.FileDescriptor
View Source
var File_api_domain_queryhandler_service_proto protoreflect.FileDescriptor
View Source
var K8SAuthZ_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "domain.K8sAuthZ",
	HandlerType: (*K8SAuthZServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "GetAll",
			Handler:       _K8SAuthZ_GetAll_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "GetByClusterId",
			Handler:       _K8SAuthZ_GetByClusterId_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "api/domain/queryhandler_service.proto",
}

K8SAuthZ_ServiceDesc is the grpc.ServiceDesc for K8SAuthZ 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 Tenant_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "domain.Tenant",
	HandlerType: (*TenantServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetById",
			Handler:    _Tenant_GetById_Handler,
		},
		{
			MethodName: "GetByName",
			Handler:    _Tenant_GetByName_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "GetAll",
			Handler:       _Tenant_GetAll_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "GetUsers",
			Handler:       _Tenant_GetUsers_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "api/domain/queryhandler_service.proto",
}

Tenant_ServiceDesc is the grpc.ServiceDesc for Tenant 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 User_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "domain.User",
	HandlerType: (*UserServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetById",
			Handler:    _User_GetById_Handler,
		},
		{
			MethodName: "GetByEmail",
			Handler:    _User_GetByEmail_Handler,
		},
		{
			MethodName: "GetCount",
			Handler:    _User_GetCount_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "GetAll",
			Handler:       _User_GetAll_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "GetRoleBindingsById",
			Handler:       _User_GetRoleBindingsById_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "api/domain/queryhandler_service.proto",
}

User_ServiceDesc is the grpc.ServiceDesc for User service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterAuditLogServer added in v0.3.5

func RegisterAuditLogServer(s grpc.ServiceRegistrar, srv AuditLogServer)

func RegisterClusterAccessServer added in v0.3.0

func RegisterClusterAccessServer(s grpc.ServiceRegistrar, srv ClusterAccessServer)

func RegisterClusterServer

func RegisterClusterServer(s grpc.ServiceRegistrar, srv ClusterServer)

func RegisterCommandHandlerExtensionsServer

func RegisterCommandHandlerExtensionsServer(s grpc.ServiceRegistrar, srv CommandHandlerExtensionsServer)

func RegisterK8SAuthZServer added in v0.4.13

func RegisterK8SAuthZServer(s grpc.ServiceRegistrar, srv K8SAuthZServer)

func RegisterTenantServer

func RegisterTenantServer(s grpc.ServiceRegistrar, srv TenantServer)

func RegisterUserServer

func RegisterUserServer(s grpc.ServiceRegistrar, srv UserServer)

Types

type AuditLogClient added in v0.3.5

type AuditLogClient interface {
	// GetByDateRange returns human-readable events within the specified date
	// range
	GetByDateRange(ctx context.Context, in *GetAuditLogByDateRangeRequest, opts ...grpc.CallOption) (AuditLog_GetByDateRangeClient, error)
	// GetByUser returns human-readable events caused by others actions on the
	// given user
	GetByUser(ctx context.Context, in *GetByUserRequest, opts ...grpc.CallOption) (AuditLog_GetByUserClient, error)
	// GetUserActions returns human-readable events caused by the given user
	// actions
	GetUserActions(ctx context.Context, in *GetUserActionsRequest, opts ...grpc.CallOption) (AuditLog_GetUserActionsClient, error)
	// GetUsersOverview returns users overview at the specified timestamp,
	// tenants/clusters they belong to, and their roles
	GetUsersOverview(ctx context.Context, in *GetUsersOverviewRequest, opts ...grpc.CallOption) (AuditLog_GetUsersOverviewClient, error)
}

AuditLogClient is the client API for AuditLog 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 NewAuditLogClient added in v0.3.5

func NewAuditLogClient(cc grpc.ClientConnInterface) AuditLogClient

type AuditLogServer added in v0.3.5

type AuditLogServer interface {
	// GetByDateRange returns human-readable events within the specified date
	// range
	GetByDateRange(*GetAuditLogByDateRangeRequest, AuditLog_GetByDateRangeServer) error
	// GetByUser returns human-readable events caused by others actions on the
	// given user
	GetByUser(*GetByUserRequest, AuditLog_GetByUserServer) error
	// GetUserActions returns human-readable events caused by the given user
	// actions
	GetUserActions(*GetUserActionsRequest, AuditLog_GetUserActionsServer) error
	// GetUsersOverview returns users overview at the specified timestamp,
	// tenants/clusters they belong to, and their roles
	GetUsersOverview(*GetUsersOverviewRequest, AuditLog_GetUsersOverviewServer) error
	// contains filtered or unexported methods
}

AuditLogServer is the server API for AuditLog service. All implementations must embed UnimplementedAuditLogServer for forward compatibility

type AuditLog_GetByDateRangeClient added in v0.3.5

type AuditLog_GetByDateRangeClient interface {
	Recv() (*audit.HumanReadableEvent, error)
	grpc.ClientStream
}

type AuditLog_GetByDateRangeServer added in v0.3.5

type AuditLog_GetByDateRangeServer interface {
	Send(*audit.HumanReadableEvent) error
	grpc.ServerStream
}

type AuditLog_GetByUserClient added in v0.3.6

type AuditLog_GetByUserClient interface {
	Recv() (*audit.HumanReadableEvent, error)
	grpc.ClientStream
}

type AuditLog_GetByUserServer added in v0.3.6

type AuditLog_GetByUserServer interface {
	Send(*audit.HumanReadableEvent) error
	grpc.ServerStream
}

type AuditLog_GetUserActionsClient added in v0.3.6

type AuditLog_GetUserActionsClient interface {
	Recv() (*audit.HumanReadableEvent, error)
	grpc.ClientStream
}

type AuditLog_GetUserActionsServer added in v0.3.6

type AuditLog_GetUserActionsServer interface {
	Send(*audit.HumanReadableEvent) error
	grpc.ServerStream
}

type AuditLog_GetUsersOverviewClient added in v0.3.6

type AuditLog_GetUsersOverviewClient interface {
	Recv() (*audit.UserOverview, error)
	grpc.ClientStream
}

type AuditLog_GetUsersOverviewServer added in v0.3.6

type AuditLog_GetUsersOverviewServer interface {
	Send(*audit.UserOverview) error
	grpc.ServerStream
}

type ClusterAccessClient added in v0.3.0

type ClusterAccessClient interface {
	// Deprecated: Do not use.
	// GetClusterAccess returns clusters which the given user has access
	// to by it's UUID
	GetClusterAccess(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (ClusterAccess_GetClusterAccessClient, error)
	// GetClusterAccessV2 returns clusters which the given user has access
	// to by it's UUID
	GetClusterAccessV2(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (ClusterAccess_GetClusterAccessV2Client, error)
	// GetTenantClusterMappingsByTenantId returns bindings which belong to the
	// given tenant by it's UUID
	GetTenantClusterMappingsByTenantId(ctx context.Context, in *wrapperspb.StringValue, opts ...grpc.CallOption) (ClusterAccess_GetTenantClusterMappingsByTenantIdClient, error)
	// GetTenantClusterMappingsByClusterId returns bindings which belong to the
	// given cluster by it's UUID
	GetTenantClusterMappingsByClusterId(ctx context.Context, in *wrapperspb.StringValue, opts ...grpc.CallOption) (ClusterAccess_GetTenantClusterMappingsByClusterIdClient, error)
	// GetTenantClusterMappingsByClusterId returns the binding which belongs to
	// the given tenant and cluster by their UUIDs
	GetTenantClusterMappingByTenantAndClusterId(ctx context.Context, in *GetClusterMappingRequest, opts ...grpc.CallOption) (*projections.TenantClusterBinding, error)
}

ClusterAccessClient is the client API for ClusterAccess 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 NewClusterAccessClient added in v0.3.0

func NewClusterAccessClient(cc grpc.ClientConnInterface) ClusterAccessClient

type ClusterAccessServer added in v0.3.0

type ClusterAccessServer interface {
	// Deprecated: Do not use.
	// GetClusterAccess returns clusters which the given user has access
	// to by it's UUID
	GetClusterAccess(*emptypb.Empty, ClusterAccess_GetClusterAccessServer) error
	// GetClusterAccessV2 returns clusters which the given user has access
	// to by it's UUID
	GetClusterAccessV2(*emptypb.Empty, ClusterAccess_GetClusterAccessV2Server) error
	// GetTenantClusterMappingsByTenantId returns bindings which belong to the
	// given tenant by it's UUID
	GetTenantClusterMappingsByTenantId(*wrapperspb.StringValue, ClusterAccess_GetTenantClusterMappingsByTenantIdServer) error
	// GetTenantClusterMappingsByClusterId returns bindings which belong to the
	// given cluster by it's UUID
	GetTenantClusterMappingsByClusterId(*wrapperspb.StringValue, ClusterAccess_GetTenantClusterMappingsByClusterIdServer) error
	// GetTenantClusterMappingsByClusterId returns the binding which belongs to
	// the given tenant and cluster by their UUIDs
	GetTenantClusterMappingByTenantAndClusterId(context.Context, *GetClusterMappingRequest) (*projections.TenantClusterBinding, error)
	// contains filtered or unexported methods
}

ClusterAccessServer is the server API for ClusterAccess service. All implementations must embed UnimplementedClusterAccessServer for forward compatibility

type ClusterAccess_GetClusterAccessClient added in v0.4.0

type ClusterAccess_GetClusterAccessClient interface {
	Recv() (*projections.ClusterAccess, error)
	grpc.ClientStream
}

type ClusterAccess_GetClusterAccessServer added in v0.4.0

type ClusterAccess_GetClusterAccessServer interface {
	Send(*projections.ClusterAccess) error
	grpc.ServerStream
}

type ClusterAccess_GetClusterAccessV2Client added in v0.4.13

type ClusterAccess_GetClusterAccessV2Client interface {
	Recv() (*projections.ClusterAccessV2, error)
	grpc.ClientStream
}

type ClusterAccess_GetClusterAccessV2Server added in v0.4.13

type ClusterAccess_GetClusterAccessV2Server interface {
	Send(*projections.ClusterAccessV2) error
	grpc.ServerStream
}

type ClusterAccess_GetTenantClusterMappingsByClusterIdClient added in v0.3.0

type ClusterAccess_GetTenantClusterMappingsByClusterIdClient interface {
	Recv() (*projections.TenantClusterBinding, error)
	grpc.ClientStream
}

type ClusterAccess_GetTenantClusterMappingsByClusterIdServer added in v0.3.0

type ClusterAccess_GetTenantClusterMappingsByClusterIdServer interface {
	Send(*projections.TenantClusterBinding) error
	grpc.ServerStream
}

type ClusterAccess_GetTenantClusterMappingsByTenantIdClient added in v0.3.0

type ClusterAccess_GetTenantClusterMappingsByTenantIdClient interface {
	Recv() (*projections.TenantClusterBinding, error)
	grpc.ClientStream
}

type ClusterAccess_GetTenantClusterMappingsByTenantIdServer added in v0.3.0

type ClusterAccess_GetTenantClusterMappingsByTenantIdServer interface {
	Send(*projections.TenantClusterBinding) error
	grpc.ServerStream
}

type ClusterClient

type ClusterClient interface {
	// GetAll returns all known clusters
	GetAll(ctx context.Context, in *GetAllRequest, opts ...grpc.CallOption) (Cluster_GetAllClient, error)
	// GetById returns a cluster by its UUID
	GetById(ctx context.Context, in *wrapperspb.StringValue, opts ...grpc.CallOption) (*projections.Cluster, error)
	// GetByName returns a cluster by its name
	GetByName(ctx context.Context, in *wrapperspb.StringValue, opts ...grpc.CallOption) (*projections.Cluster, error)
}

ClusterClient is the client API for Cluster 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 NewClusterClient

func NewClusterClient(cc grpc.ClientConnInterface) ClusterClient

type ClusterServer

type ClusterServer interface {
	// GetAll returns all known clusters
	GetAll(*GetAllRequest, Cluster_GetAllServer) error
	// GetById returns a cluster by its UUID
	GetById(context.Context, *wrapperspb.StringValue) (*projections.Cluster, error)
	// GetByName returns a cluster by its name
	GetByName(context.Context, *wrapperspb.StringValue) (*projections.Cluster, error)
	// contains filtered or unexported methods
}

ClusterServer is the server API for Cluster service. All implementations must embed UnimplementedClusterServer for forward compatibility

type Cluster_GetAllClient

type Cluster_GetAllClient interface {
	Recv() (*projections.Cluster, error)
	grpc.ClientStream
}

type Cluster_GetAllServer

type Cluster_GetAllServer interface {
	Send(*projections.Cluster) error
	grpc.ServerStream
}

type CommandHandlerExtensionsClient

type CommandHandlerExtensionsClient interface {
	// Returns roles and scopes available.
	GetPermissionModel(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*PermissionModel, error)
}

CommandHandlerExtensionsClient is the client API for CommandHandlerExtensions 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 CommandHandlerExtensionsServer

type CommandHandlerExtensionsServer interface {
	// Returns roles and scopes available.
	GetPermissionModel(context.Context, *emptypb.Empty) (*PermissionModel, error)
	// contains filtered or unexported methods
}

CommandHandlerExtensionsServer is the server API for CommandHandlerExtensions service. All implementations must embed UnimplementedCommandHandlerExtensionsServer for forward compatibility

type GetAllRequest

type GetAllRequest struct {
	IncludeDeleted bool `protobuf:"varint,1,opt,name=include_deleted,json=includeDeleted,proto3" json:"include_deleted,omitempty"`
	// contains filtered or unexported fields
}

GetAllRequest is the generic request to query all instances of a certain projection

func (*GetAllRequest) Descriptor deprecated

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

Deprecated: Use GetAllRequest.ProtoReflect.Descriptor instead.

func (*GetAllRequest) GetIncludeDeleted

func (x *GetAllRequest) GetIncludeDeleted() bool

func (*GetAllRequest) ProtoMessage

func (*GetAllRequest) ProtoMessage()

func (*GetAllRequest) ProtoReflect

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

func (*GetAllRequest) Reset

func (x *GetAllRequest) Reset()

func (*GetAllRequest) String

func (x *GetAllRequest) String() string

func (*GetAllRequest) Validate added in v0.3.0

func (m *GetAllRequest) Validate() error

Validate checks the field values on GetAllRequest 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 (*GetAllRequest) ValidateAll added in v0.3.0

func (m *GetAllRequest) ValidateAll() error

ValidateAll checks the field values on GetAllRequest 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 GetAllRequestMultiError, or nil if none found.

type GetAllRequestMultiError added in v0.3.0

type GetAllRequestMultiError []error

GetAllRequestMultiError is an error wrapping multiple validation errors returned by GetAllRequest.ValidateAll() if the designated constraints aren't met.

func (GetAllRequestMultiError) AllErrors added in v0.3.0

func (m GetAllRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetAllRequestMultiError) Error added in v0.3.0

func (m GetAllRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type GetAllRequestValidationError added in v0.3.0

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

GetAllRequestValidationError is the validation error returned by GetAllRequest.Validate if the designated constraints aren't met.

func (GetAllRequestValidationError) Cause added in v0.3.0

Cause function returns cause value.

func (GetAllRequestValidationError) Error added in v0.3.0

Error satisfies the builtin error interface

func (GetAllRequestValidationError) ErrorName added in v0.3.0

func (e GetAllRequestValidationError) ErrorName() string

ErrorName returns error name.

func (GetAllRequestValidationError) Field added in v0.3.0

Field function returns field value.

func (GetAllRequestValidationError) Key added in v0.3.0

Key function returns key value.

func (GetAllRequestValidationError) Reason added in v0.3.0

Reason function returns reason value.

type GetAuditLogByDateRangeRequest added in v0.3.5

type GetAuditLogByDateRangeRequest struct {
	MinTimestamp *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=min_timestamp,json=minTimestamp,proto3" json:"min_timestamp,omitempty"`
	MaxTimestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=max_timestamp,json=maxTimestamp,proto3" json:"max_timestamp,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAuditLogByDateRangeRequest) Descriptor deprecated added in v0.3.5

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

Deprecated: Use GetAuditLogByDateRangeRequest.ProtoReflect.Descriptor instead.

func (*GetAuditLogByDateRangeRequest) GetMaxTimestamp added in v0.3.5

func (x *GetAuditLogByDateRangeRequest) GetMaxTimestamp() *timestamppb.Timestamp

func (*GetAuditLogByDateRangeRequest) GetMinTimestamp added in v0.3.5

func (x *GetAuditLogByDateRangeRequest) GetMinTimestamp() *timestamppb.Timestamp

func (*GetAuditLogByDateRangeRequest) ProtoMessage added in v0.3.5

func (*GetAuditLogByDateRangeRequest) ProtoMessage()

func (*GetAuditLogByDateRangeRequest) ProtoReflect added in v0.3.5

func (*GetAuditLogByDateRangeRequest) Reset added in v0.3.5

func (x *GetAuditLogByDateRangeRequest) Reset()

func (*GetAuditLogByDateRangeRequest) String added in v0.3.5

func (*GetAuditLogByDateRangeRequest) Validate added in v0.3.5

func (m *GetAuditLogByDateRangeRequest) Validate() error

Validate checks the field values on GetAuditLogByDateRangeRequest 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 (*GetAuditLogByDateRangeRequest) ValidateAll added in v0.3.5

func (m *GetAuditLogByDateRangeRequest) ValidateAll() error

ValidateAll checks the field values on GetAuditLogByDateRangeRequest 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 GetAuditLogByDateRangeRequestMultiError, or nil if none found.

type GetAuditLogByDateRangeRequestMultiError added in v0.3.5

type GetAuditLogByDateRangeRequestMultiError []error

GetAuditLogByDateRangeRequestMultiError is an error wrapping multiple validation errors returned by GetAuditLogByDateRangeRequest.ValidateAll() if the designated constraints aren't met.

func (GetAuditLogByDateRangeRequestMultiError) AllErrors added in v0.3.5

AllErrors returns a list of validation violation errors.

func (GetAuditLogByDateRangeRequestMultiError) Error added in v0.3.5

Error returns a concatenation of all the error messages it wraps.

type GetAuditLogByDateRangeRequestValidationError added in v0.3.5

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

GetAuditLogByDateRangeRequestValidationError is the validation error returned by GetAuditLogByDateRangeRequest.Validate if the designated constraints aren't met.

func (GetAuditLogByDateRangeRequestValidationError) Cause added in v0.3.5

Cause function returns cause value.

func (GetAuditLogByDateRangeRequestValidationError) Error added in v0.3.5

Error satisfies the builtin error interface

func (GetAuditLogByDateRangeRequestValidationError) ErrorName added in v0.3.5

ErrorName returns error name.

func (GetAuditLogByDateRangeRequestValidationError) Field added in v0.3.5

Field function returns field value.

func (GetAuditLogByDateRangeRequestValidationError) Key added in v0.3.5

Key function returns key value.

func (GetAuditLogByDateRangeRequestValidationError) Reason added in v0.3.5

Reason function returns reason value.

type GetByUserRequest added in v0.3.6

type GetByUserRequest struct {
	Email     *wrapperspb.StringValue        `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
	DateRange *GetAuditLogByDateRangeRequest `protobuf:"bytes,2,opt,name=date_range,json=dateRange,proto3" json:"date_range,omitempty"`
	// contains filtered or unexported fields
}

func (*GetByUserRequest) Descriptor deprecated added in v0.3.6

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

Deprecated: Use GetByUserRequest.ProtoReflect.Descriptor instead.

func (*GetByUserRequest) GetDateRange added in v0.3.6

func (*GetByUserRequest) GetEmail added in v0.3.6

func (x *GetByUserRequest) GetEmail() *wrapperspb.StringValue

func (*GetByUserRequest) ProtoMessage added in v0.3.6

func (*GetByUserRequest) ProtoMessage()

func (*GetByUserRequest) ProtoReflect added in v0.3.6

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

func (*GetByUserRequest) Reset added in v0.3.6

func (x *GetByUserRequest) Reset()

func (*GetByUserRequest) String added in v0.3.6

func (x *GetByUserRequest) String() string

func (*GetByUserRequest) Validate added in v0.3.6

func (m *GetByUserRequest) Validate() error

Validate checks the field values on GetByUserRequest 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 (*GetByUserRequest) ValidateAll added in v0.3.6

func (m *GetByUserRequest) ValidateAll() error

ValidateAll checks the field values on GetByUserRequest 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 GetByUserRequestMultiError, or nil if none found.

type GetByUserRequestMultiError added in v0.3.6

type GetByUserRequestMultiError []error

GetByUserRequestMultiError is an error wrapping multiple validation errors returned by GetByUserRequest.ValidateAll() if the designated constraints aren't met.

func (GetByUserRequestMultiError) AllErrors added in v0.3.6

func (m GetByUserRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetByUserRequestMultiError) Error added in v0.3.6

Error returns a concatenation of all the error messages it wraps.

type GetByUserRequestValidationError added in v0.3.6

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

GetByUserRequestValidationError is the validation error returned by GetByUserRequest.Validate if the designated constraints aren't met.

func (GetByUserRequestValidationError) Cause added in v0.3.6

Cause function returns cause value.

func (GetByUserRequestValidationError) Error added in v0.3.6

Error satisfies the builtin error interface

func (GetByUserRequestValidationError) ErrorName added in v0.3.6

ErrorName returns error name.

func (GetByUserRequestValidationError) Field added in v0.3.6

Field function returns field value.

func (GetByUserRequestValidationError) Key added in v0.3.6

Key function returns key value.

func (GetByUserRequestValidationError) Reason added in v0.3.6

Reason function returns reason value.

type GetClusterMappingRequest added in v0.3.0

type GetClusterMappingRequest struct {
	TenantId  string `protobuf:"bytes,1,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
	ClusterId string `protobuf:"bytes,2,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetClusterMappingRequest) Descriptor deprecated added in v0.3.0

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

Deprecated: Use GetClusterMappingRequest.ProtoReflect.Descriptor instead.

func (*GetClusterMappingRequest) GetClusterId added in v0.3.0

func (x *GetClusterMappingRequest) GetClusterId() string

func (*GetClusterMappingRequest) GetTenantId added in v0.3.0

func (x *GetClusterMappingRequest) GetTenantId() string

func (*GetClusterMappingRequest) ProtoMessage added in v0.3.0

func (*GetClusterMappingRequest) ProtoMessage()

func (*GetClusterMappingRequest) ProtoReflect added in v0.3.0

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

func (*GetClusterMappingRequest) Reset added in v0.3.0

func (x *GetClusterMappingRequest) Reset()

func (*GetClusterMappingRequest) String added in v0.3.0

func (x *GetClusterMappingRequest) String() string

func (*GetClusterMappingRequest) Validate added in v0.3.0

func (m *GetClusterMappingRequest) Validate() error

Validate checks the field values on GetClusterMappingRequest 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 (*GetClusterMappingRequest) ValidateAll added in v0.3.0

func (m *GetClusterMappingRequest) ValidateAll() error

ValidateAll checks the field values on GetClusterMappingRequest 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 GetClusterMappingRequestMultiError, or nil if none found.

type GetClusterMappingRequestMultiError added in v0.3.0

type GetClusterMappingRequestMultiError []error

GetClusterMappingRequestMultiError is an error wrapping multiple validation errors returned by GetClusterMappingRequest.ValidateAll() if the designated constraints aren't met.

func (GetClusterMappingRequestMultiError) AllErrors added in v0.3.0

func (m GetClusterMappingRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetClusterMappingRequestMultiError) Error added in v0.3.0

Error returns a concatenation of all the error messages it wraps.

type GetClusterMappingRequestValidationError added in v0.3.0

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

GetClusterMappingRequestValidationError is the validation error returned by GetClusterMappingRequest.Validate if the designated constraints aren't met.

func (GetClusterMappingRequestValidationError) Cause added in v0.3.0

Cause function returns cause value.

func (GetClusterMappingRequestValidationError) Error added in v0.3.0

Error satisfies the builtin error interface

func (GetClusterMappingRequestValidationError) ErrorName added in v0.3.0

ErrorName returns error name.

func (GetClusterMappingRequestValidationError) Field added in v0.3.0

Field function returns field value.

func (GetClusterMappingRequestValidationError) Key added in v0.3.0

Key function returns key value.

func (GetClusterMappingRequestValidationError) Reason added in v0.3.0

Reason function returns reason value.

type GetCountRequest added in v0.3.0

type GetCountRequest struct {
	IncludeDeleted bool `protobuf:"varint,1,opt,name=include_deleted,json=includeDeleted,proto3" json:"include_deleted,omitempty"`
	// contains filtered or unexported fields
}

func (*GetCountRequest) Descriptor deprecated added in v0.3.0

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

Deprecated: Use GetCountRequest.ProtoReflect.Descriptor instead.

func (*GetCountRequest) GetIncludeDeleted added in v0.3.0

func (x *GetCountRequest) GetIncludeDeleted() bool

func (*GetCountRequest) ProtoMessage added in v0.3.0

func (*GetCountRequest) ProtoMessage()

func (*GetCountRequest) ProtoReflect added in v0.3.0

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

func (*GetCountRequest) Reset added in v0.3.0

func (x *GetCountRequest) Reset()

func (*GetCountRequest) String added in v0.3.0

func (x *GetCountRequest) String() string

func (*GetCountRequest) Validate added in v0.3.0

func (m *GetCountRequest) Validate() error

Validate checks the field values on GetCountRequest 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 (*GetCountRequest) ValidateAll added in v0.3.0

func (m *GetCountRequest) ValidateAll() error

ValidateAll checks the field values on GetCountRequest 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 GetCountRequestMultiError, or nil if none found.

type GetCountRequestMultiError added in v0.3.0

type GetCountRequestMultiError []error

GetCountRequestMultiError is an error wrapping multiple validation errors returned by GetCountRequest.ValidateAll() if the designated constraints aren't met.

func (GetCountRequestMultiError) AllErrors added in v0.3.0

func (m GetCountRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetCountRequestMultiError) Error added in v0.3.0

Error returns a concatenation of all the error messages it wraps.

type GetCountRequestValidationError added in v0.3.0

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

GetCountRequestValidationError is the validation error returned by GetCountRequest.Validate if the designated constraints aren't met.

func (GetCountRequestValidationError) Cause added in v0.3.0

Cause function returns cause value.

func (GetCountRequestValidationError) Error added in v0.3.0

Error satisfies the builtin error interface

func (GetCountRequestValidationError) ErrorName added in v0.3.0

func (e GetCountRequestValidationError) ErrorName() string

ErrorName returns error name.

func (GetCountRequestValidationError) Field added in v0.3.0

Field function returns field value.

func (GetCountRequestValidationError) Key added in v0.3.0

Key function returns key value.

func (GetCountRequestValidationError) Reason added in v0.3.0

Reason function returns reason value.

type GetCountResult added in v0.3.0

type GetCountResult struct {
	Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
	// contains filtered or unexported fields
}

func (*GetCountResult) Descriptor deprecated added in v0.3.0

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

Deprecated: Use GetCountResult.ProtoReflect.Descriptor instead.

func (*GetCountResult) GetCount added in v0.3.0

func (x *GetCountResult) GetCount() int64

func (*GetCountResult) ProtoMessage added in v0.3.0

func (*GetCountResult) ProtoMessage()

func (*GetCountResult) ProtoReflect added in v0.3.0

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

func (*GetCountResult) Reset added in v0.3.0

func (x *GetCountResult) Reset()

func (*GetCountResult) String added in v0.3.0

func (x *GetCountResult) String() string

func (*GetCountResult) Validate added in v0.3.0

func (m *GetCountResult) Validate() error

Validate checks the field values on GetCountResult 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 (*GetCountResult) ValidateAll added in v0.3.0

func (m *GetCountResult) ValidateAll() error

ValidateAll checks the field values on GetCountResult 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 GetCountResultMultiError, or nil if none found.

type GetCountResultMultiError added in v0.3.0

type GetCountResultMultiError []error

GetCountResultMultiError is an error wrapping multiple validation errors returned by GetCountResult.ValidateAll() if the designated constraints aren't met.

func (GetCountResultMultiError) AllErrors added in v0.3.0

func (m GetCountResultMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetCountResultMultiError) Error added in v0.3.0

func (m GetCountResultMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type GetCountResultValidationError added in v0.3.0

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

GetCountResultValidationError is the validation error returned by GetCountResult.Validate if the designated constraints aren't met.

func (GetCountResultValidationError) Cause added in v0.3.0

Cause function returns cause value.

func (GetCountResultValidationError) Error added in v0.3.0

Error satisfies the builtin error interface

func (GetCountResultValidationError) ErrorName added in v0.3.0

func (e GetCountResultValidationError) ErrorName() string

ErrorName returns error name.

func (GetCountResultValidationError) Field added in v0.3.0

Field function returns field value.

func (GetCountResultValidationError) Key added in v0.3.0

Key function returns key value.

func (GetCountResultValidationError) Reason added in v0.3.0

Reason function returns reason value.

type GetUserActionsRequest added in v0.3.6

type GetUserActionsRequest struct {
	Email     *wrapperspb.StringValue        `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
	DateRange *GetAuditLogByDateRangeRequest `protobuf:"bytes,2,opt,name=date_range,json=dateRange,proto3" json:"date_range,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserActionsRequest) Descriptor deprecated added in v0.3.6

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

Deprecated: Use GetUserActionsRequest.ProtoReflect.Descriptor instead.

func (*GetUserActionsRequest) GetDateRange added in v0.3.6

func (*GetUserActionsRequest) GetEmail added in v0.3.6

func (*GetUserActionsRequest) ProtoMessage added in v0.3.6

func (*GetUserActionsRequest) ProtoMessage()

func (*GetUserActionsRequest) ProtoReflect added in v0.3.6

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

func (*GetUserActionsRequest) Reset added in v0.3.6

func (x *GetUserActionsRequest) Reset()

func (*GetUserActionsRequest) String added in v0.3.6

func (x *GetUserActionsRequest) String() string

func (*GetUserActionsRequest) Validate added in v0.3.6

func (m *GetUserActionsRequest) Validate() error

Validate checks the field values on GetUserActionsRequest 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 (*GetUserActionsRequest) ValidateAll added in v0.3.6

func (m *GetUserActionsRequest) ValidateAll() error

ValidateAll checks the field values on GetUserActionsRequest 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 GetUserActionsRequestMultiError, or nil if none found.

type GetUserActionsRequestMultiError added in v0.3.6

type GetUserActionsRequestMultiError []error

GetUserActionsRequestMultiError is an error wrapping multiple validation errors returned by GetUserActionsRequest.ValidateAll() if the designated constraints aren't met.

func (GetUserActionsRequestMultiError) AllErrors added in v0.3.6

func (m GetUserActionsRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetUserActionsRequestMultiError) Error added in v0.3.6

Error returns a concatenation of all the error messages it wraps.

type GetUserActionsRequestValidationError added in v0.3.6

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

GetUserActionsRequestValidationError is the validation error returned by GetUserActionsRequest.Validate if the designated constraints aren't met.

func (GetUserActionsRequestValidationError) Cause added in v0.3.6

Cause function returns cause value.

func (GetUserActionsRequestValidationError) Error added in v0.3.6

Error satisfies the builtin error interface

func (GetUserActionsRequestValidationError) ErrorName added in v0.3.6

ErrorName returns error name.

func (GetUserActionsRequestValidationError) Field added in v0.3.6

Field function returns field value.

func (GetUserActionsRequestValidationError) Key added in v0.3.6

Key function returns key value.

func (GetUserActionsRequestValidationError) Reason added in v0.3.6

Reason function returns reason value.

type GetUsersOverviewRequest added in v0.3.6

type GetUsersOverviewRequest struct {
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUsersOverviewRequest) Descriptor deprecated added in v0.3.6

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

Deprecated: Use GetUsersOverviewRequest.ProtoReflect.Descriptor instead.

func (*GetUsersOverviewRequest) GetTimestamp added in v0.3.6

func (x *GetUsersOverviewRequest) GetTimestamp() *timestamppb.Timestamp

func (*GetUsersOverviewRequest) ProtoMessage added in v0.3.6

func (*GetUsersOverviewRequest) ProtoMessage()

func (*GetUsersOverviewRequest) ProtoReflect added in v0.3.6

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

func (*GetUsersOverviewRequest) Reset added in v0.3.6

func (x *GetUsersOverviewRequest) Reset()

func (*GetUsersOverviewRequest) String added in v0.3.6

func (x *GetUsersOverviewRequest) String() string

func (*GetUsersOverviewRequest) Validate added in v0.3.6

func (m *GetUsersOverviewRequest) Validate() error

Validate checks the field values on GetUsersOverviewRequest 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 (*GetUsersOverviewRequest) ValidateAll added in v0.3.6

func (m *GetUsersOverviewRequest) ValidateAll() error

ValidateAll checks the field values on GetUsersOverviewRequest 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 GetUsersOverviewRequestMultiError, or nil if none found.

type GetUsersOverviewRequestMultiError added in v0.3.6

type GetUsersOverviewRequestMultiError []error

GetUsersOverviewRequestMultiError is an error wrapping multiple validation errors returned by GetUsersOverviewRequest.ValidateAll() if the designated constraints aren't met.

func (GetUsersOverviewRequestMultiError) AllErrors added in v0.3.6

func (m GetUsersOverviewRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetUsersOverviewRequestMultiError) Error added in v0.3.6

Error returns a concatenation of all the error messages it wraps.

type GetUsersOverviewRequestValidationError added in v0.3.6

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

GetUsersOverviewRequestValidationError is the validation error returned by GetUsersOverviewRequest.Validate if the designated constraints aren't met.

func (GetUsersOverviewRequestValidationError) Cause added in v0.3.6

Cause function returns cause value.

func (GetUsersOverviewRequestValidationError) Error added in v0.3.6

Error satisfies the builtin error interface

func (GetUsersOverviewRequestValidationError) ErrorName added in v0.3.6

ErrorName returns error name.

func (GetUsersOverviewRequestValidationError) Field added in v0.3.6

Field function returns field value.

func (GetUsersOverviewRequestValidationError) Key added in v0.3.6

Key function returns key value.

func (GetUsersOverviewRequestValidationError) Reason added in v0.3.6

Reason function returns reason value.

type K8SAuthZClient added in v0.4.13

type K8SAuthZClient interface {
	// GetAll returns all K8s resources for all clusters
	GetAll(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (K8SAuthZ_GetAllClient, error)
	// GetByClusterId returns all resources related to the given cluster
	GetByClusterId(ctx context.Context, in *wrapperspb.StringValue, opts ...grpc.CallOption) (K8SAuthZ_GetByClusterIdClient, error)
}

K8SAuthZClient is the client API for K8SAuthZ 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 NewK8SAuthZClient added in v0.4.13

func NewK8SAuthZClient(cc grpc.ClientConnInterface) K8SAuthZClient

type K8SAuthZServer added in v0.4.13

type K8SAuthZServer interface {
	// GetAll returns all K8s resources for all clusters
	GetAll(*emptypb.Empty, K8SAuthZ_GetAllServer) error
	// GetByClusterId returns all resources related to the given cluster
	GetByClusterId(*wrapperspb.StringValue, K8SAuthZ_GetByClusterIdServer) error
	// contains filtered or unexported methods
}

K8SAuthZServer is the server API for K8SAuthZ service. All implementations must embed UnimplementedK8SAuthZServer for forward compatibility

type K8SAuthZ_GetAllClient added in v0.4.13

type K8SAuthZ_GetAllClient interface {
	Recv() (*wrapperspb.BytesValue, error)
	grpc.ClientStream
}

type K8SAuthZ_GetAllServer added in v0.4.13

type K8SAuthZ_GetAllServer interface {
	Send(*wrapperspb.BytesValue) error
	grpc.ServerStream
}

type K8SAuthZ_GetByClusterIdClient added in v0.4.13

type K8SAuthZ_GetByClusterIdClient interface {
	Recv() (*wrapperspb.BytesValue, error)
	grpc.ClientStream
}

type K8SAuthZ_GetByClusterIdServer added in v0.4.13

type K8SAuthZ_GetByClusterIdServer interface {
	Send(*wrapperspb.BytesValue) error
	grpc.ServerStream
}

type PermissionModel

type PermissionModel struct {
	Roles  []string `protobuf:"bytes,1,rep,name=roles,proto3" json:"roles,omitempty"`
	Scopes []string `protobuf:"bytes,2,rep,name=scopes,proto3" json:"scopes,omitempty"`
	// contains filtered or unexported fields
}

func (*PermissionModel) Descriptor deprecated

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

Deprecated: Use PermissionModel.ProtoReflect.Descriptor instead.

func (*PermissionModel) GetRoles

func (x *PermissionModel) GetRoles() []string

func (*PermissionModel) GetScopes

func (x *PermissionModel) GetScopes() []string

func (*PermissionModel) ProtoMessage

func (*PermissionModel) ProtoMessage()

func (*PermissionModel) ProtoReflect

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

func (*PermissionModel) Reset

func (x *PermissionModel) Reset()

func (*PermissionModel) String

func (x *PermissionModel) String() string

func (*PermissionModel) Validate added in v0.3.0

func (m *PermissionModel) Validate() error

Validate checks the field values on PermissionModel 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 (*PermissionModel) ValidateAll added in v0.3.0

func (m *PermissionModel) ValidateAll() error

ValidateAll checks the field values on PermissionModel 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 PermissionModelMultiError, or nil if none found.

type PermissionModelMultiError added in v0.3.0

type PermissionModelMultiError []error

PermissionModelMultiError is an error wrapping multiple validation errors returned by PermissionModel.ValidateAll() if the designated constraints aren't met.

func (PermissionModelMultiError) AllErrors added in v0.3.0

func (m PermissionModelMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PermissionModelMultiError) Error added in v0.3.0

Error returns a concatenation of all the error messages it wraps.

type PermissionModelValidationError added in v0.3.0

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

PermissionModelValidationError is the validation error returned by PermissionModel.Validate if the designated constraints aren't met.

func (PermissionModelValidationError) Cause added in v0.3.0

Cause function returns cause value.

func (PermissionModelValidationError) Error added in v0.3.0

Error satisfies the builtin error interface

func (PermissionModelValidationError) ErrorName added in v0.3.0

func (e PermissionModelValidationError) ErrorName() string

ErrorName returns error name.

func (PermissionModelValidationError) Field added in v0.3.0

Field function returns field value.

func (PermissionModelValidationError) Key added in v0.3.0

Key function returns key value.

func (PermissionModelValidationError) Reason added in v0.3.0

Reason function returns reason value.

type TenantClient

type TenantClient interface {
	// GetAll returns all tenants.
	GetAll(ctx context.Context, in *GetAllRequest, opts ...grpc.CallOption) (Tenant_GetAllClient, error)
	// GetById returns the tenant found by the given id.
	GetById(ctx context.Context, in *wrapperspb.StringValue, opts ...grpc.CallOption) (*projections.Tenant, error)
	// GetByName returns the tenant found by the given name
	GetByName(ctx context.Context, in *wrapperspb.StringValue, opts ...grpc.CallOption) (*projections.Tenant, error)
	// GetUsers returns users belonging to the given tenant id.
	GetUsers(ctx context.Context, in *wrapperspb.StringValue, opts ...grpc.CallOption) (Tenant_GetUsersClient, error)
}

TenantClient is the client API for Tenant 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 NewTenantClient

func NewTenantClient(cc grpc.ClientConnInterface) TenantClient

type TenantServer

type TenantServer interface {
	// GetAll returns all tenants.
	GetAll(*GetAllRequest, Tenant_GetAllServer) error
	// GetById returns the tenant found by the given id.
	GetById(context.Context, *wrapperspb.StringValue) (*projections.Tenant, error)
	// GetByName returns the tenant found by the given name
	GetByName(context.Context, *wrapperspb.StringValue) (*projections.Tenant, error)
	// GetUsers returns users belonging to the given tenant id.
	GetUsers(*wrapperspb.StringValue, Tenant_GetUsersServer) error
	// contains filtered or unexported methods
}

TenantServer is the server API for Tenant service. All implementations must embed UnimplementedTenantServer for forward compatibility

type Tenant_GetAllClient

type Tenant_GetAllClient interface {
	Recv() (*projections.Tenant, error)
	grpc.ClientStream
}

type Tenant_GetAllServer

type Tenant_GetAllServer interface {
	Send(*projections.Tenant) error
	grpc.ServerStream
}

type Tenant_GetUsersClient

type Tenant_GetUsersClient interface {
	Recv() (*projections.TenantUser, error)
	grpc.ClientStream
}

type Tenant_GetUsersServer

type Tenant_GetUsersServer interface {
	Send(*projections.TenantUser) error
	grpc.ServerStream
}

type UnimplementedAuditLogServer added in v0.3.5

type UnimplementedAuditLogServer struct {
}

UnimplementedAuditLogServer must be embedded to have forward compatible implementations.

func (UnimplementedAuditLogServer) GetByDateRange added in v0.3.5

func (UnimplementedAuditLogServer) GetByUser added in v0.3.6

func (UnimplementedAuditLogServer) GetUserActions added in v0.3.6

func (UnimplementedAuditLogServer) GetUsersOverview added in v0.3.6

type UnimplementedClusterAccessServer added in v0.3.0

type UnimplementedClusterAccessServer struct {
}

UnimplementedClusterAccessServer must be embedded to have forward compatible implementations.

func (UnimplementedClusterAccessServer) GetClusterAccess added in v0.4.0

func (UnimplementedClusterAccessServer) GetClusterAccessV2 added in v0.4.13

func (UnimplementedClusterAccessServer) GetTenantClusterMappingByTenantAndClusterId added in v0.3.0

func (UnimplementedClusterAccessServer) GetTenantClusterMappingsByClusterId added in v0.3.0

func (UnimplementedClusterAccessServer) GetTenantClusterMappingsByTenantId added in v0.3.0

type UnimplementedClusterServer

type UnimplementedClusterServer struct {
}

UnimplementedClusterServer must be embedded to have forward compatible implementations.

func (UnimplementedClusterServer) GetAll

func (UnimplementedClusterServer) GetById

func (UnimplementedClusterServer) GetByName

type UnimplementedCommandHandlerExtensionsServer

type UnimplementedCommandHandlerExtensionsServer struct {
}

UnimplementedCommandHandlerExtensionsServer must be embedded to have forward compatible implementations.

func (UnimplementedCommandHandlerExtensionsServer) GetPermissionModel

type UnimplementedK8SAuthZServer added in v0.4.13

type UnimplementedK8SAuthZServer struct {
}

UnimplementedK8SAuthZServer must be embedded to have forward compatible implementations.

func (UnimplementedK8SAuthZServer) GetAll added in v0.4.13

func (UnimplementedK8SAuthZServer) GetByClusterId added in v0.4.13

type UnimplementedTenantServer

type UnimplementedTenantServer struct {
}

UnimplementedTenantServer must be embedded to have forward compatible implementations.

func (UnimplementedTenantServer) GetAll

func (UnimplementedTenantServer) GetById

func (UnimplementedTenantServer) GetByName

func (UnimplementedTenantServer) GetUsers

type UnimplementedUserServer

type UnimplementedUserServer struct {
}

UnimplementedUserServer must be embedded to have forward compatible implementations.

func (UnimplementedUserServer) GetAll

func (UnimplementedUserServer) GetByEmail

func (UnimplementedUserServer) GetById

func (UnimplementedUserServer) GetCount added in v0.3.0

func (UnimplementedUserServer) GetRoleBindingsById

type UnsafeAuditLogServer added in v0.3.5

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

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

type UnsafeClusterAccessServer added in v0.3.0

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

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

type UnsafeClusterServer

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

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

type UnsafeCommandHandlerExtensionsServer

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

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

type UnsafeK8SAuthZServer added in v0.4.13

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

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

type UnsafeTenantServer

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

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

type UnsafeUserServer

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

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

type UserClient

type UserClient interface {
	// GetAll returns all users.
	GetAll(ctx context.Context, in *GetAllRequest, opts ...grpc.CallOption) (User_GetAllClient, error)
	// GetById returns the user found by the given id.
	GetById(ctx context.Context, in *wrapperspb.StringValue, opts ...grpc.CallOption) (*projections.User, error)
	// GetByEmail returns the user found by the given email address.
	GetByEmail(ctx context.Context, in *wrapperspb.StringValue, opts ...grpc.CallOption) (*projections.User, error)
	// GetRoleBindingsById returns all role bindings related to the given user id.
	GetRoleBindingsById(ctx context.Context, in *wrapperspb.StringValue, opts ...grpc.CallOption) (User_GetRoleBindingsByIdClient, error)
	// GetCount returns the count of users
	GetCount(ctx context.Context, in *GetCountRequest, opts ...grpc.CallOption) (*GetCountResult, error)
}

UserClient is the client API for User 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 NewUserClient

func NewUserClient(cc grpc.ClientConnInterface) UserClient

type UserServer

type UserServer interface {
	// GetAll returns all users.
	GetAll(*GetAllRequest, User_GetAllServer) error
	// GetById returns the user found by the given id.
	GetById(context.Context, *wrapperspb.StringValue) (*projections.User, error)
	// GetByEmail returns the user found by the given email address.
	GetByEmail(context.Context, *wrapperspb.StringValue) (*projections.User, error)
	// GetRoleBindingsById returns all role bindings related to the given user id.
	GetRoleBindingsById(*wrapperspb.StringValue, User_GetRoleBindingsByIdServer) error
	// GetCount returns the count of users
	GetCount(context.Context, *GetCountRequest) (*GetCountResult, error)
	// contains filtered or unexported methods
}

UserServer is the server API for User service. All implementations must embed UnimplementedUserServer for forward compatibility

type User_GetAllClient

type User_GetAllClient interface {
	Recv() (*projections.User, error)
	grpc.ClientStream
}

type User_GetAllServer

type User_GetAllServer interface {
	Send(*projections.User) error
	grpc.ServerStream
}

type User_GetRoleBindingsByIdClient

type User_GetRoleBindingsByIdClient interface {
	Recv() (*projections.UserRoleBinding, error)
	grpc.ClientStream
}

type User_GetRoleBindingsByIdServer

type User_GetRoleBindingsByIdServer interface {
	Send(*projections.UserRoleBinding) error
	grpc.ServerStream
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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