Documentation ¶
Overview ¶
Package iampb is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterIamHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterIamHandlerClient(ctx context.Context, mux *runtime.ServeMux, client IamClient) error
- func RegisterIamHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterIamHandlerServer(ctx context.Context, mux *runtime.ServeMux, server IamServer) error
- func RegisterIamServer(s grpc.ServiceRegistrar, srv IamServer)
- type AuthRequest
- func (*AuthRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AuthRequest) GetAccessToken() string
- func (x *AuthRequest) GetPermissions() []int64
- func (*AuthRequest) ProtoMessage()
- func (x *AuthRequest) ProtoReflect() protoreflect.Message
- func (x *AuthRequest) Reset()
- func (x *AuthRequest) String() string
- func (m *AuthRequest) Validate() error
- func (m *AuthRequest) ValidateAll() error
- type AuthRequestMultiError
- type AuthRequestValidationError
- func (e AuthRequestValidationError) Cause() error
- func (e AuthRequestValidationError) Error() string
- func (e AuthRequestValidationError) ErrorName() string
- func (e AuthRequestValidationError) Field() string
- func (e AuthRequestValidationError) Key() bool
- func (e AuthRequestValidationError) Reason() string
- type AuthResponse
- func (*AuthResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AuthResponse) GetAccountId() int64
- func (x *AuthResponse) GetAccountType() int64
- func (x *AuthResponse) GetDomainId() int64
- func (x *AuthResponse) GetErrorMessage() string
- func (x *AuthResponse) GetExpiresAt() int64
- func (x *AuthResponse) GetGroupId() int64
- func (x *AuthResponse) GetIssuedAt() int64
- func (x *AuthResponse) GetProjectId() int64
- func (x *AuthResponse) GetStatusCode() int64
- func (*AuthResponse) ProtoMessage()
- func (x *AuthResponse) ProtoReflect() protoreflect.Message
- func (x *AuthResponse) Reset()
- func (x *AuthResponse) String() string
- func (m *AuthResponse) Validate() error
- func (m *AuthResponse) ValidateAll() error
- type AuthResponseMultiError
- type AuthResponseValidationError
- func (e AuthResponseValidationError) Cause() error
- func (e AuthResponseValidationError) Error() string
- func (e AuthResponseValidationError) ErrorName() string
- func (e AuthResponseValidationError) Field() string
- func (e AuthResponseValidationError) Key() bool
- func (e AuthResponseValidationError) Reason() string
- type CreateTokenRequest
- func (*CreateTokenRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateTokenRequest) GetAccountId() int64
- func (x *CreateTokenRequest) GetAccountType() int64
- func (x *CreateTokenRequest) GetDomainId() int64
- func (x *CreateTokenRequest) GetGroupId() int64
- func (x *CreateTokenRequest) GetProjectId() int64
- func (*CreateTokenRequest) ProtoMessage()
- func (x *CreateTokenRequest) ProtoReflect() protoreflect.Message
- func (x *CreateTokenRequest) Reset()
- func (x *CreateTokenRequest) String() string
- func (m *CreateTokenRequest) Validate() error
- func (m *CreateTokenRequest) ValidateAll() error
- type CreateTokenRequestMultiError
- type CreateTokenRequestValidationError
- func (e CreateTokenRequestValidationError) Cause() error
- func (e CreateTokenRequestValidationError) Error() string
- func (e CreateTokenRequestValidationError) ErrorName() string
- func (e CreateTokenRequestValidationError) Field() string
- func (e CreateTokenRequestValidationError) Key() bool
- func (e CreateTokenRequestValidationError) Reason() string
- type CreateTokenResponse
- func (*CreateTokenResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateTokenResponse) GetAccessToken() string
- func (x *CreateTokenResponse) GetRefreshToken() string
- func (*CreateTokenResponse) ProtoMessage()
- func (x *CreateTokenResponse) ProtoReflect() protoreflect.Message
- func (x *CreateTokenResponse) Reset()
- func (x *CreateTokenResponse) String() string
- func (m *CreateTokenResponse) Validate() error
- func (m *CreateTokenResponse) ValidateAll() error
- type CreateTokenResponseMultiError
- type CreateTokenResponseValidationError
- func (e CreateTokenResponseValidationError) Cause() error
- func (e CreateTokenResponseValidationError) Error() string
- func (e CreateTokenResponseValidationError) ErrorName() string
- func (e CreateTokenResponseValidationError) Field() string
- func (e CreateTokenResponseValidationError) Key() bool
- func (e CreateTokenResponseValidationError) Reason() string
- type IamClient
- type IamServer
- type UnimplementedIamServer
- func (UnimplementedIamServer) Auth(context.Context, *AuthRequest) (*AuthResponse, error)
- func (UnimplementedIamServer) CreateToken(context.Context, *CreateTokenRequest) (*CreateTokenResponse, error)
- func (UnimplementedIamServer) VerifyToken(context.Context, *VerifyTokenRequest) (*VerifyTokenResponse, error)
- type UnsafeIamServer
- type VerifyTokenRequest
- func (*VerifyTokenRequest) Descriptor() ([]byte, []int)deprecated
- func (x *VerifyTokenRequest) GetAccessToken() string
- func (*VerifyTokenRequest) ProtoMessage()
- func (x *VerifyTokenRequest) ProtoReflect() protoreflect.Message
- func (x *VerifyTokenRequest) Reset()
- func (x *VerifyTokenRequest) String() string
- func (m *VerifyTokenRequest) Validate() error
- func (m *VerifyTokenRequest) ValidateAll() error
- type VerifyTokenRequestMultiError
- type VerifyTokenRequestValidationError
- func (e VerifyTokenRequestValidationError) Cause() error
- func (e VerifyTokenRequestValidationError) Error() string
- func (e VerifyTokenRequestValidationError) ErrorName() string
- func (e VerifyTokenRequestValidationError) Field() string
- func (e VerifyTokenRequestValidationError) Key() bool
- func (e VerifyTokenRequestValidationError) Reason() string
- type VerifyTokenResponse
- func (*VerifyTokenResponse) Descriptor() ([]byte, []int)deprecated
- func (x *VerifyTokenResponse) GetAccountId() int64
- func (x *VerifyTokenResponse) GetAccountType() int64
- func (x *VerifyTokenResponse) GetDomainId() int64
- func (x *VerifyTokenResponse) GetErrorMessage() string
- func (x *VerifyTokenResponse) GetExpiresAt() int64
- func (x *VerifyTokenResponse) GetGroupId() int64
- func (x *VerifyTokenResponse) GetIssuedAt() int64
- func (x *VerifyTokenResponse) GetProjectId() int64
- func (x *VerifyTokenResponse) GetStatusCode() int64
- func (*VerifyTokenResponse) ProtoMessage()
- func (x *VerifyTokenResponse) ProtoReflect() protoreflect.Message
- func (x *VerifyTokenResponse) Reset()
- func (x *VerifyTokenResponse) String() string
- func (m *VerifyTokenResponse) Validate() error
- func (m *VerifyTokenResponse) ValidateAll() error
- type VerifyTokenResponseMultiError
- type VerifyTokenResponseValidationError
- func (e VerifyTokenResponseValidationError) Cause() error
- func (e VerifyTokenResponseValidationError) Error() string
- func (e VerifyTokenResponseValidationError) ErrorName() string
- func (e VerifyTokenResponseValidationError) Field() string
- func (e VerifyTokenResponseValidationError) Key() bool
- func (e VerifyTokenResponseValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var File_iam_iam_proto protoreflect.FileDescriptor
var Iam_ServiceDesc = grpc.ServiceDesc{ ServiceName: "iampb.iam", HandlerType: (*IamServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "auth", Handler: _Iam_Auth_Handler, }, { MethodName: "VerifyToken", Handler: _Iam_VerifyToken_Handler, }, { MethodName: "CreateToken", Handler: _Iam_CreateToken_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "iam/iam.proto", }
Iam_ServiceDesc is the grpc.ServiceDesc for Iam service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterIamHandler ¶
RegisterIamHandler registers the http handlers for service Iam to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterIamHandlerClient ¶
RegisterIamHandlerClient registers the http handlers for service Iam to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "IamClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "IamClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "IamClient" to call the correct interceptors.
func RegisterIamHandlerFromEndpoint ¶
func RegisterIamHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterIamHandlerFromEndpoint is same as RegisterIamHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterIamHandlerServer ¶
RegisterIamHandlerServer registers the http handlers for service Iam to "mux". UnaryRPC :call IamServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterIamHandlerFromEndpoint instead.
func RegisterIamServer ¶
func RegisterIamServer(s grpc.ServiceRegistrar, srv IamServer)
Types ¶
type AuthRequest ¶
type AuthRequest struct { AccessToken string `protobuf:"bytes,1,opt,name=accessToken,proto3" json:"accessToken,omitempty"` Permissions []int64 `protobuf:"varint,2,rep,packed,name=permissions,proto3" json:"permissions,omitempty"` // contains filtered or unexported fields }
func (*AuthRequest) Descriptor
deprecated
func (*AuthRequest) Descriptor() ([]byte, []int)
Deprecated: Use AuthRequest.ProtoReflect.Descriptor instead.
func (*AuthRequest) GetAccessToken ¶
func (x *AuthRequest) GetAccessToken() string
func (*AuthRequest) GetPermissions ¶
func (x *AuthRequest) GetPermissions() []int64
func (*AuthRequest) ProtoMessage ¶
func (*AuthRequest) ProtoMessage()
func (*AuthRequest) ProtoReflect ¶
func (x *AuthRequest) ProtoReflect() protoreflect.Message
func (*AuthRequest) Reset ¶
func (x *AuthRequest) Reset()
func (*AuthRequest) String ¶
func (x *AuthRequest) String() string
func (*AuthRequest) Validate ¶
func (m *AuthRequest) Validate() error
Validate checks the field values on AuthRequest 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 (*AuthRequest) ValidateAll ¶
func (m *AuthRequest) ValidateAll() error
ValidateAll checks the field values on AuthRequest 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 AuthRequestMultiError, or nil if none found.
type AuthRequestMultiError ¶
type AuthRequestMultiError []error
AuthRequestMultiError is an error wrapping multiple validation errors returned by AuthRequest.ValidateAll() if the designated constraints aren't met.
func (AuthRequestMultiError) AllErrors ¶
func (m AuthRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AuthRequestMultiError) Error ¶
func (m AuthRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AuthRequestValidationError ¶
type AuthRequestValidationError struct {
// contains filtered or unexported fields
}
AuthRequestValidationError is the validation error returned by AuthRequest.Validate if the designated constraints aren't met.
func (AuthRequestValidationError) Cause ¶
func (e AuthRequestValidationError) Cause() error
Cause function returns cause value.
func (AuthRequestValidationError) Error ¶
func (e AuthRequestValidationError) Error() string
Error satisfies the builtin error interface
func (AuthRequestValidationError) ErrorName ¶
func (e AuthRequestValidationError) ErrorName() string
ErrorName returns error name.
func (AuthRequestValidationError) Field ¶
func (e AuthRequestValidationError) Field() string
Field function returns field value.
func (AuthRequestValidationError) Key ¶
func (e AuthRequestValidationError) Key() bool
Key function returns key value.
func (AuthRequestValidationError) Reason ¶
func (e AuthRequestValidationError) Reason() string
Reason function returns reason value.
type AuthResponse ¶
type AuthResponse struct { StatusCode int64 `protobuf:"varint,1,opt,name=statusCode,proto3" json:"statusCode,omitempty"` ErrorMessage string `protobuf:"bytes,2,opt,name=errorMessage,proto3" json:"errorMessage,omitempty"` DomainId int64 `protobuf:"varint,3,opt,name=domainId,proto3" json:"domainId,omitempty"` ProjectId int64 `protobuf:"varint,4,opt,name=projectId,proto3" json:"projectId,omitempty"` GroupId int64 `protobuf:"varint,5,opt,name=groupId,proto3" json:"groupId,omitempty"` AccountId int64 `protobuf:"varint,6,opt,name=accountId,proto3" json:"accountId,omitempty"` AccountType int64 `protobuf:"varint,7,opt,name=accountType,proto3" json:"accountType,omitempty"` IssuedAt int64 `protobuf:"varint,8,opt,name=issuedAt,proto3" json:"issuedAt,omitempty"` ExpiresAt int64 `protobuf:"varint,9,opt,name=expiresAt,proto3" json:"expiresAt,omitempty"` // contains filtered or unexported fields }
func (*AuthResponse) Descriptor
deprecated
func (*AuthResponse) Descriptor() ([]byte, []int)
Deprecated: Use AuthResponse.ProtoReflect.Descriptor instead.
func (*AuthResponse) GetAccountId ¶
func (x *AuthResponse) GetAccountId() int64
func (*AuthResponse) GetAccountType ¶
func (x *AuthResponse) GetAccountType() int64
func (*AuthResponse) GetDomainId ¶
func (x *AuthResponse) GetDomainId() int64
func (*AuthResponse) GetErrorMessage ¶
func (x *AuthResponse) GetErrorMessage() string
func (*AuthResponse) GetExpiresAt ¶
func (x *AuthResponse) GetExpiresAt() int64
func (*AuthResponse) GetGroupId ¶
func (x *AuthResponse) GetGroupId() int64
func (*AuthResponse) GetIssuedAt ¶
func (x *AuthResponse) GetIssuedAt() int64
func (*AuthResponse) GetProjectId ¶
func (x *AuthResponse) GetProjectId() int64
func (*AuthResponse) GetStatusCode ¶
func (x *AuthResponse) GetStatusCode() int64
func (*AuthResponse) ProtoMessage ¶
func (*AuthResponse) ProtoMessage()
func (*AuthResponse) ProtoReflect ¶
func (x *AuthResponse) ProtoReflect() protoreflect.Message
func (*AuthResponse) Reset ¶
func (x *AuthResponse) Reset()
func (*AuthResponse) String ¶
func (x *AuthResponse) String() string
func (*AuthResponse) Validate ¶
func (m *AuthResponse) Validate() error
Validate checks the field values on AuthResponse 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 (*AuthResponse) ValidateAll ¶
func (m *AuthResponse) ValidateAll() error
ValidateAll checks the field values on AuthResponse 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 AuthResponseMultiError, or nil if none found.
type AuthResponseMultiError ¶
type AuthResponseMultiError []error
AuthResponseMultiError is an error wrapping multiple validation errors returned by AuthResponse.ValidateAll() if the designated constraints aren't met.
func (AuthResponseMultiError) AllErrors ¶
func (m AuthResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AuthResponseMultiError) Error ¶
func (m AuthResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AuthResponseValidationError ¶
type AuthResponseValidationError struct {
// contains filtered or unexported fields
}
AuthResponseValidationError is the validation error returned by AuthResponse.Validate if the designated constraints aren't met.
func (AuthResponseValidationError) Cause ¶
func (e AuthResponseValidationError) Cause() error
Cause function returns cause value.
func (AuthResponseValidationError) Error ¶
func (e AuthResponseValidationError) Error() string
Error satisfies the builtin error interface
func (AuthResponseValidationError) ErrorName ¶
func (e AuthResponseValidationError) ErrorName() string
ErrorName returns error name.
func (AuthResponseValidationError) Field ¶
func (e AuthResponseValidationError) Field() string
Field function returns field value.
func (AuthResponseValidationError) Key ¶
func (e AuthResponseValidationError) Key() bool
Key function returns key value.
func (AuthResponseValidationError) Reason ¶
func (e AuthResponseValidationError) Reason() string
Reason function returns reason value.
type CreateTokenRequest ¶
type CreateTokenRequest struct { DomainId int64 `protobuf:"varint,3,opt,name=domainId,proto3" json:"domainId,omitempty"` ProjectId int64 `protobuf:"varint,4,opt,name=projectId,proto3" json:"projectId,omitempty"` GroupId int64 `protobuf:"varint,5,opt,name=groupId,proto3" json:"groupId,omitempty"` AccountId int64 `protobuf:"varint,6,opt,name=accountId,proto3" json:"accountId,omitempty"` AccountType int64 `protobuf:"varint,7,opt,name=accountType,proto3" json:"accountType,omitempty"` // contains filtered or unexported fields }
func (*CreateTokenRequest) Descriptor
deprecated
func (*CreateTokenRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateTokenRequest.ProtoReflect.Descriptor instead.
func (*CreateTokenRequest) GetAccountId ¶
func (x *CreateTokenRequest) GetAccountId() int64
func (*CreateTokenRequest) GetAccountType ¶
func (x *CreateTokenRequest) GetAccountType() int64
func (*CreateTokenRequest) GetDomainId ¶
func (x *CreateTokenRequest) GetDomainId() int64
func (*CreateTokenRequest) GetGroupId ¶
func (x *CreateTokenRequest) GetGroupId() int64
func (*CreateTokenRequest) GetProjectId ¶
func (x *CreateTokenRequest) GetProjectId() int64
func (*CreateTokenRequest) ProtoMessage ¶
func (*CreateTokenRequest) ProtoMessage()
func (*CreateTokenRequest) ProtoReflect ¶
func (x *CreateTokenRequest) ProtoReflect() protoreflect.Message
func (*CreateTokenRequest) Reset ¶
func (x *CreateTokenRequest) Reset()
func (*CreateTokenRequest) String ¶
func (x *CreateTokenRequest) String() string
func (*CreateTokenRequest) Validate ¶
func (m *CreateTokenRequest) Validate() error
Validate checks the field values on CreateTokenRequest 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 (*CreateTokenRequest) ValidateAll ¶
func (m *CreateTokenRequest) ValidateAll() error
ValidateAll checks the field values on CreateTokenRequest 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 CreateTokenRequestMultiError, or nil if none found.
type CreateTokenRequestMultiError ¶
type CreateTokenRequestMultiError []error
CreateTokenRequestMultiError is an error wrapping multiple validation errors returned by CreateTokenRequest.ValidateAll() if the designated constraints aren't met.
func (CreateTokenRequestMultiError) AllErrors ¶
func (m CreateTokenRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateTokenRequestMultiError) Error ¶
func (m CreateTokenRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateTokenRequestValidationError ¶
type CreateTokenRequestValidationError struct {
// contains filtered or unexported fields
}
CreateTokenRequestValidationError is the validation error returned by CreateTokenRequest.Validate if the designated constraints aren't met.
func (CreateTokenRequestValidationError) Cause ¶
func (e CreateTokenRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateTokenRequestValidationError) Error ¶
func (e CreateTokenRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateTokenRequestValidationError) ErrorName ¶
func (e CreateTokenRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateTokenRequestValidationError) Field ¶
func (e CreateTokenRequestValidationError) Field() string
Field function returns field value.
func (CreateTokenRequestValidationError) Key ¶
func (e CreateTokenRequestValidationError) Key() bool
Key function returns key value.
func (CreateTokenRequestValidationError) Reason ¶
func (e CreateTokenRequestValidationError) Reason() string
Reason function returns reason value.
type CreateTokenResponse ¶
type CreateTokenResponse struct { AccessToken string `protobuf:"bytes,1,opt,name=accessToken,proto3" json:"accessToken,omitempty"` RefreshToken string `protobuf:"bytes,2,opt,name=refreshToken,proto3" json:"refreshToken,omitempty"` // contains filtered or unexported fields }
func (*CreateTokenResponse) Descriptor
deprecated
func (*CreateTokenResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateTokenResponse.ProtoReflect.Descriptor instead.
func (*CreateTokenResponse) GetAccessToken ¶
func (x *CreateTokenResponse) GetAccessToken() string
func (*CreateTokenResponse) GetRefreshToken ¶
func (x *CreateTokenResponse) GetRefreshToken() string
func (*CreateTokenResponse) ProtoMessage ¶
func (*CreateTokenResponse) ProtoMessage()
func (*CreateTokenResponse) ProtoReflect ¶
func (x *CreateTokenResponse) ProtoReflect() protoreflect.Message
func (*CreateTokenResponse) Reset ¶
func (x *CreateTokenResponse) Reset()
func (*CreateTokenResponse) String ¶
func (x *CreateTokenResponse) String() string
func (*CreateTokenResponse) Validate ¶
func (m *CreateTokenResponse) Validate() error
Validate checks the field values on CreateTokenResponse 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 (*CreateTokenResponse) ValidateAll ¶
func (m *CreateTokenResponse) ValidateAll() error
ValidateAll checks the field values on CreateTokenResponse 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 CreateTokenResponseMultiError, or nil if none found.
type CreateTokenResponseMultiError ¶
type CreateTokenResponseMultiError []error
CreateTokenResponseMultiError is an error wrapping multiple validation errors returned by CreateTokenResponse.ValidateAll() if the designated constraints aren't met.
func (CreateTokenResponseMultiError) AllErrors ¶
func (m CreateTokenResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateTokenResponseMultiError) Error ¶
func (m CreateTokenResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateTokenResponseValidationError ¶
type CreateTokenResponseValidationError struct {
// contains filtered or unexported fields
}
CreateTokenResponseValidationError is the validation error returned by CreateTokenResponse.Validate if the designated constraints aren't met.
func (CreateTokenResponseValidationError) Cause ¶
func (e CreateTokenResponseValidationError) Cause() error
Cause function returns cause value.
func (CreateTokenResponseValidationError) Error ¶
func (e CreateTokenResponseValidationError) Error() string
Error satisfies the builtin error interface
func (CreateTokenResponseValidationError) ErrorName ¶
func (e CreateTokenResponseValidationError) ErrorName() string
ErrorName returns error name.
func (CreateTokenResponseValidationError) Field ¶
func (e CreateTokenResponseValidationError) Field() string
Field function returns field value.
func (CreateTokenResponseValidationError) Key ¶
func (e CreateTokenResponseValidationError) Key() bool
Key function returns key value.
func (CreateTokenResponseValidationError) Reason ¶
func (e CreateTokenResponseValidationError) Reason() string
Reason function returns reason value.
type IamClient ¶
type IamClient interface { Auth(ctx context.Context, in *AuthRequest, opts ...grpc.CallOption) (*AuthResponse, error) VerifyToken(ctx context.Context, in *VerifyTokenRequest, opts ...grpc.CallOption) (*VerifyTokenResponse, error) CreateToken(ctx context.Context, in *CreateTokenRequest, opts ...grpc.CallOption) (*CreateTokenResponse, error) }
IamClient is the client API for Iam 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 NewIamClient ¶
func NewIamClient(cc grpc.ClientConnInterface) IamClient
type IamServer ¶
type IamServer interface { Auth(context.Context, *AuthRequest) (*AuthResponse, error) VerifyToken(context.Context, *VerifyTokenRequest) (*VerifyTokenResponse, error) CreateToken(context.Context, *CreateTokenRequest) (*CreateTokenResponse, error) // contains filtered or unexported methods }
IamServer is the server API for Iam service. All implementations must embed UnimplementedIamServer for forward compatibility
type UnimplementedIamServer ¶
type UnimplementedIamServer struct { }
UnimplementedIamServer must be embedded to have forward compatible implementations.
func (UnimplementedIamServer) Auth ¶
func (UnimplementedIamServer) Auth(context.Context, *AuthRequest) (*AuthResponse, error)
func (UnimplementedIamServer) CreateToken ¶
func (UnimplementedIamServer) CreateToken(context.Context, *CreateTokenRequest) (*CreateTokenResponse, error)
func (UnimplementedIamServer) VerifyToken ¶
func (UnimplementedIamServer) VerifyToken(context.Context, *VerifyTokenRequest) (*VerifyTokenResponse, error)
type UnsafeIamServer ¶
type UnsafeIamServer interface {
// contains filtered or unexported methods
}
UnsafeIamServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to IamServer will result in compilation errors.
type VerifyTokenRequest ¶
type VerifyTokenRequest struct { AccessToken string `protobuf:"bytes,1,opt,name=accessToken,proto3" json:"accessToken,omitempty"` // contains filtered or unexported fields }
func (*VerifyTokenRequest) Descriptor
deprecated
func (*VerifyTokenRequest) Descriptor() ([]byte, []int)
Deprecated: Use VerifyTokenRequest.ProtoReflect.Descriptor instead.
func (*VerifyTokenRequest) GetAccessToken ¶
func (x *VerifyTokenRequest) GetAccessToken() string
func (*VerifyTokenRequest) ProtoMessage ¶
func (*VerifyTokenRequest) ProtoMessage()
func (*VerifyTokenRequest) ProtoReflect ¶
func (x *VerifyTokenRequest) ProtoReflect() protoreflect.Message
func (*VerifyTokenRequest) Reset ¶
func (x *VerifyTokenRequest) Reset()
func (*VerifyTokenRequest) String ¶
func (x *VerifyTokenRequest) String() string
func (*VerifyTokenRequest) Validate ¶
func (m *VerifyTokenRequest) Validate() error
Validate checks the field values on VerifyTokenRequest 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 (*VerifyTokenRequest) ValidateAll ¶
func (m *VerifyTokenRequest) ValidateAll() error
ValidateAll checks the field values on VerifyTokenRequest 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 VerifyTokenRequestMultiError, or nil if none found.
type VerifyTokenRequestMultiError ¶
type VerifyTokenRequestMultiError []error
VerifyTokenRequestMultiError is an error wrapping multiple validation errors returned by VerifyTokenRequest.ValidateAll() if the designated constraints aren't met.
func (VerifyTokenRequestMultiError) AllErrors ¶
func (m VerifyTokenRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (VerifyTokenRequestMultiError) Error ¶
func (m VerifyTokenRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type VerifyTokenRequestValidationError ¶
type VerifyTokenRequestValidationError struct {
// contains filtered or unexported fields
}
VerifyTokenRequestValidationError is the validation error returned by VerifyTokenRequest.Validate if the designated constraints aren't met.
func (VerifyTokenRequestValidationError) Cause ¶
func (e VerifyTokenRequestValidationError) Cause() error
Cause function returns cause value.
func (VerifyTokenRequestValidationError) Error ¶
func (e VerifyTokenRequestValidationError) Error() string
Error satisfies the builtin error interface
func (VerifyTokenRequestValidationError) ErrorName ¶
func (e VerifyTokenRequestValidationError) ErrorName() string
ErrorName returns error name.
func (VerifyTokenRequestValidationError) Field ¶
func (e VerifyTokenRequestValidationError) Field() string
Field function returns field value.
func (VerifyTokenRequestValidationError) Key ¶
func (e VerifyTokenRequestValidationError) Key() bool
Key function returns key value.
func (VerifyTokenRequestValidationError) Reason ¶
func (e VerifyTokenRequestValidationError) Reason() string
Reason function returns reason value.
type VerifyTokenResponse ¶
type VerifyTokenResponse struct { StatusCode int64 `protobuf:"varint,1,opt,name=statusCode,proto3" json:"statusCode,omitempty"` ErrorMessage string `protobuf:"bytes,2,opt,name=errorMessage,proto3" json:"errorMessage,omitempty"` DomainId int64 `protobuf:"varint,3,opt,name=domainId,proto3" json:"domainId,omitempty"` ProjectId int64 `protobuf:"varint,4,opt,name=projectId,proto3" json:"projectId,omitempty"` GroupId int64 `protobuf:"varint,5,opt,name=groupId,proto3" json:"groupId,omitempty"` AccountId int64 `protobuf:"varint,6,opt,name=accountId,proto3" json:"accountId,omitempty"` AccountType int64 `protobuf:"varint,7,opt,name=accountType,proto3" json:"accountType,omitempty"` IssuedAt int64 `protobuf:"varint,8,opt,name=issuedAt,proto3" json:"issuedAt,omitempty"` ExpiresAt int64 `protobuf:"varint,9,opt,name=expiresAt,proto3" json:"expiresAt,omitempty"` // contains filtered or unexported fields }
func (*VerifyTokenResponse) Descriptor
deprecated
func (*VerifyTokenResponse) Descriptor() ([]byte, []int)
Deprecated: Use VerifyTokenResponse.ProtoReflect.Descriptor instead.
func (*VerifyTokenResponse) GetAccountId ¶
func (x *VerifyTokenResponse) GetAccountId() int64
func (*VerifyTokenResponse) GetAccountType ¶
func (x *VerifyTokenResponse) GetAccountType() int64
func (*VerifyTokenResponse) GetDomainId ¶
func (x *VerifyTokenResponse) GetDomainId() int64
func (*VerifyTokenResponse) GetErrorMessage ¶
func (x *VerifyTokenResponse) GetErrorMessage() string
func (*VerifyTokenResponse) GetExpiresAt ¶
func (x *VerifyTokenResponse) GetExpiresAt() int64
func (*VerifyTokenResponse) GetGroupId ¶
func (x *VerifyTokenResponse) GetGroupId() int64
func (*VerifyTokenResponse) GetIssuedAt ¶
func (x *VerifyTokenResponse) GetIssuedAt() int64
func (*VerifyTokenResponse) GetProjectId ¶
func (x *VerifyTokenResponse) GetProjectId() int64
func (*VerifyTokenResponse) GetStatusCode ¶
func (x *VerifyTokenResponse) GetStatusCode() int64
func (*VerifyTokenResponse) ProtoMessage ¶
func (*VerifyTokenResponse) ProtoMessage()
func (*VerifyTokenResponse) ProtoReflect ¶
func (x *VerifyTokenResponse) ProtoReflect() protoreflect.Message
func (*VerifyTokenResponse) Reset ¶
func (x *VerifyTokenResponse) Reset()
func (*VerifyTokenResponse) String ¶
func (x *VerifyTokenResponse) String() string
func (*VerifyTokenResponse) Validate ¶
func (m *VerifyTokenResponse) Validate() error
Validate checks the field values on VerifyTokenResponse 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 (*VerifyTokenResponse) ValidateAll ¶
func (m *VerifyTokenResponse) ValidateAll() error
ValidateAll checks the field values on VerifyTokenResponse 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 VerifyTokenResponseMultiError, or nil if none found.
type VerifyTokenResponseMultiError ¶
type VerifyTokenResponseMultiError []error
VerifyTokenResponseMultiError is an error wrapping multiple validation errors returned by VerifyTokenResponse.ValidateAll() if the designated constraints aren't met.
func (VerifyTokenResponseMultiError) AllErrors ¶
func (m VerifyTokenResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (VerifyTokenResponseMultiError) Error ¶
func (m VerifyTokenResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type VerifyTokenResponseValidationError ¶
type VerifyTokenResponseValidationError struct {
// contains filtered or unexported fields
}
VerifyTokenResponseValidationError is the validation error returned by VerifyTokenResponse.Validate if the designated constraints aren't met.
func (VerifyTokenResponseValidationError) Cause ¶
func (e VerifyTokenResponseValidationError) Cause() error
Cause function returns cause value.
func (VerifyTokenResponseValidationError) Error ¶
func (e VerifyTokenResponseValidationError) Error() string
Error satisfies the builtin error interface
func (VerifyTokenResponseValidationError) ErrorName ¶
func (e VerifyTokenResponseValidationError) ErrorName() string
ErrorName returns error name.
func (VerifyTokenResponseValidationError) Field ¶
func (e VerifyTokenResponseValidationError) Field() string
Field function returns field value.
func (VerifyTokenResponseValidationError) Key ¶
func (e VerifyTokenResponseValidationError) Key() bool
Key function returns key value.
func (VerifyTokenResponseValidationError) Reason ¶
func (e VerifyTokenResponseValidationError) Reason() string
Reason function returns reason value.