v1

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2024 License: MIT Imports: 19 Imported by: 2

Documentation

Index

Constants

View Source
const (
	AuthService_GetToken_FullMethodName = "/sbercloud.cp.iam.api.v1.auth.AuthService/GetToken"
)

Variables

View Source
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.

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

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

Cause function returns cause value.

func (GetTokenRequestValidationError) Error

Error satisfies the builtin error interface

func (GetTokenRequestValidationError) ErrorName

func (e GetTokenRequestValidationError) ErrorName() string

ErrorName returns error name.

func (GetTokenRequestValidationError) Field

Field function returns field value.

func (GetTokenRequestValidationError) Key

Key function returns key value.

func (GetTokenRequestValidationError) Reason

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

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

Cause function returns cause value.

func (GetTokenResponseValidationError) Error

Error satisfies the builtin error interface

func (GetTokenResponseValidationError) ErrorName

ErrorName returns error name.

func (GetTokenResponseValidationError) Field

Field function returns field value.

func (GetTokenResponseValidationError) Key

Key function returns key value.

func (GetTokenResponseValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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