Documentation
¶
Index ¶
- Constants
- Variables
- type AuthServiceClient
- type GetTokenRequest
- func (*GetTokenRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetTokenRequest) GetKeyId() string
- func (x *GetTokenRequest) GetSecret() string
- func (*GetTokenRequest) ProtoMessage()
- func (x *GetTokenRequest) ProtoReflect() protoreflect.Message
- func (x *GetTokenRequest) Reset()
- func (x *GetTokenRequest) String() string
- func (m *GetTokenRequest) Validate() error
- func (m *GetTokenRequest) ValidateAll() error
- type GetTokenRequestMultiError
- type GetTokenRequestValidationError
- func (e GetTokenRequestValidationError) Cause() error
- func (e GetTokenRequestValidationError) Error() string
- func (e GetTokenRequestValidationError) ErrorName() string
- func (e GetTokenRequestValidationError) Field() string
- func (e GetTokenRequestValidationError) Key() bool
- func (e GetTokenRequestValidationError) Reason() string
- type GetTokenResponse
- func (*GetTokenResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetTokenResponse) GetAccessToken() string
- func (x *GetTokenResponse) GetExpiresIn() int32
- func (x *GetTokenResponse) GetIdToken() string
- func (x *GetTokenResponse) GetNotBefore() int32
- func (x *GetTokenResponse) GetRefreshExpiresIn() int32
- func (x *GetTokenResponse) GetRefreshToken() string
- func (x *GetTokenResponse) GetScopes() []string
- func (x *GetTokenResponse) GetTokenType() string
- func (*GetTokenResponse) ProtoMessage()
- func (x *GetTokenResponse) ProtoReflect() protoreflect.Message
- func (x *GetTokenResponse) Reset()
- func (x *GetTokenResponse) String() string
- func (m *GetTokenResponse) Validate() error
- func (m *GetTokenResponse) ValidateAll() error
- type GetTokenResponseMultiError
- type GetTokenResponseValidationError
- func (e GetTokenResponseValidationError) Cause() error
- func (e GetTokenResponseValidationError) Error() string
- func (e GetTokenResponseValidationError) ErrorName() string
- func (e GetTokenResponseValidationError) Field() string
- func (e GetTokenResponseValidationError) Key() bool
- func (e GetTokenResponseValidationError) Reason() string
Constants ¶
const (
AuthService_GetToken_FullMethodName = "/sbercloud.cp.iam.api.v1.auth.AuthService/GetToken"
)
Variables ¶
var File_v1_auth_auth_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type AuthServiceClient ¶
type AuthServiceClient interface { // GetToken returns the token for the given credentials. GetToken(ctx context.Context, in *GetTokenRequest, opts ...grpc.CallOption) (*GetTokenResponse, 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.
func NewAuthServiceClient ¶
func NewAuthServiceClient(cc grpc.ClientConnInterface) AuthServiceClient
type GetTokenRequest ¶
type GetTokenRequest struct { KeyId string `protobuf:"bytes,1,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty" secret:"true"` // @gotags: secret:"true" Secret string `protobuf:"bytes,2,opt,name=secret,proto3" json:"secret,omitempty" secret:"true"` // @gotags: secret:"true" // contains filtered or unexported fields }
GetTokenRequest is the credential request for getting the token.
func (*GetTokenRequest) Descriptor
deprecated
func (*GetTokenRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetTokenRequest.ProtoReflect.Descriptor instead.
func (*GetTokenRequest) GetKeyId ¶
func (x *GetTokenRequest) GetKeyId() string
func (*GetTokenRequest) GetSecret ¶
func (x *GetTokenRequest) GetSecret() string
func (*GetTokenRequest) ProtoMessage ¶
func (*GetTokenRequest) ProtoMessage()
func (*GetTokenRequest) ProtoReflect ¶
func (x *GetTokenRequest) ProtoReflect() protoreflect.Message
func (*GetTokenRequest) Reset ¶
func (x *GetTokenRequest) Reset()
func (*GetTokenRequest) String ¶
func (x *GetTokenRequest) String() string
func (*GetTokenRequest) Validate ¶
func (m *GetTokenRequest) Validate() error
Validate checks the field values on GetTokenRequest 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 (*GetTokenRequest) ValidateAll ¶
func (m *GetTokenRequest) ValidateAll() error
ValidateAll checks the field values on GetTokenRequest 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 GetTokenRequestMultiError, or nil if none found.
type GetTokenRequestMultiError ¶
type GetTokenRequestMultiError []error
GetTokenRequestMultiError is an error wrapping multiple validation errors returned by GetTokenRequest.ValidateAll() if the designated constraints aren't met.
func (GetTokenRequestMultiError) AllErrors ¶
func (m GetTokenRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetTokenRequestMultiError) Error ¶
func (m GetTokenRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetTokenRequestValidationError ¶
type GetTokenRequestValidationError struct {
// contains filtered or unexported fields
}
GetTokenRequestValidationError is the validation error returned by GetTokenRequest.Validate if the designated constraints aren't met.
func (GetTokenRequestValidationError) Cause ¶
func (e GetTokenRequestValidationError) Cause() error
Cause function returns cause value.
func (GetTokenRequestValidationError) Error ¶
func (e GetTokenRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetTokenRequestValidationError) ErrorName ¶
func (e GetTokenRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetTokenRequestValidationError) Field ¶
func (e GetTokenRequestValidationError) Field() string
Field function returns field value.
func (GetTokenRequestValidationError) Key ¶
func (e GetTokenRequestValidationError) Key() bool
Key function returns key value.
func (GetTokenRequestValidationError) Reason ¶
func (e GetTokenRequestValidationError) Reason() string
Reason function returns reason value.
type GetTokenResponse ¶
type GetTokenResponse struct { // AccessToken is the token used to access the resources. AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty" secret:"true"` // @gotags: secret:"true" // IDToken is the token used to identify the user. IdToken string `protobuf:"bytes,2,opt,name=id_token,json=idToken,proto3" json:"id_token,omitempty" secret:"true"` // @gotags: secret:"true" // RefreshToken is the token used to refresh the AccessToken. RefreshToken string `protobuf:"bytes,3,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty" secret:"true"` // @gotags: secret:"true" // ExpiresIn is the time in seconds when the AccessToken will expire. ExpiresIn int32 `protobuf:"varint,4,opt,name=expires_in,json=expiresIn,proto3" json:"expires_in,omitempty"` // RefreshExpiresIn is the time in seconds when the RefreshToken will expire. RefreshExpiresIn int32 `protobuf:"varint,5,opt,name=refresh_expires_in,json=refreshExpiresIn,proto3" json:"refresh_expires_in,omitempty"` // Scopes is the list of scopes that the token has access to. Scopes []string `protobuf:"bytes,6,rep,name=scopes,proto3" json:"scopes,omitempty"` TokenType string `protobuf:"bytes,7,opt,name=token_type,json=tokenType,proto3" json:"token_type,omitempty"` NotBefore int32 `protobuf:"varint,8,opt,name=not_before,json=notBefore,proto3" json:"not_before,omitempty"` // contains filtered or unexported fields }
GetTokenResponse is the response for the GetToken request.
func (*GetTokenResponse) Descriptor
deprecated
func (*GetTokenResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetTokenResponse.ProtoReflect.Descriptor instead.
func (*GetTokenResponse) GetAccessToken ¶
func (x *GetTokenResponse) GetAccessToken() string
func (*GetTokenResponse) GetExpiresIn ¶
func (x *GetTokenResponse) GetExpiresIn() int32
func (*GetTokenResponse) GetIdToken ¶
func (x *GetTokenResponse) GetIdToken() string
func (*GetTokenResponse) GetNotBefore ¶
func (x *GetTokenResponse) GetNotBefore() int32
func (*GetTokenResponse) GetRefreshExpiresIn ¶
func (x *GetTokenResponse) GetRefreshExpiresIn() int32
func (*GetTokenResponse) GetRefreshToken ¶
func (x *GetTokenResponse) GetRefreshToken() string
func (*GetTokenResponse) GetScopes ¶
func (x *GetTokenResponse) GetScopes() []string
func (*GetTokenResponse) GetTokenType ¶
func (x *GetTokenResponse) GetTokenType() string
func (*GetTokenResponse) ProtoMessage ¶
func (*GetTokenResponse) ProtoMessage()
func (*GetTokenResponse) ProtoReflect ¶
func (x *GetTokenResponse) ProtoReflect() protoreflect.Message
func (*GetTokenResponse) Reset ¶
func (x *GetTokenResponse) Reset()
func (*GetTokenResponse) String ¶
func (x *GetTokenResponse) String() string
func (*GetTokenResponse) Validate ¶
func (m *GetTokenResponse) Validate() error
Validate checks the field values on GetTokenResponse 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 (*GetTokenResponse) ValidateAll ¶
func (m *GetTokenResponse) ValidateAll() error
ValidateAll checks the field values on GetTokenResponse 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 GetTokenResponseMultiError, or nil if none found.
type GetTokenResponseMultiError ¶
type GetTokenResponseMultiError []error
GetTokenResponseMultiError is an error wrapping multiple validation errors returned by GetTokenResponse.ValidateAll() if the designated constraints aren't met.
func (GetTokenResponseMultiError) AllErrors ¶
func (m GetTokenResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetTokenResponseMultiError) Error ¶
func (m GetTokenResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetTokenResponseValidationError ¶
type GetTokenResponseValidationError struct {
// contains filtered or unexported fields
}
GetTokenResponseValidationError is the validation error returned by GetTokenResponse.Validate if the designated constraints aren't met.
func (GetTokenResponseValidationError) Cause ¶
func (e GetTokenResponseValidationError) Cause() error
Cause function returns cause value.
func (GetTokenResponseValidationError) Error ¶
func (e GetTokenResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetTokenResponseValidationError) ErrorName ¶
func (e GetTokenResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetTokenResponseValidationError) Field ¶
func (e GetTokenResponseValidationError) Field() string
Field function returns field value.
func (GetTokenResponseValidationError) Key ¶
func (e GetTokenResponseValidationError) Key() bool
Key function returns key value.
func (GetTokenResponseValidationError) Reason ¶
func (e GetTokenResponseValidationError) Reason() string
Reason function returns reason value.