api

package module
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2024 License: Apache-2.0 Imports: 8 Imported by: 28

Documentation

Index

Constants

View Source
const (
	Dex_GetClient_FullMethodName       = "/api.Dex/GetClient"
	Dex_CreateClient_FullMethodName    = "/api.Dex/CreateClient"
	Dex_UpdateClient_FullMethodName    = "/api.Dex/UpdateClient"
	Dex_DeleteClient_FullMethodName    = "/api.Dex/DeleteClient"
	Dex_CreatePassword_FullMethodName  = "/api.Dex/CreatePassword"
	Dex_UpdatePassword_FullMethodName  = "/api.Dex/UpdatePassword"
	Dex_DeletePassword_FullMethodName  = "/api.Dex/DeletePassword"
	Dex_ListPasswords_FullMethodName   = "/api.Dex/ListPasswords"
	Dex_CreateConnector_FullMethodName = "/api.Dex/CreateConnector"
	Dex_UpdateConnector_FullMethodName = "/api.Dex/UpdateConnector"
	Dex_DeleteConnector_FullMethodName = "/api.Dex/DeleteConnector"
	Dex_ListConnectors_FullMethodName  = "/api.Dex/ListConnectors"
	Dex_GetVersion_FullMethodName      = "/api.Dex/GetVersion"
	Dex_GetDiscovery_FullMethodName    = "/api.Dex/GetDiscovery"
	Dex_ListRefresh_FullMethodName     = "/api.Dex/ListRefresh"
	Dex_RevokeRefresh_FullMethodName   = "/api.Dex/RevokeRefresh"
	Dex_VerifyPassword_FullMethodName  = "/api.Dex/VerifyPassword"
)

Variables

View Source
var Dex_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.Dex",
	HandlerType: (*DexServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetClient",
			Handler:    _Dex_GetClient_Handler,
		},
		{
			MethodName: "CreateClient",
			Handler:    _Dex_CreateClient_Handler,
		},
		{
			MethodName: "UpdateClient",
			Handler:    _Dex_UpdateClient_Handler,
		},
		{
			MethodName: "DeleteClient",
			Handler:    _Dex_DeleteClient_Handler,
		},
		{
			MethodName: "CreatePassword",
			Handler:    _Dex_CreatePassword_Handler,
		},
		{
			MethodName: "UpdatePassword",
			Handler:    _Dex_UpdatePassword_Handler,
		},
		{
			MethodName: "DeletePassword",
			Handler:    _Dex_DeletePassword_Handler,
		},
		{
			MethodName: "ListPasswords",
			Handler:    _Dex_ListPasswords_Handler,
		},
		{
			MethodName: "CreateConnector",
			Handler:    _Dex_CreateConnector_Handler,
		},
		{
			MethodName: "UpdateConnector",
			Handler:    _Dex_UpdateConnector_Handler,
		},
		{
			MethodName: "DeleteConnector",
			Handler:    _Dex_DeleteConnector_Handler,
		},
		{
			MethodName: "ListConnectors",
			Handler:    _Dex_ListConnectors_Handler,
		},
		{
			MethodName: "GetVersion",
			Handler:    _Dex_GetVersion_Handler,
		},
		{
			MethodName: "GetDiscovery",
			Handler:    _Dex_GetDiscovery_Handler,
		},
		{
			MethodName: "ListRefresh",
			Handler:    _Dex_ListRefresh_Handler,
		},
		{
			MethodName: "RevokeRefresh",
			Handler:    _Dex_RevokeRefresh_Handler,
		},
		{
			MethodName: "VerifyPassword",
			Handler:    _Dex_VerifyPassword_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/v2/api.proto",
}

Dex_ServiceDesc is the grpc.ServiceDesc for Dex 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_api_v2_api_proto protoreflect.FileDescriptor

Functions

func RegisterDexServer

func RegisterDexServer(s grpc.ServiceRegistrar, srv DexServer)

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"`
	RedirectUris []string `protobuf:"bytes,3,rep,name=redirect_uris,json=redirectUris,proto3" json:"redirect_uris,omitempty"`
	TrustedPeers []string `protobuf:"bytes,4,rep,name=trusted_peers,json=trustedPeers,proto3" json:"trusted_peers,omitempty"`
	Public       bool     `protobuf:"varint,5,opt,name=public,proto3" json:"public,omitempty"`
	Name         string   `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"`
	LogoUrl      string   `protobuf:"bytes,7,opt,name=logo_url,json=logoUrl,proto3" json:"logo_url,omitempty"`
	// contains filtered or unexported fields
}

Client represents an OAuth2 client.

func (*Client) Descriptor deprecated

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

Deprecated: Use Client.ProtoReflect.Descriptor instead.

func (*Client) GetId

func (x *Client) GetId() string

func (*Client) GetLogoUrl

func (x *Client) GetLogoUrl() string

func (*Client) GetName

func (x *Client) GetName() string

func (*Client) GetPublic

func (x *Client) GetPublic() bool

func (*Client) GetRedirectUris

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

func (*Client) GetSecret

func (x *Client) GetSecret() string

func (*Client) GetTrustedPeers

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

func (*Client) ProtoMessage

func (*Client) ProtoMessage()

func (*Client) ProtoReflect added in v2.1.0

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

func (*Client) Reset

func (x *Client) Reset()

func (*Client) String

func (x *Client) String() string

type Connector added in v2.2.0

type Connector struct {
	Id     string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Type   string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	Name   string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Config []byte `protobuf:"bytes,4,opt,name=config,proto3" json:"config,omitempty"`
	// contains filtered or unexported fields
}

Connector is a strategy used by Dex for authenticating a user against another identity provider

func (*Connector) Descriptor deprecated added in v2.2.0

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

Deprecated: Use Connector.ProtoReflect.Descriptor instead.

func (*Connector) GetConfig added in v2.2.0

func (x *Connector) GetConfig() []byte

func (*Connector) GetId added in v2.2.0

func (x *Connector) GetId() string

func (*Connector) GetName added in v2.2.0

func (x *Connector) GetName() string

func (*Connector) GetType added in v2.2.0

func (x *Connector) GetType() string

func (*Connector) ProtoMessage added in v2.2.0

func (*Connector) ProtoMessage()

func (*Connector) ProtoReflect added in v2.2.0

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

func (*Connector) Reset added in v2.2.0

func (x *Connector) Reset()

func (*Connector) String added in v2.2.0

func (x *Connector) String() string

type CreateClientReq

type CreateClientReq struct {
	Client *Client `protobuf:"bytes,1,opt,name=client,proto3" json:"client,omitempty"`
	// contains filtered or unexported fields
}

CreateClientReq is a request to make a client.

func (*CreateClientReq) Descriptor deprecated

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

Deprecated: Use CreateClientReq.ProtoReflect.Descriptor instead.

func (*CreateClientReq) GetClient

func (x *CreateClientReq) GetClient() *Client

func (*CreateClientReq) ProtoMessage

func (*CreateClientReq) ProtoMessage()

func (*CreateClientReq) ProtoReflect added in v2.1.0

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

func (*CreateClientReq) Reset

func (x *CreateClientReq) Reset()

func (*CreateClientReq) String

func (x *CreateClientReq) String() string

type CreateClientResp

type CreateClientResp struct {
	AlreadyExists bool    `protobuf:"varint,1,opt,name=already_exists,json=alreadyExists,proto3" json:"already_exists,omitempty"`
	Client        *Client `protobuf:"bytes,2,opt,name=client,proto3" json:"client,omitempty"`
	// contains filtered or unexported fields
}

CreateClientResp returns the response from creating a client.

func (*CreateClientResp) Descriptor deprecated

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

Deprecated: Use CreateClientResp.ProtoReflect.Descriptor instead.

func (*CreateClientResp) GetAlreadyExists

func (x *CreateClientResp) GetAlreadyExists() bool

func (*CreateClientResp) GetClient

func (x *CreateClientResp) GetClient() *Client

func (*CreateClientResp) ProtoMessage

func (*CreateClientResp) ProtoMessage()

func (*CreateClientResp) ProtoReflect added in v2.1.0

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

func (*CreateClientResp) Reset

func (x *CreateClientResp) Reset()

func (*CreateClientResp) String

func (x *CreateClientResp) String() string

type CreateConnectorReq added in v2.2.0

type CreateConnectorReq struct {
	Connector *Connector `protobuf:"bytes,1,opt,name=connector,proto3" json:"connector,omitempty"`
	// contains filtered or unexported fields
}

CreateConnectorReq is a request to make a connector.

func (*CreateConnectorReq) Descriptor deprecated added in v2.2.0

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

Deprecated: Use CreateConnectorReq.ProtoReflect.Descriptor instead.

func (*CreateConnectorReq) GetConnector added in v2.2.0

func (x *CreateConnectorReq) GetConnector() *Connector

func (*CreateConnectorReq) ProtoMessage added in v2.2.0

func (*CreateConnectorReq) ProtoMessage()

func (*CreateConnectorReq) ProtoReflect added in v2.2.0

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

func (*CreateConnectorReq) Reset added in v2.2.0

func (x *CreateConnectorReq) Reset()

func (*CreateConnectorReq) String added in v2.2.0

func (x *CreateConnectorReq) String() string

type CreateConnectorResp added in v2.2.0

type CreateConnectorResp struct {
	AlreadyExists bool `protobuf:"varint,1,opt,name=already_exists,json=alreadyExists,proto3" json:"already_exists,omitempty"`
	// contains filtered or unexported fields
}

CreateConnectorResp returns the response from creating a connector.

func (*CreateConnectorResp) Descriptor deprecated added in v2.2.0

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

Deprecated: Use CreateConnectorResp.ProtoReflect.Descriptor instead.

func (*CreateConnectorResp) GetAlreadyExists added in v2.2.0

func (x *CreateConnectorResp) GetAlreadyExists() bool

func (*CreateConnectorResp) ProtoMessage added in v2.2.0

func (*CreateConnectorResp) ProtoMessage()

func (*CreateConnectorResp) ProtoReflect added in v2.2.0

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

func (*CreateConnectorResp) Reset added in v2.2.0

func (x *CreateConnectorResp) Reset()

func (*CreateConnectorResp) String added in v2.2.0

func (x *CreateConnectorResp) String() string

type CreatePasswordReq

type CreatePasswordReq struct {
	Password *Password `protobuf:"bytes,1,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

CreatePasswordReq is a request to make a password.

func (*CreatePasswordReq) Descriptor deprecated

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

Deprecated: Use CreatePasswordReq.ProtoReflect.Descriptor instead.

func (*CreatePasswordReq) GetPassword

func (x *CreatePasswordReq) GetPassword() *Password

func (*CreatePasswordReq) ProtoMessage

func (*CreatePasswordReq) ProtoMessage()

func (*CreatePasswordReq) ProtoReflect added in v2.1.0

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

func (*CreatePasswordReq) Reset

func (x *CreatePasswordReq) Reset()

func (*CreatePasswordReq) String

func (x *CreatePasswordReq) String() string

type CreatePasswordResp

type CreatePasswordResp struct {
	AlreadyExists bool `protobuf:"varint,1,opt,name=already_exists,json=alreadyExists,proto3" json:"already_exists,omitempty"`
	// contains filtered or unexported fields
}

CreatePasswordResp returns the response from creating a password.

func (*CreatePasswordResp) Descriptor deprecated

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

Deprecated: Use CreatePasswordResp.ProtoReflect.Descriptor instead.

func (*CreatePasswordResp) GetAlreadyExists

func (x *CreatePasswordResp) GetAlreadyExists() bool

func (*CreatePasswordResp) ProtoMessage

func (*CreatePasswordResp) ProtoMessage()

func (*CreatePasswordResp) ProtoReflect added in v2.1.0

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

func (*CreatePasswordResp) Reset

func (x *CreatePasswordResp) Reset()

func (*CreatePasswordResp) String

func (x *CreatePasswordResp) String() string

type DeleteClientReq

type DeleteClientReq struct {

	// The ID of the client.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

DeleteClientReq is a request to delete a client.

func (*DeleteClientReq) Descriptor deprecated

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

Deprecated: Use DeleteClientReq.ProtoReflect.Descriptor instead.

func (*DeleteClientReq) GetId

func (x *DeleteClientReq) GetId() string

func (*DeleteClientReq) ProtoMessage

func (*DeleteClientReq) ProtoMessage()

func (*DeleteClientReq) ProtoReflect added in v2.1.0

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

func (*DeleteClientReq) Reset

func (x *DeleteClientReq) Reset()

func (*DeleteClientReq) String

func (x *DeleteClientReq) String() string

type DeleteClientResp

type DeleteClientResp struct {
	NotFound bool `protobuf:"varint,1,opt,name=not_found,json=notFound,proto3" json:"not_found,omitempty"`
	// contains filtered or unexported fields
}

DeleteClientResp determines if the client is deleted successfully.

func (*DeleteClientResp) Descriptor deprecated

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

Deprecated: Use DeleteClientResp.ProtoReflect.Descriptor instead.

func (*DeleteClientResp) GetNotFound

func (x *DeleteClientResp) GetNotFound() bool

func (*DeleteClientResp) ProtoMessage

func (*DeleteClientResp) ProtoMessage()

func (*DeleteClientResp) ProtoReflect added in v2.1.0

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

func (*DeleteClientResp) Reset

func (x *DeleteClientResp) Reset()

func (*DeleteClientResp) String

func (x *DeleteClientResp) String() string

type DeleteConnectorReq added in v2.2.0

type DeleteConnectorReq struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

DeleteConnectorReq is a request to delete a connector.

func (*DeleteConnectorReq) Descriptor deprecated added in v2.2.0

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

Deprecated: Use DeleteConnectorReq.ProtoReflect.Descriptor instead.

func (*DeleteConnectorReq) GetId added in v2.2.0

func (x *DeleteConnectorReq) GetId() string

func (*DeleteConnectorReq) ProtoMessage added in v2.2.0

func (*DeleteConnectorReq) ProtoMessage()

func (*DeleteConnectorReq) ProtoReflect added in v2.2.0

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

func (*DeleteConnectorReq) Reset added in v2.2.0

func (x *DeleteConnectorReq) Reset()

func (*DeleteConnectorReq) String added in v2.2.0

func (x *DeleteConnectorReq) String() string

type DeleteConnectorResp added in v2.2.0

type DeleteConnectorResp struct {
	NotFound bool `protobuf:"varint,1,opt,name=not_found,json=notFound,proto3" json:"not_found,omitempty"`
	// contains filtered or unexported fields
}

DeleteConnectorResp returns the response from deleting a connector.

func (*DeleteConnectorResp) Descriptor deprecated added in v2.2.0

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

Deprecated: Use DeleteConnectorResp.ProtoReflect.Descriptor instead.

func (*DeleteConnectorResp) GetNotFound added in v2.2.0

func (x *DeleteConnectorResp) GetNotFound() bool

func (*DeleteConnectorResp) ProtoMessage added in v2.2.0

func (*DeleteConnectorResp) ProtoMessage()

func (*DeleteConnectorResp) ProtoReflect added in v2.2.0

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

func (*DeleteConnectorResp) Reset added in v2.2.0

func (x *DeleteConnectorResp) Reset()

func (*DeleteConnectorResp) String added in v2.2.0

func (x *DeleteConnectorResp) String() string

type DeletePasswordReq

type DeletePasswordReq struct {
	Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
	// contains filtered or unexported fields
}

DeletePasswordReq is a request to delete a password.

func (*DeletePasswordReq) Descriptor deprecated

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

Deprecated: Use DeletePasswordReq.ProtoReflect.Descriptor instead.

func (*DeletePasswordReq) GetEmail

func (x *DeletePasswordReq) GetEmail() string

func (*DeletePasswordReq) ProtoMessage

func (*DeletePasswordReq) ProtoMessage()

func (*DeletePasswordReq) ProtoReflect added in v2.1.0

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

func (*DeletePasswordReq) Reset

func (x *DeletePasswordReq) Reset()

func (*DeletePasswordReq) String

func (x *DeletePasswordReq) String() string

type DeletePasswordResp

type DeletePasswordResp struct {
	NotFound bool `protobuf:"varint,1,opt,name=not_found,json=notFound,proto3" json:"not_found,omitempty"`
	// contains filtered or unexported fields
}

DeletePasswordResp returns the response from deleting a password.

func (*DeletePasswordResp) Descriptor deprecated

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

Deprecated: Use DeletePasswordResp.ProtoReflect.Descriptor instead.

func (*DeletePasswordResp) GetNotFound

func (x *DeletePasswordResp) GetNotFound() bool

func (*DeletePasswordResp) ProtoMessage

func (*DeletePasswordResp) ProtoMessage()

func (*DeletePasswordResp) ProtoReflect added in v2.1.0

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

func (*DeletePasswordResp) Reset

func (x *DeletePasswordResp) Reset()

func (*DeletePasswordResp) String

func (x *DeletePasswordResp) String() string

type DexClient

type DexClient interface {
	// GetClient gets a client.
	GetClient(ctx context.Context, in *GetClientReq, opts ...grpc.CallOption) (*GetClientResp, error)
	// CreateClient creates a client.
	CreateClient(ctx context.Context, in *CreateClientReq, opts ...grpc.CallOption) (*CreateClientResp, error)
	// UpdateClient updates an existing client
	UpdateClient(ctx context.Context, in *UpdateClientReq, opts ...grpc.CallOption) (*UpdateClientResp, error)
	// DeleteClient deletes the provided client.
	DeleteClient(ctx context.Context, in *DeleteClientReq, opts ...grpc.CallOption) (*DeleteClientResp, error)
	// CreatePassword creates a password.
	CreatePassword(ctx context.Context, in *CreatePasswordReq, opts ...grpc.CallOption) (*CreatePasswordResp, error)
	// UpdatePassword modifies existing password.
	UpdatePassword(ctx context.Context, in *UpdatePasswordReq, opts ...grpc.CallOption) (*UpdatePasswordResp, error)
	// DeletePassword deletes the password.
	DeletePassword(ctx context.Context, in *DeletePasswordReq, opts ...grpc.CallOption) (*DeletePasswordResp, error)
	// ListPassword lists all password entries.
	ListPasswords(ctx context.Context, in *ListPasswordReq, opts ...grpc.CallOption) (*ListPasswordResp, error)
	// CreateConnector creates a connector.
	CreateConnector(ctx context.Context, in *CreateConnectorReq, opts ...grpc.CallOption) (*CreateConnectorResp, error)
	// UpdateConnector modifies existing connector.
	UpdateConnector(ctx context.Context, in *UpdateConnectorReq, opts ...grpc.CallOption) (*UpdateConnectorResp, error)
	// DeleteConnector deletes the connector.
	DeleteConnector(ctx context.Context, in *DeleteConnectorReq, opts ...grpc.CallOption) (*DeleteConnectorResp, error)
	// ListConnectors lists all connector entries.
	ListConnectors(ctx context.Context, in *ListConnectorReq, opts ...grpc.CallOption) (*ListConnectorResp, error)
	// GetVersion returns version information of the server.
	GetVersion(ctx context.Context, in *VersionReq, opts ...grpc.CallOption) (*VersionResp, error)
	// GetDiscovery returns discovery information of the server.
	GetDiscovery(ctx context.Context, in *DiscoveryReq, opts ...grpc.CallOption) (*DiscoveryResp, error)
	// ListRefresh lists all the refresh token entries for a particular user.
	ListRefresh(ctx context.Context, in *ListRefreshReq, opts ...grpc.CallOption) (*ListRefreshResp, error)
	// RevokeRefresh revokes the refresh token for the provided user-client pair.
	//
	// Note that each user-client pair can have only one refresh token at a time.
	RevokeRefresh(ctx context.Context, in *RevokeRefreshReq, opts ...grpc.CallOption) (*RevokeRefreshResp, error)
	// VerifyPassword returns whether a password matches a hash for a specific email or not.
	VerifyPassword(ctx context.Context, in *VerifyPasswordReq, opts ...grpc.CallOption) (*VerifyPasswordResp, error)
}

DexClient is the client API for Dex 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 NewDexClient

func NewDexClient(cc grpc.ClientConnInterface) DexClient

type DexServer

type DexServer interface {
	// GetClient gets a client.
	GetClient(context.Context, *GetClientReq) (*GetClientResp, error)
	// CreateClient creates a client.
	CreateClient(context.Context, *CreateClientReq) (*CreateClientResp, error)
	// UpdateClient updates an existing client
	UpdateClient(context.Context, *UpdateClientReq) (*UpdateClientResp, error)
	// DeleteClient deletes the provided client.
	DeleteClient(context.Context, *DeleteClientReq) (*DeleteClientResp, error)
	// CreatePassword creates a password.
	CreatePassword(context.Context, *CreatePasswordReq) (*CreatePasswordResp, error)
	// UpdatePassword modifies existing password.
	UpdatePassword(context.Context, *UpdatePasswordReq) (*UpdatePasswordResp, error)
	// DeletePassword deletes the password.
	DeletePassword(context.Context, *DeletePasswordReq) (*DeletePasswordResp, error)
	// ListPassword lists all password entries.
	ListPasswords(context.Context, *ListPasswordReq) (*ListPasswordResp, error)
	// CreateConnector creates a connector.
	CreateConnector(context.Context, *CreateConnectorReq) (*CreateConnectorResp, error)
	// UpdateConnector modifies existing connector.
	UpdateConnector(context.Context, *UpdateConnectorReq) (*UpdateConnectorResp, error)
	// DeleteConnector deletes the connector.
	DeleteConnector(context.Context, *DeleteConnectorReq) (*DeleteConnectorResp, error)
	// ListConnectors lists all connector entries.
	ListConnectors(context.Context, *ListConnectorReq) (*ListConnectorResp, error)
	// GetVersion returns version information of the server.
	GetVersion(context.Context, *VersionReq) (*VersionResp, error)
	// GetDiscovery returns discovery information of the server.
	GetDiscovery(context.Context, *DiscoveryReq) (*DiscoveryResp, error)
	// ListRefresh lists all the refresh token entries for a particular user.
	ListRefresh(context.Context, *ListRefreshReq) (*ListRefreshResp, error)
	// RevokeRefresh revokes the refresh token for the provided user-client pair.
	//
	// Note that each user-client pair can have only one refresh token at a time.
	RevokeRefresh(context.Context, *RevokeRefreshReq) (*RevokeRefreshResp, error)
	// VerifyPassword returns whether a password matches a hash for a specific email or not.
	VerifyPassword(context.Context, *VerifyPasswordReq) (*VerifyPasswordResp, error)
	// contains filtered or unexported methods
}

DexServer is the server API for Dex service. All implementations must embed UnimplementedDexServer for forward compatibility

type DiscoveryReq added in v2.2.0

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

DiscoveryReq is a request to fetch discover information.

func (*DiscoveryReq) Descriptor deprecated added in v2.2.0

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

Deprecated: Use DiscoveryReq.ProtoReflect.Descriptor instead.

func (*DiscoveryReq) ProtoMessage added in v2.2.0

func (*DiscoveryReq) ProtoMessage()

func (*DiscoveryReq) ProtoReflect added in v2.2.0

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

func (*DiscoveryReq) Reset added in v2.2.0

func (x *DiscoveryReq) Reset()

func (*DiscoveryReq) String added in v2.2.0

func (x *DiscoveryReq) String() string

type DiscoveryResp added in v2.2.0

type DiscoveryResp struct {
	Issuer                            string   `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"`
	AuthorizationEndpoint             string   `protobuf:"bytes,2,opt,name=authorization_endpoint,json=authorizationEndpoint,proto3" json:"authorization_endpoint,omitempty"`
	TokenEndpoint                     string   `protobuf:"bytes,3,opt,name=token_endpoint,json=tokenEndpoint,proto3" json:"token_endpoint,omitempty"`
	JwksUri                           string   `protobuf:"bytes,4,opt,name=jwks_uri,json=jwksUri,proto3" json:"jwks_uri,omitempty"`
	UserinfoEndpoint                  string   `protobuf:"bytes,5,opt,name=userinfo_endpoint,json=userinfoEndpoint,proto3" json:"userinfo_endpoint,omitempty"`
	DeviceAuthorizationEndpoint       string   `` /* 144-byte string literal not displayed */
	IntrospectionEndpoint             string   `protobuf:"bytes,7,opt,name=introspection_endpoint,json=introspectionEndpoint,proto3" json:"introspection_endpoint,omitempty"`
	GrantTypesSupported               []string `protobuf:"bytes,8,rep,name=grant_types_supported,json=grantTypesSupported,proto3" json:"grant_types_supported,omitempty"`
	ResponseTypesSupported            []string `` /* 129-byte string literal not displayed */
	SubjectTypesSupported             []string `` /* 127-byte string literal not displayed */
	IdTokenSigningAlgValuesSupported  []string `` /* 166-byte string literal not displayed */
	CodeChallengeMethodsSupported     []string `` /* 153-byte string literal not displayed */
	ScopesSupported                   []string `protobuf:"bytes,13,rep,name=scopes_supported,json=scopesSupported,proto3" json:"scopes_supported,omitempty"`
	TokenEndpointAuthMethodsSupported []string `` /* 167-byte string literal not displayed */
	ClaimsSupported                   []string `protobuf:"bytes,15,rep,name=claims_supported,json=claimsSupported,proto3" json:"claims_supported,omitempty"`
	// contains filtered or unexported fields
}

DiscoverResp holds the version oidc disovery info.

func (*DiscoveryResp) Descriptor deprecated added in v2.2.0

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

Deprecated: Use DiscoveryResp.ProtoReflect.Descriptor instead.

func (*DiscoveryResp) GetAuthorizationEndpoint added in v2.2.0

func (x *DiscoveryResp) GetAuthorizationEndpoint() string

func (*DiscoveryResp) GetClaimsSupported added in v2.2.0

func (x *DiscoveryResp) GetClaimsSupported() []string

func (*DiscoveryResp) GetCodeChallengeMethodsSupported added in v2.2.0

func (x *DiscoveryResp) GetCodeChallengeMethodsSupported() []string

func (*DiscoveryResp) GetDeviceAuthorizationEndpoint added in v2.2.0

func (x *DiscoveryResp) GetDeviceAuthorizationEndpoint() string

func (*DiscoveryResp) GetGrantTypesSupported added in v2.2.0

func (x *DiscoveryResp) GetGrantTypesSupported() []string

func (*DiscoveryResp) GetIdTokenSigningAlgValuesSupported added in v2.2.0

func (x *DiscoveryResp) GetIdTokenSigningAlgValuesSupported() []string

func (*DiscoveryResp) GetIntrospectionEndpoint added in v2.2.0

func (x *DiscoveryResp) GetIntrospectionEndpoint() string

func (*DiscoveryResp) GetIssuer added in v2.2.0

func (x *DiscoveryResp) GetIssuer() string

func (*DiscoveryResp) GetJwksUri added in v2.2.0

func (x *DiscoveryResp) GetJwksUri() string

func (*DiscoveryResp) GetResponseTypesSupported added in v2.2.0

func (x *DiscoveryResp) GetResponseTypesSupported() []string

func (*DiscoveryResp) GetScopesSupported added in v2.2.0

func (x *DiscoveryResp) GetScopesSupported() []string

func (*DiscoveryResp) GetSubjectTypesSupported added in v2.2.0

func (x *DiscoveryResp) GetSubjectTypesSupported() []string

func (*DiscoveryResp) GetTokenEndpoint added in v2.2.0

func (x *DiscoveryResp) GetTokenEndpoint() string

func (*DiscoveryResp) GetTokenEndpointAuthMethodsSupported added in v2.2.0

func (x *DiscoveryResp) GetTokenEndpointAuthMethodsSupported() []string

func (*DiscoveryResp) GetUserinfoEndpoint added in v2.2.0

func (x *DiscoveryResp) GetUserinfoEndpoint() string

func (*DiscoveryResp) ProtoMessage added in v2.2.0

func (*DiscoveryResp) ProtoMessage()

func (*DiscoveryResp) ProtoReflect added in v2.2.0

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

func (*DiscoveryResp) Reset added in v2.2.0

func (x *DiscoveryResp) Reset()

func (*DiscoveryResp) String added in v2.2.0

func (x *DiscoveryResp) String() string

type GetClientReq added in v2.2.0

type GetClientReq struct {

	// The ID of the client.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

GetClientReq is a request to retrieve client details.

func (*GetClientReq) Descriptor deprecated added in v2.2.0

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

Deprecated: Use GetClientReq.ProtoReflect.Descriptor instead.

func (*GetClientReq) GetId added in v2.2.0

func (x *GetClientReq) GetId() string

func (*GetClientReq) ProtoMessage added in v2.2.0

func (*GetClientReq) ProtoMessage()

func (*GetClientReq) ProtoReflect added in v2.2.0

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

func (*GetClientReq) Reset added in v2.2.0

func (x *GetClientReq) Reset()

func (*GetClientReq) String added in v2.2.0

func (x *GetClientReq) String() string

type GetClientResp added in v2.2.0

type GetClientResp struct {
	Client *Client `protobuf:"bytes,1,opt,name=client,proto3" json:"client,omitempty"`
	// contains filtered or unexported fields
}

GetClientResp returns the client details.

func (*GetClientResp) Descriptor deprecated added in v2.2.0

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

Deprecated: Use GetClientResp.ProtoReflect.Descriptor instead.

func (*GetClientResp) GetClient added in v2.2.0

func (x *GetClientResp) GetClient() *Client

func (*GetClientResp) ProtoMessage added in v2.2.0

func (*GetClientResp) ProtoMessage()

func (*GetClientResp) ProtoReflect added in v2.2.0

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

func (*GetClientResp) Reset added in v2.2.0

func (x *GetClientResp) Reset()

func (*GetClientResp) String added in v2.2.0

func (x *GetClientResp) String() string

type ListConnectorReq added in v2.2.0

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

ListConnectorReq is a request to enumerate connectors.

func (*ListConnectorReq) Descriptor deprecated added in v2.2.0

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

Deprecated: Use ListConnectorReq.ProtoReflect.Descriptor instead.

func (*ListConnectorReq) ProtoMessage added in v2.2.0

func (*ListConnectorReq) ProtoMessage()

func (*ListConnectorReq) ProtoReflect added in v2.2.0

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

func (*ListConnectorReq) Reset added in v2.2.0

func (x *ListConnectorReq) Reset()

func (*ListConnectorReq) String added in v2.2.0

func (x *ListConnectorReq) String() string

type ListConnectorResp added in v2.2.0

type ListConnectorResp struct {
	Connectors []*Connector `protobuf:"bytes,1,rep,name=connectors,proto3" json:"connectors,omitempty"`
	// contains filtered or unexported fields
}

ListConnectorResp returns a list of connectors.

func (*ListConnectorResp) Descriptor deprecated added in v2.2.0

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

Deprecated: Use ListConnectorResp.ProtoReflect.Descriptor instead.

func (*ListConnectorResp) GetConnectors added in v2.2.0

func (x *ListConnectorResp) GetConnectors() []*Connector

func (*ListConnectorResp) ProtoMessage added in v2.2.0

func (*ListConnectorResp) ProtoMessage()

func (*ListConnectorResp) ProtoReflect added in v2.2.0

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

func (*ListConnectorResp) Reset added in v2.2.0

func (x *ListConnectorResp) Reset()

func (*ListConnectorResp) String added in v2.2.0

func (x *ListConnectorResp) String() string

type ListPasswordReq

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

ListPasswordReq is a request to enumerate passwords.

func (*ListPasswordReq) Descriptor deprecated

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

Deprecated: Use ListPasswordReq.ProtoReflect.Descriptor instead.

func (*ListPasswordReq) ProtoMessage

func (*ListPasswordReq) ProtoMessage()

func (*ListPasswordReq) ProtoReflect added in v2.1.0

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

func (*ListPasswordReq) Reset

func (x *ListPasswordReq) Reset()

func (*ListPasswordReq) String

func (x *ListPasswordReq) String() string

type ListPasswordResp

type ListPasswordResp struct {
	Passwords []*Password `protobuf:"bytes,1,rep,name=passwords,proto3" json:"passwords,omitempty"`
	// contains filtered or unexported fields
}

ListPasswordResp returns a list of passwords.

func (*ListPasswordResp) Descriptor deprecated

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

Deprecated: Use ListPasswordResp.ProtoReflect.Descriptor instead.

func (*ListPasswordResp) GetPasswords

func (x *ListPasswordResp) GetPasswords() []*Password

func (*ListPasswordResp) ProtoMessage

func (*ListPasswordResp) ProtoMessage()

func (*ListPasswordResp) ProtoReflect added in v2.1.0

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

func (*ListPasswordResp) Reset

func (x *ListPasswordResp) Reset()

func (*ListPasswordResp) String

func (x *ListPasswordResp) String() string

type ListRefreshReq

type ListRefreshReq struct {

	// The "sub" claim returned in the ID Token.
	UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

ListRefreshReq is a request to enumerate the refresh tokens of a user.

func (*ListRefreshReq) Descriptor deprecated

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

Deprecated: Use ListRefreshReq.ProtoReflect.Descriptor instead.

func (*ListRefreshReq) GetUserId

func (x *ListRefreshReq) GetUserId() string

func (*ListRefreshReq) ProtoMessage

func (*ListRefreshReq) ProtoMessage()

func (*ListRefreshReq) ProtoReflect added in v2.1.0

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

func (*ListRefreshReq) Reset

func (x *ListRefreshReq) Reset()

func (*ListRefreshReq) String

func (x *ListRefreshReq) String() string

type ListRefreshResp

type ListRefreshResp struct {
	RefreshTokens []*RefreshTokenRef `protobuf:"bytes,1,rep,name=refresh_tokens,json=refreshTokens,proto3" json:"refresh_tokens,omitempty"`
	// contains filtered or unexported fields
}

ListRefreshResp returns a list of refresh tokens for a user.

func (*ListRefreshResp) Descriptor deprecated

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

Deprecated: Use ListRefreshResp.ProtoReflect.Descriptor instead.

func (*ListRefreshResp) GetRefreshTokens

func (x *ListRefreshResp) GetRefreshTokens() []*RefreshTokenRef

func (*ListRefreshResp) ProtoMessage

func (*ListRefreshResp) ProtoMessage()

func (*ListRefreshResp) ProtoReflect added in v2.1.0

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

func (*ListRefreshResp) Reset

func (x *ListRefreshResp) Reset()

func (*ListRefreshResp) String

func (x *ListRefreshResp) String() string

type Password

type Password struct {
	Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
	// Currently we do not accept plain text passwords. Could be an option in the future.
	Hash     []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
	Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"`
	UserId   string `protobuf:"bytes,4,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

Password is an email for password mapping managed by the storage.

func (*Password) Descriptor deprecated

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

Deprecated: Use Password.ProtoReflect.Descriptor instead.

func (*Password) GetEmail

func (x *Password) GetEmail() string

func (*Password) GetHash

func (x *Password) GetHash() []byte

func (*Password) GetUserId

func (x *Password) GetUserId() string

func (*Password) GetUsername

func (x *Password) GetUsername() string

func (*Password) ProtoMessage

func (*Password) ProtoMessage()

func (*Password) ProtoReflect added in v2.1.0

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

func (*Password) Reset

func (x *Password) Reset()

func (*Password) String

func (x *Password) String() string

type RefreshTokenRef

type RefreshTokenRef struct {

	// ID of the refresh token.
	Id        string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	ClientId  string `protobuf:"bytes,2,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
	CreatedAt int64  `protobuf:"varint,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	LastUsed  int64  `protobuf:"varint,6,opt,name=last_used,json=lastUsed,proto3" json:"last_used,omitempty"`
	// contains filtered or unexported fields
}

RefreshTokenRef contains the metadata for a refresh token that is managed by the storage.

func (*RefreshTokenRef) Descriptor deprecated

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

Deprecated: Use RefreshTokenRef.ProtoReflect.Descriptor instead.

func (*RefreshTokenRef) GetClientId

func (x *RefreshTokenRef) GetClientId() string

func (*RefreshTokenRef) GetCreatedAt

func (x *RefreshTokenRef) GetCreatedAt() int64

func (*RefreshTokenRef) GetId

func (x *RefreshTokenRef) GetId() string

func (*RefreshTokenRef) GetLastUsed

func (x *RefreshTokenRef) GetLastUsed() int64

func (*RefreshTokenRef) ProtoMessage

func (*RefreshTokenRef) ProtoMessage()

func (*RefreshTokenRef) ProtoReflect added in v2.1.0

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

func (*RefreshTokenRef) Reset

func (x *RefreshTokenRef) Reset()

func (*RefreshTokenRef) String

func (x *RefreshTokenRef) String() string

type RevokeRefreshReq

type RevokeRefreshReq struct {

	// The "sub" claim returned in the ID Token.
	UserId   string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	ClientId string `protobuf:"bytes,2,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
	// contains filtered or unexported fields
}

RevokeRefreshReq is a request to revoke the refresh token of the user-client pair.

func (*RevokeRefreshReq) Descriptor deprecated

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

Deprecated: Use RevokeRefreshReq.ProtoReflect.Descriptor instead.

func (*RevokeRefreshReq) GetClientId

func (x *RevokeRefreshReq) GetClientId() string

func (*RevokeRefreshReq) GetUserId

func (x *RevokeRefreshReq) GetUserId() string

func (*RevokeRefreshReq) ProtoMessage

func (*RevokeRefreshReq) ProtoMessage()

func (*RevokeRefreshReq) ProtoReflect added in v2.1.0

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

func (*RevokeRefreshReq) Reset

func (x *RevokeRefreshReq) Reset()

func (*RevokeRefreshReq) String

func (x *RevokeRefreshReq) String() string

type RevokeRefreshResp

type RevokeRefreshResp struct {

	// Set to true is refresh token was not found and token could not be revoked.
	NotFound bool `protobuf:"varint,1,opt,name=not_found,json=notFound,proto3" json:"not_found,omitempty"`
	// contains filtered or unexported fields
}

RevokeRefreshResp determines if the refresh token is revoked successfully.

func (*RevokeRefreshResp) Descriptor deprecated

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

Deprecated: Use RevokeRefreshResp.ProtoReflect.Descriptor instead.

func (*RevokeRefreshResp) GetNotFound

func (x *RevokeRefreshResp) GetNotFound() bool

func (*RevokeRefreshResp) ProtoMessage

func (*RevokeRefreshResp) ProtoMessage()

func (*RevokeRefreshResp) ProtoReflect added in v2.1.0

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

func (*RevokeRefreshResp) Reset

func (x *RevokeRefreshResp) Reset()

func (*RevokeRefreshResp) String

func (x *RevokeRefreshResp) String() string

type UnimplementedDexServer

type UnimplementedDexServer struct {
}

UnimplementedDexServer must be embedded to have forward compatible implementations.

func (UnimplementedDexServer) CreateClient

func (UnimplementedDexServer) CreateConnector added in v2.2.0

func (UnimplementedDexServer) CreatePassword

func (UnimplementedDexServer) DeleteClient

func (UnimplementedDexServer) DeleteConnector added in v2.2.0

func (UnimplementedDexServer) DeletePassword

func (UnimplementedDexServer) GetClient added in v2.2.0

func (UnimplementedDexServer) GetDiscovery added in v2.2.0

func (UnimplementedDexServer) GetVersion

func (UnimplementedDexServer) ListConnectors added in v2.2.0

func (UnimplementedDexServer) ListPasswords

func (UnimplementedDexServer) ListRefresh

func (UnimplementedDexServer) RevokeRefresh

func (UnimplementedDexServer) UpdateClient

func (UnimplementedDexServer) UpdateConnector added in v2.2.0

func (UnimplementedDexServer) UpdatePassword

func (UnimplementedDexServer) VerifyPassword

type UnsafeDexServer added in v2.1.0

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

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

type UpdateClientReq

type UpdateClientReq struct {
	Id           string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	RedirectUris []string `protobuf:"bytes,2,rep,name=redirect_uris,json=redirectUris,proto3" json:"redirect_uris,omitempty"`
	TrustedPeers []string `protobuf:"bytes,3,rep,name=trusted_peers,json=trustedPeers,proto3" json:"trusted_peers,omitempty"`
	Name         string   `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	LogoUrl      string   `protobuf:"bytes,5,opt,name=logo_url,json=logoUrl,proto3" json:"logo_url,omitempty"`
	// contains filtered or unexported fields
}

UpdateClientReq is a request to update an existing client.

func (*UpdateClientReq) Descriptor deprecated

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

Deprecated: Use UpdateClientReq.ProtoReflect.Descriptor instead.

func (*UpdateClientReq) GetId

func (x *UpdateClientReq) GetId() string

func (*UpdateClientReq) GetLogoUrl

func (x *UpdateClientReq) GetLogoUrl() string

func (*UpdateClientReq) GetName

func (x *UpdateClientReq) GetName() string

func (*UpdateClientReq) GetRedirectUris

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

func (*UpdateClientReq) GetTrustedPeers

func (x *UpdateClientReq) GetTrustedPeers() []string

func (*UpdateClientReq) ProtoMessage

func (*UpdateClientReq) ProtoMessage()

func (*UpdateClientReq) ProtoReflect added in v2.1.0

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

func (*UpdateClientReq) Reset

func (x *UpdateClientReq) Reset()

func (*UpdateClientReq) String

func (x *UpdateClientReq) String() string

type UpdateClientResp

type UpdateClientResp struct {
	NotFound bool `protobuf:"varint,1,opt,name=not_found,json=notFound,proto3" json:"not_found,omitempty"`
	// contains filtered or unexported fields
}

UpdateClientResp returns the response from updating a client.

func (*UpdateClientResp) Descriptor deprecated

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

Deprecated: Use UpdateClientResp.ProtoReflect.Descriptor instead.

func (*UpdateClientResp) GetNotFound

func (x *UpdateClientResp) GetNotFound() bool

func (*UpdateClientResp) ProtoMessage

func (*UpdateClientResp) ProtoMessage()

func (*UpdateClientResp) ProtoReflect added in v2.1.0

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

func (*UpdateClientResp) Reset

func (x *UpdateClientResp) Reset()

func (*UpdateClientResp) String

func (x *UpdateClientResp) String() string

type UpdateConnectorReq added in v2.2.0

type UpdateConnectorReq struct {

	// The id used to lookup the connector. This field cannot be modified
	Id        string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	NewType   string `protobuf:"bytes,2,opt,name=new_type,json=newType,proto3" json:"new_type,omitempty"`
	NewName   string `protobuf:"bytes,3,opt,name=new_name,json=newName,proto3" json:"new_name,omitempty"`
	NewConfig []byte `protobuf:"bytes,4,opt,name=new_config,json=newConfig,proto3" json:"new_config,omitempty"`
	// contains filtered or unexported fields
}

UpdateConnectorReq is a request to modify an existing connector.

func (*UpdateConnectorReq) Descriptor deprecated added in v2.2.0

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

Deprecated: Use UpdateConnectorReq.ProtoReflect.Descriptor instead.

func (*UpdateConnectorReq) GetId added in v2.2.0

func (x *UpdateConnectorReq) GetId() string

func (*UpdateConnectorReq) GetNewConfig added in v2.2.0

func (x *UpdateConnectorReq) GetNewConfig() []byte

func (*UpdateConnectorReq) GetNewName added in v2.2.0

func (x *UpdateConnectorReq) GetNewName() string

func (*UpdateConnectorReq) GetNewType added in v2.2.0

func (x *UpdateConnectorReq) GetNewType() string

func (*UpdateConnectorReq) ProtoMessage added in v2.2.0

func (*UpdateConnectorReq) ProtoMessage()

func (*UpdateConnectorReq) ProtoReflect added in v2.2.0

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

func (*UpdateConnectorReq) Reset added in v2.2.0

func (x *UpdateConnectorReq) Reset()

func (*UpdateConnectorReq) String added in v2.2.0

func (x *UpdateConnectorReq) String() string

type UpdateConnectorResp added in v2.2.0

type UpdateConnectorResp struct {
	NotFound bool `protobuf:"varint,1,opt,name=not_found,json=notFound,proto3" json:"not_found,omitempty"`
	// contains filtered or unexported fields
}

UpdateConnectorResp returns the response from modifying an existing connector.

func (*UpdateConnectorResp) Descriptor deprecated added in v2.2.0

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

Deprecated: Use UpdateConnectorResp.ProtoReflect.Descriptor instead.

func (*UpdateConnectorResp) GetNotFound added in v2.2.0

func (x *UpdateConnectorResp) GetNotFound() bool

func (*UpdateConnectorResp) ProtoMessage added in v2.2.0

func (*UpdateConnectorResp) ProtoMessage()

func (*UpdateConnectorResp) ProtoReflect added in v2.2.0

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

func (*UpdateConnectorResp) Reset added in v2.2.0

func (x *UpdateConnectorResp) Reset()

func (*UpdateConnectorResp) String added in v2.2.0

func (x *UpdateConnectorResp) String() string

type UpdatePasswordReq

type UpdatePasswordReq struct {

	// The email used to lookup the password. This field cannot be modified
	Email       string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
	NewHash     []byte `protobuf:"bytes,2,opt,name=new_hash,json=newHash,proto3" json:"new_hash,omitempty"`
	NewUsername string `protobuf:"bytes,3,opt,name=new_username,json=newUsername,proto3" json:"new_username,omitempty"`
	// contains filtered or unexported fields
}

UpdatePasswordReq is a request to modify an existing password.

func (*UpdatePasswordReq) Descriptor deprecated

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

Deprecated: Use UpdatePasswordReq.ProtoReflect.Descriptor instead.

func (*UpdatePasswordReq) GetEmail

func (x *UpdatePasswordReq) GetEmail() string

func (*UpdatePasswordReq) GetNewHash

func (x *UpdatePasswordReq) GetNewHash() []byte

func (*UpdatePasswordReq) GetNewUsername

func (x *UpdatePasswordReq) GetNewUsername() string

func (*UpdatePasswordReq) ProtoMessage

func (*UpdatePasswordReq) ProtoMessage()

func (*UpdatePasswordReq) ProtoReflect added in v2.1.0

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

func (*UpdatePasswordReq) Reset

func (x *UpdatePasswordReq) Reset()

func (*UpdatePasswordReq) String

func (x *UpdatePasswordReq) String() string

type UpdatePasswordResp

type UpdatePasswordResp struct {
	NotFound bool `protobuf:"varint,1,opt,name=not_found,json=notFound,proto3" json:"not_found,omitempty"`
	// contains filtered or unexported fields
}

UpdatePasswordResp returns the response from modifying an existing password.

func (*UpdatePasswordResp) Descriptor deprecated

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

Deprecated: Use UpdatePasswordResp.ProtoReflect.Descriptor instead.

func (*UpdatePasswordResp) GetNotFound

func (x *UpdatePasswordResp) GetNotFound() bool

func (*UpdatePasswordResp) ProtoMessage

func (*UpdatePasswordResp) ProtoMessage()

func (*UpdatePasswordResp) ProtoReflect added in v2.1.0

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

func (*UpdatePasswordResp) Reset

func (x *UpdatePasswordResp) Reset()

func (*UpdatePasswordResp) String

func (x *UpdatePasswordResp) String() string

type VerifyPasswordReq

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

func (*VerifyPasswordReq) Descriptor deprecated

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

Deprecated: Use VerifyPasswordReq.ProtoReflect.Descriptor instead.

func (*VerifyPasswordReq) GetEmail

func (x *VerifyPasswordReq) GetEmail() string

func (*VerifyPasswordReq) GetPassword

func (x *VerifyPasswordReq) GetPassword() string

func (*VerifyPasswordReq) ProtoMessage

func (*VerifyPasswordReq) ProtoMessage()

func (*VerifyPasswordReq) ProtoReflect added in v2.1.0

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

func (*VerifyPasswordReq) Reset

func (x *VerifyPasswordReq) Reset()

func (*VerifyPasswordReq) String

func (x *VerifyPasswordReq) String() string

type VerifyPasswordResp

type VerifyPasswordResp struct {
	Verified bool `protobuf:"varint,1,opt,name=verified,proto3" json:"verified,omitempty"`
	NotFound bool `protobuf:"varint,2,opt,name=not_found,json=notFound,proto3" json:"not_found,omitempty"`
	// contains filtered or unexported fields
}

func (*VerifyPasswordResp) Descriptor deprecated

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

Deprecated: Use VerifyPasswordResp.ProtoReflect.Descriptor instead.

func (*VerifyPasswordResp) GetNotFound

func (x *VerifyPasswordResp) GetNotFound() bool

func (*VerifyPasswordResp) GetVerified

func (x *VerifyPasswordResp) GetVerified() bool

func (*VerifyPasswordResp) ProtoMessage

func (*VerifyPasswordResp) ProtoMessage()

func (*VerifyPasswordResp) ProtoReflect added in v2.1.0

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

func (*VerifyPasswordResp) Reset

func (x *VerifyPasswordResp) Reset()

func (*VerifyPasswordResp) String

func (x *VerifyPasswordResp) String() string

type VersionReq

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

VersionReq is a request to fetch version info.

func (*VersionReq) Descriptor deprecated

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

Deprecated: Use VersionReq.ProtoReflect.Descriptor instead.

func (*VersionReq) ProtoMessage

func (*VersionReq) ProtoMessage()

func (*VersionReq) ProtoReflect added in v2.1.0

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

func (*VersionReq) Reset

func (x *VersionReq) Reset()

func (*VersionReq) String

func (x *VersionReq) String() string

type VersionResp

type VersionResp struct {

	// Semantic version of the server.
	Server string `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"`
	// Numeric version of the API. It increases every time a new call is added to the API.
	// Clients should use this info to determine if the server supports specific features.
	Api int32 `protobuf:"varint,2,opt,name=api,proto3" json:"api,omitempty"`
	// contains filtered or unexported fields
}

VersionResp holds the version info of components.

func (*VersionResp) Descriptor deprecated

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

Deprecated: Use VersionResp.ProtoReflect.Descriptor instead.

func (*VersionResp) GetApi

func (x *VersionResp) GetApi() int32

func (*VersionResp) GetServer

func (x *VersionResp) GetServer() string

func (*VersionResp) ProtoMessage

func (*VersionResp) ProtoMessage()

func (*VersionResp) ProtoReflect added in v2.1.0

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

func (*VersionResp) Reset

func (x *VersionResp) Reset()

func (*VersionResp) String

func (x *VersionResp) String() string

Jump to

Keyboard shortcuts

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