model

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2023 License: GPL-3.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_model_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Client

type Client struct {
	ID                        string   `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
	Secret                    string   `protobuf:"bytes,2,opt,name=Secret,proto3" json:"Secret,omitempty"`
	AccessTokenExpireSeconds  int32    `protobuf:"varint,3,opt,name=AccessTokenExpireSeconds,proto3" json:"AccessTokenExpireSeconds,omitempty"`
	RefreshTokenExpireSeconds int32    `protobuf:"varint,4,opt,name=RefreshTokenExpireSeconds,proto3" json:"RefreshTokenExpireSeconds,omitempty"`
	PermissionLevel           int64    `protobuf:"varint,5,opt,name=PermissionLevel,proto3" json:"PermissionLevel,omitempty"`
	Grants                    []string `protobuf:"bytes,6,rep,name=Grants,proto3" json:"Grants,omitempty"`
	Audiences                 []string `protobuf:"bytes,7,rep,name=Audiences,proto3" json:"Audiences,omitempty"`
	Scopes                    []string `protobuf:"bytes,8,rep,name=Scopes,proto3" json:"Scopes,omitempty"`
	RedirectUris              []string `protobuf:"bytes,9,rep,name=RedirectUris,proto3" json:"RedirectUris,omitempty"`
	// contains filtered or unexported fields
}

func (*Client) Descriptor deprecated

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

Deprecated: Use Client.ProtoReflect.Descriptor instead.

func (*Client) GetAccessTokenExpireSeconds

func (x *Client) GetAccessTokenExpireSeconds() int32

func (*Client) GetAudiences

func (x *Client) GetAudiences() []string

func (*Client) GetGrants

func (x *Client) GetGrants() []string

func (*Client) GetID

func (x *Client) GetID() string

func (*Client) GetPermissionLevel

func (x *Client) GetPermissionLevel() int64

func (*Client) GetRedirectUris

func (x *Client) GetRedirectUris() []string

func (*Client) GetRefreshTokenExpireSeconds

func (x *Client) GetRefreshTokenExpireSeconds() int32

func (*Client) GetScopes

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

func (*Client) GetSecret

func (x *Client) GetSecret() string

func (*Client) ProtoMessage

func (*Client) ProtoMessage()

func (*Client) ProtoReflect

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

func (*Client) Reset

func (x *Client) Reset()

func (*Client) String

func (x *Client) String() string

type Credential

type Credential 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 (*Credential) Descriptor deprecated

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

Deprecated: Use Credential.ProtoReflect.Descriptor instead.

func (*Credential) GetPassword

func (x *Credential) GetPassword() string

func (*Credential) GetUsername

func (x *Credential) GetUsername() string

func (*Credential) ProtoMessage

func (*Credential) ProtoMessage()

func (*Credential) ProtoReflect

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

func (*Credential) Reset

func (x *Credential) Reset()

func (*Credential) String

func (x *Credential) String() string

type IClient

type IClient interface {
	GetID() string
	GetSecret() string
	GetAccessTokenExpireSeconds() int32
	GetRefreshTokenExpireSeconds() int32
	GetPermissionLevel() int64
	GetGrants() []string
	GetAudiences() []string
	GetScopes() []string
	GetRedirectUris() []string
}

type Resource

type Resource struct {
	Name           string   `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"`
	ValidIssuers   []string `protobuf:"bytes,2,rep,name=ValidIssuers,proto3" json:"ValidIssuers,omitempty"`
	ValidAudiences []string `protobuf:"bytes,3,rep,name=ValidAudiences,proto3" json:"ValidAudiences,omitempty"`
	// contains filtered or unexported fields
}

func (*Resource) Descriptor deprecated

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

Deprecated: Use Resource.ProtoReflect.Descriptor instead.

func (*Resource) GetName

func (x *Resource) GetName() string

func (*Resource) GetValidAudiences

func (x *Resource) GetValidAudiences() []string

func (*Resource) GetValidIssuers

func (x *Resource) GetValidIssuers() []string

func (*Resource) ProtoMessage

func (*Resource) ProtoMessage()

func (*Resource) ProtoReflect

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

func (*Resource) Reset

func (x *Resource) Reset()

func (*Resource) String

func (x *Resource) String() string

type TokenDTO added in v1.7.0

type TokenDTO struct {

	// @gotags: json:"access_token,omitempty"
	AccessToken string `protobuf:"bytes,1,opt,name=AccessToken,proto3" json:"access_token,omitempty"`
	// @gotags: json:"refresh_token,omitempty"
	RefreshToken string `protobuf:"bytes,2,opt,name=RefreshToken,proto3" json:"refresh_token,omitempty"`
	// @gotags: json:"token_type,omitempty"
	TokenType string `protobuf:"bytes,3,opt,name=TokenType,proto3" json:"token_type,omitempty"`
	// @gotags: json:"expires_in,omitempty"
	ExpiresIn int32 `protobuf:"varint,4,opt,name=ExpiresIn,proto3" json:"expires_in,omitempty"`
	// contains filtered or unexported fields
}

func (*TokenDTO) Descriptor deprecated added in v1.7.0

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

Deprecated: Use TokenDTO.ProtoReflect.Descriptor instead.

func (*TokenDTO) GetAccessToken added in v1.7.0

func (x *TokenDTO) GetAccessToken() string

func (*TokenDTO) GetExpiresIn added in v1.7.0

func (x *TokenDTO) GetExpiresIn() int32

func (*TokenDTO) GetRefreshToken added in v1.7.0

func (x *TokenDTO) GetRefreshToken() string

func (*TokenDTO) GetTokenType added in v1.7.0

func (x *TokenDTO) GetTokenType() string

func (*TokenDTO) ProtoMessage added in v1.7.0

func (*TokenDTO) ProtoMessage()

func (*TokenDTO) ProtoReflect added in v1.7.0

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

func (*TokenDTO) Reset added in v1.7.0

func (x *TokenDTO) Reset()

func (*TokenDTO) String added in v1.7.0

func (x *TokenDTO) String() string

type TokenInfo

type TokenInfo struct {

	// @gotags: json:"ci,omitempty"
	ClientID string `protobuf:"bytes,1,opt,name=ClientID,proto3" json:"ci,omitempty"`
	// @gotags: json:"sc,omitempty"
	Scopes string `protobuf:"bytes,2,opt,name=Scopes,proto3" json:"sc,omitempty"`
	// @gotags: json:"ru,omitempty"
	RedirectUri string `protobuf:"bytes,3,opt,name=RedirectUri,proto3" json:"ru,omitempty"`
	// @gotags: json:"un,omitempty"
	Username string `protobuf:"bytes,4,opt,name=Username,proto3" json:"un,omitempty"`
	// @gotags: json:"cc,omitempty"
	CodeChanllenge string `protobuf:"bytes,5,opt,name=CodeChanllenge,proto3" json:"cc,omitempty"`
	// @gotags: json:"ccm,omitempty"
	CodeChanllengeMethod string `protobuf:"bytes,6,opt,name=CodeChanllengeMethod,proto3" json:"ccm,omitempty"`
	// contains filtered or unexported fields
}

func (*TokenInfo) Descriptor deprecated

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

Deprecated: Use TokenInfo.ProtoReflect.Descriptor instead.

func (*TokenInfo) GetClientID

func (x *TokenInfo) GetClientID() string

func (*TokenInfo) GetCodeChanllenge

func (x *TokenInfo) GetCodeChanllenge() string

func (*TokenInfo) GetCodeChanllengeMethod

func (x *TokenInfo) GetCodeChanllengeMethod() string

func (*TokenInfo) GetRedirectUri

func (x *TokenInfo) GetRedirectUri() string

func (*TokenInfo) GetScopes

func (x *TokenInfo) GetScopes() string

func (*TokenInfo) GetUsername

func (x *TokenInfo) GetUsername() string

func (*TokenInfo) ProtoMessage

func (*TokenInfo) ProtoMessage()

func (*TokenInfo) ProtoReflect

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

func (*TokenInfo) Reset

func (x *TokenInfo) Reset()

func (*TokenInfo) String

func (x *TokenInfo) String() string

Jump to

Keyboard shortcuts

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