auth

package module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2022 License: MIT Imports: 20 Imported by: 0

README

protos-auth-go

Authentication related GRPC definitions for Golang

Go Report Card


Documentation

Documentation can be found in the docs folder of the project.

Usage

See the Protobuf Quickstart Guide.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AuthService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "auth.AuthService",
	HandlerType: (*AuthServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Login",
			Handler:    _AuthService_Login_Handler,
		},
		{
			MethodName: "GrantAccess",
			Handler:    _AuthService_GrantAccess_Handler,
		},
		{
			MethodName: "RevokeAccess",
			Handler:    _AuthService_RevokeAccess_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "ShowAccess",
			Handler:       _AuthService_ShowAccess_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "auth.proto",
}

AuthService_ServiceDesc is the grpc.ServiceDesc for AuthService 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_access_proto protoreflect.FileDescriptor

Functions

func RegisterAuthServiceServer

func RegisterAuthServiceServer(s grpc.ServiceRegistrar, srv AuthServiceServer)

Types

type AccessDefinition added in v0.2.0

type AccessDefinition struct {
	Subject string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"`
	Group   string `protobuf:"bytes,2,opt,name=group,proto3" json:"group,omitempty"`
	Domain  string `protobuf:"bytes,3,opt,name=domain,proto3" json:"domain,omitempty"`
	// contains filtered or unexported fields
}

func (*AccessDefinition) Descriptor deprecated added in v0.2.0

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

Deprecated: Use AccessDefinition.ProtoReflect.Descriptor instead.

func (*AccessDefinition) GetDomain added in v0.2.0

func (x *AccessDefinition) GetDomain() string

func (*AccessDefinition) GetGroup added in v0.2.0

func (x *AccessDefinition) GetGroup() string

func (*AccessDefinition) GetSubject added in v0.2.0

func (x *AccessDefinition) GetSubject() string

func (*AccessDefinition) ProtoMessage added in v0.2.0

func (*AccessDefinition) ProtoMessage()

func (*AccessDefinition) ProtoReflect added in v0.2.0

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

func (*AccessDefinition) Reset added in v0.2.0

func (x *AccessDefinition) Reset()

func (*AccessDefinition) String added in v0.2.0

func (x *AccessDefinition) String() string

func (*AccessDefinition) Validate added in v0.2.0

func (m *AccessDefinition) Validate() error

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

func (m *AccessDefinition) ValidateAll() error

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

type AccessDefinitionMultiError added in v0.2.0

type AccessDefinitionMultiError []error

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

func (AccessDefinitionMultiError) AllErrors added in v0.2.0

func (m AccessDefinitionMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AccessDefinitionMultiError) Error added in v0.2.0

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

type AccessDefinitionValidationError added in v0.2.0

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

AccessDefinitionValidationError is the validation error returned by AccessDefinition.Validate if the designated constraints aren't met.

func (AccessDefinitionValidationError) Cause added in v0.2.0

Cause function returns cause value.

func (AccessDefinitionValidationError) Error added in v0.2.0

Error satisfies the builtin error interface

func (AccessDefinitionValidationError) ErrorName added in v0.2.0

ErrorName returns error name.

func (AccessDefinitionValidationError) Field added in v0.2.0

Field function returns field value.

func (AccessDefinitionValidationError) Key added in v0.2.0

Key function returns key value.

func (AccessDefinitionValidationError) Reason added in v0.2.0

Reason function returns reason value.

type AuthServiceClient

type AuthServiceClient interface {
	Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, error)
	GrantAccess(ctx context.Context, in *GrantAccessRequest, opts ...grpc.CallOption) (*GrantAccessResponse, error)
	RevokeAccess(ctx context.Context, in *RevokeAccessRequest, opts ...grpc.CallOption) (*RevokeAccessResponse, error)
	ShowAccess(ctx context.Context, in *ShowAccessRequest, opts ...grpc.CallOption) (AuthService_ShowAccessClient, error)
}

AuthServiceClient is the client API for AuthService 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 AuthServiceServer

AuthServiceServer is the server API for AuthService service. All implementations should embed UnimplementedAuthServiceServer for forward compatibility

type AuthService_ShowAccessClient added in v0.2.0

type AuthService_ShowAccessClient interface {
	Recv() (*AccessDefinition, error)
	grpc.ClientStream
}

type AuthService_ShowAccessServer added in v0.2.0

type AuthService_ShowAccessServer interface {
	Send(*AccessDefinition) error
	grpc.ServerStream
}

type GrantAccessRequest added in v0.2.0

type GrantAccessRequest struct {
	Definition *AccessDefinition `protobuf:"bytes,1,opt,name=definition,proto3" json:"definition,omitempty"`
	// contains filtered or unexported fields
}

func (*GrantAccessRequest) Descriptor deprecated added in v0.2.0

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

Deprecated: Use GrantAccessRequest.ProtoReflect.Descriptor instead.

func (*GrantAccessRequest) GetDefinition added in v0.2.0

func (x *GrantAccessRequest) GetDefinition() *AccessDefinition

func (*GrantAccessRequest) ProtoMessage added in v0.2.0

func (*GrantAccessRequest) ProtoMessage()

func (*GrantAccessRequest) ProtoReflect added in v0.2.0

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

func (*GrantAccessRequest) Reset added in v0.2.0

func (x *GrantAccessRequest) Reset()

func (*GrantAccessRequest) String added in v0.2.0

func (x *GrantAccessRequest) String() string

func (*GrantAccessRequest) Validate added in v0.2.0

func (m *GrantAccessRequest) Validate() error

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

func (m *GrantAccessRequest) ValidateAll() error

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

type GrantAccessRequestMultiError added in v0.2.0

type GrantAccessRequestMultiError []error

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

func (GrantAccessRequestMultiError) AllErrors added in v0.2.0

func (m GrantAccessRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GrantAccessRequestMultiError) Error added in v0.2.0

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

type GrantAccessRequestValidationError added in v0.2.0

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

GrantAccessRequestValidationError is the validation error returned by GrantAccessRequest.Validate if the designated constraints aren't met.

func (GrantAccessRequestValidationError) Cause added in v0.2.0

Cause function returns cause value.

func (GrantAccessRequestValidationError) Error added in v0.2.0

Error satisfies the builtin error interface

func (GrantAccessRequestValidationError) ErrorName added in v0.2.0

ErrorName returns error name.

func (GrantAccessRequestValidationError) Field added in v0.2.0

Field function returns field value.

func (GrantAccessRequestValidationError) Key added in v0.2.0

Key function returns key value.

func (GrantAccessRequestValidationError) Reason added in v0.2.0

Reason function returns reason value.

type GrantAccessResponse added in v0.2.0

type GrantAccessResponse struct {
	Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
	// contains filtered or unexported fields
}

func (*GrantAccessResponse) Descriptor deprecated added in v0.2.0

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

Deprecated: Use GrantAccessResponse.ProtoReflect.Descriptor instead.

func (*GrantAccessResponse) GetOk added in v0.2.0

func (x *GrantAccessResponse) GetOk() bool

func (*GrantAccessResponse) ProtoMessage added in v0.2.0

func (*GrantAccessResponse) ProtoMessage()

func (*GrantAccessResponse) ProtoReflect added in v0.2.0

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

func (*GrantAccessResponse) Reset added in v0.2.0

func (x *GrantAccessResponse) Reset()

func (*GrantAccessResponse) String added in v0.2.0

func (x *GrantAccessResponse) String() string

func (*GrantAccessResponse) Validate added in v0.2.0

func (m *GrantAccessResponse) Validate() error

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

func (m *GrantAccessResponse) ValidateAll() error

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

type GrantAccessResponseMultiError added in v0.2.0

type GrantAccessResponseMultiError []error

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

func (GrantAccessResponseMultiError) AllErrors added in v0.2.0

func (m GrantAccessResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GrantAccessResponseMultiError) Error added in v0.2.0

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

type GrantAccessResponseValidationError added in v0.2.0

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

GrantAccessResponseValidationError is the validation error returned by GrantAccessResponse.Validate if the designated constraints aren't met.

func (GrantAccessResponseValidationError) Cause added in v0.2.0

Cause function returns cause value.

func (GrantAccessResponseValidationError) Error added in v0.2.0

Error satisfies the builtin error interface

func (GrantAccessResponseValidationError) ErrorName added in v0.2.0

ErrorName returns error name.

func (GrantAccessResponseValidationError) Field added in v0.2.0

Field function returns field value.

func (GrantAccessResponseValidationError) Key added in v0.2.0

Key function returns key value.

func (GrantAccessResponseValidationError) Reason added in v0.2.0

Reason function returns reason value.

type LoginRequest

type LoginRequest struct {
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

func (*LoginRequest) Descriptor deprecated

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

Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.

func (*LoginRequest) GetPassword

func (x *LoginRequest) GetPassword() string

func (*LoginRequest) GetUsername

func (x *LoginRequest) GetUsername() string

func (*LoginRequest) ProtoMessage

func (*LoginRequest) ProtoMessage()

func (*LoginRequest) ProtoReflect

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

func (*LoginRequest) Reset

func (x *LoginRequest) Reset()

func (*LoginRequest) String

func (x *LoginRequest) String() string

func (*LoginRequest) Validate

func (m *LoginRequest) Validate() error

Validate checks the field values on LoginRequest 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 (*LoginRequest) ValidateAll

func (m *LoginRequest) ValidateAll() error

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

type LoginRequestMultiError

type LoginRequestMultiError []error

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

func (LoginRequestMultiError) AllErrors

func (m LoginRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (LoginRequestMultiError) Error

func (m LoginRequestMultiError) Error() string

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

type LoginRequestValidationError

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

LoginRequestValidationError is the validation error returned by LoginRequest.Validate if the designated constraints aren't met.

func (LoginRequestValidationError) Cause

Cause function returns cause value.

func (LoginRequestValidationError) Error

Error satisfies the builtin error interface

func (LoginRequestValidationError) ErrorName

func (e LoginRequestValidationError) ErrorName() string

ErrorName returns error name.

func (LoginRequestValidationError) Field

Field function returns field value.

func (LoginRequestValidationError) Key

Key function returns key value.

func (LoginRequestValidationError) Reason

Reason function returns reason value.

type LoginResponse

type LoginResponse struct {
	AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
	// contains filtered or unexported fields
}

func (*LoginResponse) Descriptor deprecated

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

Deprecated: Use LoginResponse.ProtoReflect.Descriptor instead.

func (*LoginResponse) GetAccessToken

func (x *LoginResponse) GetAccessToken() string

func (*LoginResponse) ProtoMessage

func (*LoginResponse) ProtoMessage()

func (*LoginResponse) ProtoReflect

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

func (*LoginResponse) Reset

func (x *LoginResponse) Reset()

func (*LoginResponse) String

func (x *LoginResponse) String() string

func (*LoginResponse) Validate

func (m *LoginResponse) Validate() error

Validate checks the field values on LoginResponse 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 (*LoginResponse) ValidateAll

func (m *LoginResponse) ValidateAll() error

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

type LoginResponseMultiError

type LoginResponseMultiError []error

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

func (LoginResponseMultiError) AllErrors

func (m LoginResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (LoginResponseMultiError) Error

func (m LoginResponseMultiError) Error() string

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

type LoginResponseValidationError

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

LoginResponseValidationError is the validation error returned by LoginResponse.Validate if the designated constraints aren't met.

func (LoginResponseValidationError) Cause

Cause function returns cause value.

func (LoginResponseValidationError) Error

Error satisfies the builtin error interface

func (LoginResponseValidationError) ErrorName

func (e LoginResponseValidationError) ErrorName() string

ErrorName returns error name.

func (LoginResponseValidationError) Field

Field function returns field value.

func (LoginResponseValidationError) Key

Key function returns key value.

func (LoginResponseValidationError) Reason

Reason function returns reason value.

type RevokeAccessRequest added in v0.2.0

type RevokeAccessRequest struct {
	Definition *AccessDefinition `protobuf:"bytes,1,opt,name=definition,proto3" json:"definition,omitempty"`
	// contains filtered or unexported fields
}

func (*RevokeAccessRequest) Descriptor deprecated added in v0.2.0

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

Deprecated: Use RevokeAccessRequest.ProtoReflect.Descriptor instead.

func (*RevokeAccessRequest) GetDefinition added in v0.2.0

func (x *RevokeAccessRequest) GetDefinition() *AccessDefinition

func (*RevokeAccessRequest) ProtoMessage added in v0.2.0

func (*RevokeAccessRequest) ProtoMessage()

func (*RevokeAccessRequest) ProtoReflect added in v0.2.0

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

func (*RevokeAccessRequest) Reset added in v0.2.0

func (x *RevokeAccessRequest) Reset()

func (*RevokeAccessRequest) String added in v0.2.0

func (x *RevokeAccessRequest) String() string

func (*RevokeAccessRequest) Validate added in v0.2.0

func (m *RevokeAccessRequest) Validate() error

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

func (m *RevokeAccessRequest) ValidateAll() error

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

type RevokeAccessRequestMultiError added in v0.2.0

type RevokeAccessRequestMultiError []error

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

func (RevokeAccessRequestMultiError) AllErrors added in v0.2.0

func (m RevokeAccessRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RevokeAccessRequestMultiError) Error added in v0.2.0

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

type RevokeAccessRequestValidationError added in v0.2.0

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

RevokeAccessRequestValidationError is the validation error returned by RevokeAccessRequest.Validate if the designated constraints aren't met.

func (RevokeAccessRequestValidationError) Cause added in v0.2.0

Cause function returns cause value.

func (RevokeAccessRequestValidationError) Error added in v0.2.0

Error satisfies the builtin error interface

func (RevokeAccessRequestValidationError) ErrorName added in v0.2.0

ErrorName returns error name.

func (RevokeAccessRequestValidationError) Field added in v0.2.0

Field function returns field value.

func (RevokeAccessRequestValidationError) Key added in v0.2.0

Key function returns key value.

func (RevokeAccessRequestValidationError) Reason added in v0.2.0

Reason function returns reason value.

type RevokeAccessResponse added in v0.2.0

type RevokeAccessResponse struct {
	Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
	// contains filtered or unexported fields
}

func (*RevokeAccessResponse) Descriptor deprecated added in v0.2.0

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

Deprecated: Use RevokeAccessResponse.ProtoReflect.Descriptor instead.

func (*RevokeAccessResponse) GetOk added in v0.2.0

func (x *RevokeAccessResponse) GetOk() bool

func (*RevokeAccessResponse) ProtoMessage added in v0.2.0

func (*RevokeAccessResponse) ProtoMessage()

func (*RevokeAccessResponse) ProtoReflect added in v0.2.0

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

func (*RevokeAccessResponse) Reset added in v0.2.0

func (x *RevokeAccessResponse) Reset()

func (*RevokeAccessResponse) String added in v0.2.0

func (x *RevokeAccessResponse) String() string

func (*RevokeAccessResponse) Validate added in v0.2.0

func (m *RevokeAccessResponse) Validate() error

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

func (m *RevokeAccessResponse) ValidateAll() error

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

type RevokeAccessResponseMultiError added in v0.2.0

type RevokeAccessResponseMultiError []error

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

func (RevokeAccessResponseMultiError) AllErrors added in v0.2.0

func (m RevokeAccessResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RevokeAccessResponseMultiError) Error added in v0.2.0

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

type RevokeAccessResponseValidationError added in v0.2.0

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

RevokeAccessResponseValidationError is the validation error returned by RevokeAccessResponse.Validate if the designated constraints aren't met.

func (RevokeAccessResponseValidationError) Cause added in v0.2.0

Cause function returns cause value.

func (RevokeAccessResponseValidationError) Error added in v0.2.0

Error satisfies the builtin error interface

func (RevokeAccessResponseValidationError) ErrorName added in v0.2.0

ErrorName returns error name.

func (RevokeAccessResponseValidationError) Field added in v0.2.0

Field function returns field value.

func (RevokeAccessResponseValidationError) Key added in v0.2.0

Key function returns key value.

func (RevokeAccessResponseValidationError) Reason added in v0.2.0

Reason function returns reason value.

type ShowAccessRequest added in v0.2.0

type ShowAccessRequest struct {
	Subject string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"`
	Group   string `protobuf:"bytes,2,opt,name=group,proto3" json:"group,omitempty"`
	Domain  string `protobuf:"bytes,3,opt,name=domain,proto3" json:"domain,omitempty"`
	// contains filtered or unexported fields
}

func (*ShowAccessRequest) Descriptor deprecated added in v0.2.0

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

Deprecated: Use ShowAccessRequest.ProtoReflect.Descriptor instead.

func (*ShowAccessRequest) GetDomain added in v0.2.0

func (x *ShowAccessRequest) GetDomain() string

func (*ShowAccessRequest) GetGroup added in v0.2.0

func (x *ShowAccessRequest) GetGroup() string

func (*ShowAccessRequest) GetSubject added in v0.2.0

func (x *ShowAccessRequest) GetSubject() string

func (*ShowAccessRequest) ProtoMessage added in v0.2.0

func (*ShowAccessRequest) ProtoMessage()

func (*ShowAccessRequest) ProtoReflect added in v0.2.0

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

func (*ShowAccessRequest) Reset added in v0.2.0

func (x *ShowAccessRequest) Reset()

func (*ShowAccessRequest) String added in v0.2.0

func (x *ShowAccessRequest) String() string

func (*ShowAccessRequest) Validate added in v0.2.0

func (m *ShowAccessRequest) Validate() error

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

func (m *ShowAccessRequest) ValidateAll() error

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

type ShowAccessRequestMultiError added in v0.2.0

type ShowAccessRequestMultiError []error

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

func (ShowAccessRequestMultiError) AllErrors added in v0.2.0

func (m ShowAccessRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ShowAccessRequestMultiError) Error added in v0.2.0

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

type ShowAccessRequestValidationError added in v0.2.0

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

ShowAccessRequestValidationError is the validation error returned by ShowAccessRequest.Validate if the designated constraints aren't met.

func (ShowAccessRequestValidationError) Cause added in v0.2.0

Cause function returns cause value.

func (ShowAccessRequestValidationError) Error added in v0.2.0

Error satisfies the builtin error interface

func (ShowAccessRequestValidationError) ErrorName added in v0.2.0

ErrorName returns error name.

func (ShowAccessRequestValidationError) Field added in v0.2.0

Field function returns field value.

func (ShowAccessRequestValidationError) Key added in v0.2.0

Key function returns key value.

func (ShowAccessRequestValidationError) Reason added in v0.2.0

Reason function returns reason value.

type UnimplementedAuthServiceServer

type UnimplementedAuthServiceServer struct {
}

UnimplementedAuthServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedAuthServiceServer) GrantAccess added in v0.2.0

func (UnimplementedAuthServiceServer) Login

func (UnimplementedAuthServiceServer) RevokeAccess added in v0.2.0

func (UnimplementedAuthServiceServer) ShowAccess added in v0.2.0

type UnsafeAuthServiceServer

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

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

Jump to

Keyboard shortcuts

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