auth

package
v0.3.42 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 30 Imported by: 0

Documentation

Overview

Package auth is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	AuthManager_GetAuthToken_FullMethodName = "/prodvana.auth.AuthManager/GetAuthToken"
	AuthManager_GetAuthUrl_FullMethodName   = "/prodvana.auth.AuthManager/GetAuthUrl"
	AuthManager_RefreshToken_FullMethodName = "/prodvana.auth.AuthManager/RefreshToken"
	AuthManager_CliAuth_FullMethodName      = "/prodvana.auth.AuthManager/CliAuth"
)
View Source
const (
	AuthSessionManager_Check_FullMethodName  = "/prodvana.auth.AuthSessionManager/Check"
	AuthSessionManager_Logout_FullMethodName = "/prodvana.auth.AuthSessionManager/Logout"
)
View Source
const (
	ApiTokenManager_CreateOrgApiToken_FullMethodName  = "/prodvana.auth.ApiTokenManager/CreateOrgApiToken"
	ApiTokenManager_CreateOrgApiToken2_FullMethodName = "/prodvana.auth.ApiTokenManager/CreateOrgApiToken2"
	ApiTokenManager_DeleteOrgApiToken_FullMethodName  = "/prodvana.auth.ApiTokenManager/DeleteOrgApiToken"
	ApiTokenManager_ListOrgApiTokens_FullMethodName   = "/prodvana.auth.ApiTokenManager/ListOrgApiTokens"
)

Variables

View Source
var ApiTokenManager_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "prodvana.auth.ApiTokenManager",
	HandlerType: (*ApiTokenManagerServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateOrgApiToken",
			Handler:    _ApiTokenManager_CreateOrgApiToken_Handler,
		},
		{
			MethodName: "CreateOrgApiToken2",
			Handler:    _ApiTokenManager_CreateOrgApiToken2_Handler,
		},
		{
			MethodName: "DeleteOrgApiToken",
			Handler:    _ApiTokenManager_DeleteOrgApiToken_Handler,
		},
		{
			MethodName: "ListOrgApiTokens",
			Handler:    _ApiTokenManager_ListOrgApiTokens_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "prodvana/auth/auth_manager.proto",
}

ApiTokenManager_ServiceDesc is the grpc.ServiceDesc for ApiTokenManager 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 AuthManager_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "prodvana.auth.AuthManager",
	HandlerType: (*AuthManagerServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetAuthToken",
			Handler:    _AuthManager_GetAuthToken_Handler,
		},
		{
			MethodName: "GetAuthUrl",
			Handler:    _AuthManager_GetAuthUrl_Handler,
		},
		{
			MethodName: "RefreshToken",
			Handler:    _AuthManager_RefreshToken_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "CliAuth",
			Handler:       _AuthManager_CliAuth_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "prodvana/auth/auth_manager.proto",
}

AuthManager_ServiceDesc is the grpc.ServiceDesc for AuthManager 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 AuthSessionManager_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "prodvana.auth.AuthSessionManager",
	HandlerType: (*AuthSessionManagerServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Check",
			Handler:    _AuthSessionManager_Check_Handler,
		},
		{
			MethodName: "Logout",
			Handler:    _AuthSessionManager_Logout_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "prodvana/auth/auth_manager.proto",
}

AuthSessionManager_ServiceDesc is the grpc.ServiceDesc for AuthSessionManager 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_prodvana_auth_auth_manager_proto protoreflect.FileDescriptor
View Source
var File_prodvana_auth_auth_proto protoreflect.FileDescriptor

Functions

func RegisterApiTokenManagerHandler

func RegisterApiTokenManagerHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterApiTokenManagerHandler registers the http handlers for service ApiTokenManager to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterApiTokenManagerHandlerClient

func RegisterApiTokenManagerHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ApiTokenManagerClient) error

RegisterApiTokenManagerHandlerClient registers the http handlers for service ApiTokenManager to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ApiTokenManagerClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ApiTokenManagerClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ApiTokenManagerClient" to call the correct interceptors.

func RegisterApiTokenManagerHandlerFromEndpoint

func RegisterApiTokenManagerHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterApiTokenManagerHandlerFromEndpoint is same as RegisterApiTokenManagerHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterApiTokenManagerHandlerServer

func RegisterApiTokenManagerHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ApiTokenManagerServer) error

RegisterApiTokenManagerHandlerServer registers the http handlers for service ApiTokenManager to "mux". UnaryRPC :call ApiTokenManagerServer 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 RegisterApiTokenManagerHandlerFromEndpoint instead.

func RegisterApiTokenManagerServer

func RegisterApiTokenManagerServer(s grpc.ServiceRegistrar, srv ApiTokenManagerServer)

func RegisterAuthManagerHandler

func RegisterAuthManagerHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterAuthManagerHandler registers the http handlers for service AuthManager to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterAuthManagerHandlerClient

func RegisterAuthManagerHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AuthManagerClient) error

RegisterAuthManagerHandlerClient registers the http handlers for service AuthManager to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AuthManagerClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AuthManagerClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "AuthManagerClient" to call the correct interceptors.

func RegisterAuthManagerHandlerFromEndpoint

func RegisterAuthManagerHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterAuthManagerHandlerFromEndpoint is same as RegisterAuthManagerHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterAuthManagerHandlerServer

func RegisterAuthManagerHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AuthManagerServer) error

RegisterAuthManagerHandlerServer registers the http handlers for service AuthManager to "mux". UnaryRPC :call AuthManagerServer 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 RegisterAuthManagerHandlerFromEndpoint instead.

func RegisterAuthManagerServer

func RegisterAuthManagerServer(s grpc.ServiceRegistrar, srv AuthManagerServer)

func RegisterAuthSessionManagerHandler

func RegisterAuthSessionManagerHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterAuthSessionManagerHandler registers the http handlers for service AuthSessionManager to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterAuthSessionManagerHandlerClient

func RegisterAuthSessionManagerHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AuthSessionManagerClient) error

RegisterAuthSessionManagerHandlerClient registers the http handlers for service AuthSessionManager to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AuthSessionManagerClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AuthSessionManagerClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "AuthSessionManagerClient" to call the correct interceptors.

func RegisterAuthSessionManagerHandlerFromEndpoint

func RegisterAuthSessionManagerHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterAuthSessionManagerHandlerFromEndpoint is same as RegisterAuthSessionManagerHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterAuthSessionManagerHandlerServer

func RegisterAuthSessionManagerHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AuthSessionManagerServer) error

RegisterAuthSessionManagerHandlerServer registers the http handlers for service AuthSessionManager to "mux". UnaryRPC :call AuthSessionManagerServer 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 RegisterAuthSessionManagerHandlerFromEndpoint instead.

func RegisterAuthSessionManagerServer

func RegisterAuthSessionManagerServer(s grpc.ServiceRegistrar, srv AuthSessionManagerServer)

Types

type ApiTokenInfo

type ApiTokenInfo struct {
	Name              string                 `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Description       string                 `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	ExpiresTimestamp  *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=expires_timestamp,json=expiresTimestamp,proto3" json:"expires_timestamp,omitempty"`
	CreationTimestamp *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=creation_timestamp,json=creationTimestamp,proto3" json:"creation_timestamp,omitempty"`
	// contains filtered or unexported fields
}

func (*ApiTokenInfo) Descriptor deprecated

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

Deprecated: Use ApiTokenInfo.ProtoReflect.Descriptor instead.

func (*ApiTokenInfo) GetCreationTimestamp

func (x *ApiTokenInfo) GetCreationTimestamp() *timestamppb.Timestamp

func (*ApiTokenInfo) GetDescription

func (x *ApiTokenInfo) GetDescription() string

func (*ApiTokenInfo) GetExpiresTimestamp

func (x *ApiTokenInfo) GetExpiresTimestamp() *timestamppb.Timestamp

func (*ApiTokenInfo) GetName

func (x *ApiTokenInfo) GetName() string

func (*ApiTokenInfo) ProtoMessage

func (*ApiTokenInfo) ProtoMessage()

func (*ApiTokenInfo) ProtoReflect

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

func (*ApiTokenInfo) Reset

func (x *ApiTokenInfo) Reset()

func (*ApiTokenInfo) String

func (x *ApiTokenInfo) String() string

func (*ApiTokenInfo) Validate

func (m *ApiTokenInfo) Validate() error

Validate checks the field values on ApiTokenInfo 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 (*ApiTokenInfo) ValidateAll

func (m *ApiTokenInfo) ValidateAll() error

ValidateAll checks the field values on ApiTokenInfo 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 ApiTokenInfoMultiError, or nil if none found.

type ApiTokenInfoMultiError

type ApiTokenInfoMultiError []error

ApiTokenInfoMultiError is an error wrapping multiple validation errors returned by ApiTokenInfo.ValidateAll() if the designated constraints aren't met.

func (ApiTokenInfoMultiError) AllErrors

func (m ApiTokenInfoMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ApiTokenInfoMultiError) Error

func (m ApiTokenInfoMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ApiTokenInfoValidationError

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

ApiTokenInfoValidationError is the validation error returned by ApiTokenInfo.Validate if the designated constraints aren't met.

func (ApiTokenInfoValidationError) Cause

Cause function returns cause value.

func (ApiTokenInfoValidationError) Error

Error satisfies the builtin error interface

func (ApiTokenInfoValidationError) ErrorName

func (e ApiTokenInfoValidationError) ErrorName() string

ErrorName returns error name.

func (ApiTokenInfoValidationError) Field

Field function returns field value.

func (ApiTokenInfoValidationError) Key

Key function returns key value.

func (ApiTokenInfoValidationError) Reason

Reason function returns reason value.

type ApiTokenManagerClient

type ApiTokenManagerClient interface {
	// Create an api token tied to the organization. This api token is not tied to the user in anyway,
	// e.g. if the user is deleted, the token will continue to have access to the organization.
	// This token currently does not expire, so be very careful with storing them.
	CreateOrgApiToken(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*CreateOrgApiTokenResp, error)
	CreateOrgApiToken2(ctx context.Context, in *CreateOrgApiTokenReq, opts ...grpc.CallOption) (*CreateOrgApiTokenResp, error)
	DeleteOrgApiToken(ctx context.Context, in *DeleteOrgApiTokenReq, opts ...grpc.CallOption) (*DeleteOrgApiTokenResp, error)
	ListOrgApiTokens(ctx context.Context, in *ListOrgApiTokensReq, opts ...grpc.CallOption) (*ListOrgApiTokensResp, error)
}

ApiTokenManagerClient is the client API for ApiTokenManager 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 ApiTokenManagerServer

type ApiTokenManagerServer interface {
	// Create an api token tied to the organization. This api token is not tied to the user in anyway,
	// e.g. if the user is deleted, the token will continue to have access to the organization.
	// This token currently does not expire, so be very careful with storing them.
	CreateOrgApiToken(context.Context, *Empty) (*CreateOrgApiTokenResp, error)
	CreateOrgApiToken2(context.Context, *CreateOrgApiTokenReq) (*CreateOrgApiTokenResp, error)
	DeleteOrgApiToken(context.Context, *DeleteOrgApiTokenReq) (*DeleteOrgApiTokenResp, error)
	ListOrgApiTokens(context.Context, *ListOrgApiTokensReq) (*ListOrgApiTokensResp, error)
	// contains filtered or unexported methods
}

ApiTokenManagerServer is the server API for ApiTokenManager service. All implementations must embed UnimplementedApiTokenManagerServer for forward compatibility

type AuthContext

type AuthContext struct {
	AuthToken *AuthToken `protobuf:"bytes,1,opt,name=auth_token,json=authToken,proto3" json:"auth_token,omitempty"`
	ApiToken  string     `protobuf:"bytes,2,opt,name=api_token,json=apiToken,proto3" json:"api_token,omitempty"`
	Addr      string     `protobuf:"bytes,3,opt,name=addr,proto3" json:"addr,omitempty"`
	// contains filtered or unexported fields
}

func (*AuthContext) Descriptor deprecated

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

Deprecated: Use AuthContext.ProtoReflect.Descriptor instead.

func (*AuthContext) GetAddr

func (x *AuthContext) GetAddr() string

func (*AuthContext) GetApiToken

func (x *AuthContext) GetApiToken() string

func (*AuthContext) GetAuthToken

func (x *AuthContext) GetAuthToken() *AuthToken

func (*AuthContext) ProtoMessage

func (*AuthContext) ProtoMessage()

func (*AuthContext) ProtoReflect

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

func (*AuthContext) Reset

func (x *AuthContext) Reset()

func (*AuthContext) String

func (x *AuthContext) String() string

func (*AuthContext) Validate

func (m *AuthContext) Validate() error

Validate checks the field values on AuthContext 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 (*AuthContext) ValidateAll

func (m *AuthContext) ValidateAll() error

ValidateAll checks the field values on AuthContext 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 AuthContextMultiError, or nil if none found.

type AuthContextMultiError

type AuthContextMultiError []error

AuthContextMultiError is an error wrapping multiple validation errors returned by AuthContext.ValidateAll() if the designated constraints aren't met.

func (AuthContextMultiError) AllErrors

func (m AuthContextMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AuthContextMultiError) Error

func (m AuthContextMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type AuthContextValidationError

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

AuthContextValidationError is the validation error returned by AuthContext.Validate if the designated constraints aren't met.

func (AuthContextValidationError) Cause

Cause function returns cause value.

func (AuthContextValidationError) Error

Error satisfies the builtin error interface

func (AuthContextValidationError) ErrorName

func (e AuthContextValidationError) ErrorName() string

ErrorName returns error name.

func (AuthContextValidationError) Field

Field function returns field value.

func (AuthContextValidationError) Key

Key function returns key value.

func (AuthContextValidationError) Reason

Reason function returns reason value.

type AuthManagerClient

type AuthManagerClient interface {
	// web auth flow
	// TODO(naphat) we should make this only available to our UI app
	GetAuthToken(ctx context.Context, in *GetTokenRequest, opts ...grpc.CallOption) (*GetAuthTokenResp, error)
	GetAuthUrl(ctx context.Context, in *GetAuthUrlRequest, opts ...grpc.CallOption) (*GetAuthUrlResponse, error)
	RefreshToken(ctx context.Context, in *RefreshTokenReq, opts ...grpc.CallOption) (*GetAuthTokenResp, error)
	// cli auth flow
	// This returns a streaming response with exactly two items:
	// 1. Immediately, a UserPrmopt will be returned which should then be conveyed to the user
	// 2. Once user authenticates via a browser, a Token will be returned
	CliAuth(ctx context.Context, in *CliAuthReq, opts ...grpc.CallOption) (AuthManager_CliAuthClient, error)
}

AuthManagerClient is the client API for AuthManager 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 AuthManagerServer

type AuthManagerServer interface {
	// web auth flow
	// TODO(naphat) we should make this only available to our UI app
	GetAuthToken(context.Context, *GetTokenRequest) (*GetAuthTokenResp, error)
	GetAuthUrl(context.Context, *GetAuthUrlRequest) (*GetAuthUrlResponse, error)
	RefreshToken(context.Context, *RefreshTokenReq) (*GetAuthTokenResp, error)
	// cli auth flow
	// This returns a streaming response with exactly two items:
	// 1. Immediately, a UserPrmopt will be returned which should then be conveyed to the user
	// 2. Once user authenticates via a browser, a Token will be returned
	CliAuth(*CliAuthReq, AuthManager_CliAuthServer) error
	// contains filtered or unexported methods
}

AuthManagerServer is the server API for AuthManager service. All implementations must embed UnimplementedAuthManagerServer for forward compatibility

type AuthManager_CliAuthClient

type AuthManager_CliAuthClient interface {
	Recv() (*CliAuthResp, error)
	grpc.ClientStream
}

type AuthManager_CliAuthServer

type AuthManager_CliAuthServer interface {
	Send(*CliAuthResp) error
	grpc.ServerStream
}

type AuthSessionManagerClient

type AuthSessionManagerClient interface {
	// check if user is authenticated and token is still valid
	Check(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error)
	Logout(ctx context.Context, in *LogoutReq, opts ...grpc.CallOption) (*LogoutResp, error)
}

AuthSessionManagerClient is the client API for AuthSessionManager 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 AuthSessionManagerServer

type AuthSessionManagerServer interface {
	// check if user is authenticated and token is still valid
	Check(context.Context, *Empty) (*Empty, error)
	Logout(context.Context, *LogoutReq) (*LogoutResp, error)
	// contains filtered or unexported methods
}

AuthSessionManagerServer is the server API for AuthSessionManager service. All implementations must embed UnimplementedAuthSessionManagerServer for forward compatibility

type AuthToken

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

func (*AuthToken) Descriptor deprecated

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

Deprecated: Use AuthToken.ProtoReflect.Descriptor instead.

func (*AuthToken) GetToken

func (x *AuthToken) GetToken() string

func (*AuthToken) ProtoMessage

func (*AuthToken) ProtoMessage()

func (*AuthToken) ProtoReflect

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

func (*AuthToken) Reset

func (x *AuthToken) Reset()

func (*AuthToken) String

func (x *AuthToken) String() string

func (*AuthToken) Validate

func (m *AuthToken) Validate() error

Validate checks the field values on AuthToken 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 (*AuthToken) ValidateAll

func (m *AuthToken) ValidateAll() error

ValidateAll checks the field values on AuthToken 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 AuthTokenMultiError, or nil if none found.

type AuthTokenMultiError

type AuthTokenMultiError []error

AuthTokenMultiError is an error wrapping multiple validation errors returned by AuthToken.ValidateAll() if the designated constraints aren't met.

func (AuthTokenMultiError) AllErrors

func (m AuthTokenMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AuthTokenMultiError) Error

func (m AuthTokenMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type AuthTokenValidationError

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

AuthTokenValidationError is the validation error returned by AuthToken.Validate if the designated constraints aren't met.

func (AuthTokenValidationError) Cause

func (e AuthTokenValidationError) Cause() error

Cause function returns cause value.

func (AuthTokenValidationError) Error

func (e AuthTokenValidationError) Error() string

Error satisfies the builtin error interface

func (AuthTokenValidationError) ErrorName

func (e AuthTokenValidationError) ErrorName() string

ErrorName returns error name.

func (AuthTokenValidationError) Field

func (e AuthTokenValidationError) Field() string

Field function returns field value.

func (AuthTokenValidationError) Key

Key function returns key value.

func (AuthTokenValidationError) Reason

func (e AuthTokenValidationError) Reason() string

Reason function returns reason value.

type CliAuthReq

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

func (*CliAuthReq) Descriptor deprecated

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

Deprecated: Use CliAuthReq.ProtoReflect.Descriptor instead.

func (*CliAuthReq) ProtoMessage

func (*CliAuthReq) ProtoMessage()

func (*CliAuthReq) ProtoReflect

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

func (*CliAuthReq) Reset

func (x *CliAuthReq) Reset()

func (*CliAuthReq) String

func (x *CliAuthReq) String() string

func (*CliAuthReq) Validate

func (m *CliAuthReq) Validate() error

Validate checks the field values on CliAuthReq 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 (*CliAuthReq) ValidateAll

func (m *CliAuthReq) ValidateAll() error

ValidateAll checks the field values on CliAuthReq 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 CliAuthReqMultiError, or nil if none found.

type CliAuthReqMultiError

type CliAuthReqMultiError []error

CliAuthReqMultiError is an error wrapping multiple validation errors returned by CliAuthReq.ValidateAll() if the designated constraints aren't met.

func (CliAuthReqMultiError) AllErrors

func (m CliAuthReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CliAuthReqMultiError) Error

func (m CliAuthReqMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type CliAuthReqValidationError

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

CliAuthReqValidationError is the validation error returned by CliAuthReq.Validate if the designated constraints aren't met.

func (CliAuthReqValidationError) Cause

func (e CliAuthReqValidationError) Cause() error

Cause function returns cause value.

func (CliAuthReqValidationError) Error

Error satisfies the builtin error interface

func (CliAuthReqValidationError) ErrorName

func (e CliAuthReqValidationError) ErrorName() string

ErrorName returns error name.

func (CliAuthReqValidationError) Field

Field function returns field value.

func (CliAuthReqValidationError) Key

Key function returns key value.

func (CliAuthReqValidationError) Reason

func (e CliAuthReqValidationError) Reason() string

Reason function returns reason value.

type CliAuthResp

type CliAuthResp struct {

	// Types that are assignable to RespOneof:
	//
	//	*CliAuthResp_UserPrompt_
	//	*CliAuthResp_Token
	RespOneof isCliAuthResp_RespOneof `protobuf_oneof:"resp_oneof"`
	// contains filtered or unexported fields
}

func (*CliAuthResp) Descriptor deprecated

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

Deprecated: Use CliAuthResp.ProtoReflect.Descriptor instead.

func (*CliAuthResp) GetRespOneof

func (m *CliAuthResp) GetRespOneof() isCliAuthResp_RespOneof

func (*CliAuthResp) GetToken

func (x *CliAuthResp) GetToken() *AuthToken

func (*CliAuthResp) GetUserPrompt

func (x *CliAuthResp) GetUserPrompt() *CliAuthResp_UserPrompt

func (*CliAuthResp) ProtoMessage

func (*CliAuthResp) ProtoMessage()

func (*CliAuthResp) ProtoReflect

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

func (*CliAuthResp) Reset

func (x *CliAuthResp) Reset()

func (*CliAuthResp) String

func (x *CliAuthResp) String() string

func (*CliAuthResp) Validate

func (m *CliAuthResp) Validate() error

Validate checks the field values on CliAuthResp 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 (*CliAuthResp) ValidateAll

func (m *CliAuthResp) ValidateAll() error

ValidateAll checks the field values on CliAuthResp 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 CliAuthRespMultiError, or nil if none found.

type CliAuthRespMultiError

type CliAuthRespMultiError []error

CliAuthRespMultiError is an error wrapping multiple validation errors returned by CliAuthResp.ValidateAll() if the designated constraints aren't met.

func (CliAuthRespMultiError) AllErrors

func (m CliAuthRespMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CliAuthRespMultiError) Error

func (m CliAuthRespMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type CliAuthRespValidationError

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

CliAuthRespValidationError is the validation error returned by CliAuthResp.Validate if the designated constraints aren't met.

func (CliAuthRespValidationError) Cause

Cause function returns cause value.

func (CliAuthRespValidationError) Error

Error satisfies the builtin error interface

func (CliAuthRespValidationError) ErrorName

func (e CliAuthRespValidationError) ErrorName() string

ErrorName returns error name.

func (CliAuthRespValidationError) Field

Field function returns field value.

func (CliAuthRespValidationError) Key

Key function returns key value.

func (CliAuthRespValidationError) Reason

Reason function returns reason value.

type CliAuthResp_Token

type CliAuthResp_Token struct {
	Token *AuthToken `protobuf:"bytes,2,opt,name=token,proto3,oneof"`
}

type CliAuthResp_UserPrompt

type CliAuthResp_UserPrompt struct {
	UserCode                string `protobuf:"bytes,1,opt,name=user_code,json=userCode,proto3" json:"user_code,omitempty"`
	VerificationUri         string `protobuf:"bytes,2,opt,name=verification_uri,json=verificationUri,proto3" json:"verification_uri,omitempty"`
	VerificationUriComplete string `` /* 132-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*CliAuthResp_UserPrompt) Descriptor deprecated

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

Deprecated: Use CliAuthResp_UserPrompt.ProtoReflect.Descriptor instead.

func (*CliAuthResp_UserPrompt) GetUserCode

func (x *CliAuthResp_UserPrompt) GetUserCode() string

func (*CliAuthResp_UserPrompt) GetVerificationUri

func (x *CliAuthResp_UserPrompt) GetVerificationUri() string

func (*CliAuthResp_UserPrompt) GetVerificationUriComplete

func (x *CliAuthResp_UserPrompt) GetVerificationUriComplete() string

func (*CliAuthResp_UserPrompt) ProtoMessage

func (*CliAuthResp_UserPrompt) ProtoMessage()

func (*CliAuthResp_UserPrompt) ProtoReflect

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

func (*CliAuthResp_UserPrompt) Reset

func (x *CliAuthResp_UserPrompt) Reset()

func (*CliAuthResp_UserPrompt) String

func (x *CliAuthResp_UserPrompt) String() string

func (*CliAuthResp_UserPrompt) Validate

func (m *CliAuthResp_UserPrompt) Validate() error

Validate checks the field values on CliAuthResp_UserPrompt 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 (*CliAuthResp_UserPrompt) ValidateAll

func (m *CliAuthResp_UserPrompt) ValidateAll() error

ValidateAll checks the field values on CliAuthResp_UserPrompt 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 CliAuthResp_UserPromptMultiError, or nil if none found.

type CliAuthResp_UserPromptMultiError

type CliAuthResp_UserPromptMultiError []error

CliAuthResp_UserPromptMultiError is an error wrapping multiple validation errors returned by CliAuthResp_UserPrompt.ValidateAll() if the designated constraints aren't met.

func (CliAuthResp_UserPromptMultiError) AllErrors

func (m CliAuthResp_UserPromptMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CliAuthResp_UserPromptMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CliAuthResp_UserPromptValidationError

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

CliAuthResp_UserPromptValidationError is the validation error returned by CliAuthResp_UserPrompt.Validate if the designated constraints aren't met.

func (CliAuthResp_UserPromptValidationError) Cause

Cause function returns cause value.

func (CliAuthResp_UserPromptValidationError) Error

Error satisfies the builtin error interface

func (CliAuthResp_UserPromptValidationError) ErrorName

ErrorName returns error name.

func (CliAuthResp_UserPromptValidationError) Field

Field function returns field value.

func (CliAuthResp_UserPromptValidationError) Key

Key function returns key value.

func (CliAuthResp_UserPromptValidationError) Reason

Reason function returns reason value.

type CliAuthResp_UserPrompt_

type CliAuthResp_UserPrompt_ struct {
	UserPrompt *CliAuthResp_UserPrompt `protobuf:"bytes,1,opt,name=user_prompt,json=userPrompt,proto3,oneof"`
}

type CreateOrgApiTokenReq

type CreateOrgApiTokenReq struct {
	Name             string                 `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Description      string                 `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	ExpiresTimestamp *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=expires_timestamp,json=expiresTimestamp,proto3" json:"expires_timestamp,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateOrgApiTokenReq) Descriptor deprecated

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

Deprecated: Use CreateOrgApiTokenReq.ProtoReflect.Descriptor instead.

func (*CreateOrgApiTokenReq) GetDescription

func (x *CreateOrgApiTokenReq) GetDescription() string

func (*CreateOrgApiTokenReq) GetExpiresTimestamp

func (x *CreateOrgApiTokenReq) GetExpiresTimestamp() *timestamppb.Timestamp

func (*CreateOrgApiTokenReq) GetName

func (x *CreateOrgApiTokenReq) GetName() string

func (*CreateOrgApiTokenReq) ProtoMessage

func (*CreateOrgApiTokenReq) ProtoMessage()

func (*CreateOrgApiTokenReq) ProtoReflect

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

func (*CreateOrgApiTokenReq) Reset

func (x *CreateOrgApiTokenReq) Reset()

func (*CreateOrgApiTokenReq) String

func (x *CreateOrgApiTokenReq) String() string

func (*CreateOrgApiTokenReq) Validate

func (m *CreateOrgApiTokenReq) Validate() error

Validate checks the field values on CreateOrgApiTokenReq 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 (*CreateOrgApiTokenReq) ValidateAll

func (m *CreateOrgApiTokenReq) ValidateAll() error

ValidateAll checks the field values on CreateOrgApiTokenReq 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 CreateOrgApiTokenReqMultiError, or nil if none found.

type CreateOrgApiTokenReqMultiError

type CreateOrgApiTokenReqMultiError []error

CreateOrgApiTokenReqMultiError is an error wrapping multiple validation errors returned by CreateOrgApiTokenReq.ValidateAll() if the designated constraints aren't met.

func (CreateOrgApiTokenReqMultiError) AllErrors

func (m CreateOrgApiTokenReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateOrgApiTokenReqMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateOrgApiTokenReqValidationError

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

CreateOrgApiTokenReqValidationError is the validation error returned by CreateOrgApiTokenReq.Validate if the designated constraints aren't met.

func (CreateOrgApiTokenReqValidationError) Cause

Cause function returns cause value.

func (CreateOrgApiTokenReqValidationError) Error

Error satisfies the builtin error interface

func (CreateOrgApiTokenReqValidationError) ErrorName

ErrorName returns error name.

func (CreateOrgApiTokenReqValidationError) Field

Field function returns field value.

func (CreateOrgApiTokenReqValidationError) Key

Key function returns key value.

func (CreateOrgApiTokenReqValidationError) Reason

Reason function returns reason value.

type CreateOrgApiTokenResp

type CreateOrgApiTokenResp struct {
	ApiToken string        `protobuf:"bytes,1,opt,name=api_token,json=apiToken,proto3" json:"api_token,omitempty"`
	Info     *ApiTokenInfo `protobuf:"bytes,2,opt,name=info,proto3" json:"info,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateOrgApiTokenResp) Descriptor deprecated

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

Deprecated: Use CreateOrgApiTokenResp.ProtoReflect.Descriptor instead.

func (*CreateOrgApiTokenResp) GetApiToken

func (x *CreateOrgApiTokenResp) GetApiToken() string

func (*CreateOrgApiTokenResp) GetInfo

func (x *CreateOrgApiTokenResp) GetInfo() *ApiTokenInfo

func (*CreateOrgApiTokenResp) ProtoMessage

func (*CreateOrgApiTokenResp) ProtoMessage()

func (*CreateOrgApiTokenResp) ProtoReflect

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

func (*CreateOrgApiTokenResp) Reset

func (x *CreateOrgApiTokenResp) Reset()

func (*CreateOrgApiTokenResp) String

func (x *CreateOrgApiTokenResp) String() string

func (*CreateOrgApiTokenResp) Validate

func (m *CreateOrgApiTokenResp) Validate() error

Validate checks the field values on CreateOrgApiTokenResp 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 (*CreateOrgApiTokenResp) ValidateAll

func (m *CreateOrgApiTokenResp) ValidateAll() error

ValidateAll checks the field values on CreateOrgApiTokenResp 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 CreateOrgApiTokenRespMultiError, or nil if none found.

type CreateOrgApiTokenRespMultiError

type CreateOrgApiTokenRespMultiError []error

CreateOrgApiTokenRespMultiError is an error wrapping multiple validation errors returned by CreateOrgApiTokenResp.ValidateAll() if the designated constraints aren't met.

func (CreateOrgApiTokenRespMultiError) AllErrors

func (m CreateOrgApiTokenRespMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateOrgApiTokenRespMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateOrgApiTokenRespValidationError

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

CreateOrgApiTokenRespValidationError is the validation error returned by CreateOrgApiTokenResp.Validate if the designated constraints aren't met.

func (CreateOrgApiTokenRespValidationError) Cause

Cause function returns cause value.

func (CreateOrgApiTokenRespValidationError) Error

Error satisfies the builtin error interface

func (CreateOrgApiTokenRespValidationError) ErrorName

ErrorName returns error name.

func (CreateOrgApiTokenRespValidationError) Field

Field function returns field value.

func (CreateOrgApiTokenRespValidationError) Key

Key function returns key value.

func (CreateOrgApiTokenRespValidationError) Reason

Reason function returns reason value.

type DeleteOrgApiTokenReq

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

func (*DeleteOrgApiTokenReq) Descriptor deprecated

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

Deprecated: Use DeleteOrgApiTokenReq.ProtoReflect.Descriptor instead.

func (*DeleteOrgApiTokenReq) GetName

func (x *DeleteOrgApiTokenReq) GetName() string

func (*DeleteOrgApiTokenReq) ProtoMessage

func (*DeleteOrgApiTokenReq) ProtoMessage()

func (*DeleteOrgApiTokenReq) ProtoReflect

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

func (*DeleteOrgApiTokenReq) Reset

func (x *DeleteOrgApiTokenReq) Reset()

func (*DeleteOrgApiTokenReq) String

func (x *DeleteOrgApiTokenReq) String() string

func (*DeleteOrgApiTokenReq) Validate

func (m *DeleteOrgApiTokenReq) Validate() error

Validate checks the field values on DeleteOrgApiTokenReq 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 (*DeleteOrgApiTokenReq) ValidateAll

func (m *DeleteOrgApiTokenReq) ValidateAll() error

ValidateAll checks the field values on DeleteOrgApiTokenReq 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 DeleteOrgApiTokenReqMultiError, or nil if none found.

type DeleteOrgApiTokenReqMultiError

type DeleteOrgApiTokenReqMultiError []error

DeleteOrgApiTokenReqMultiError is an error wrapping multiple validation errors returned by DeleteOrgApiTokenReq.ValidateAll() if the designated constraints aren't met.

func (DeleteOrgApiTokenReqMultiError) AllErrors

func (m DeleteOrgApiTokenReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteOrgApiTokenReqMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type DeleteOrgApiTokenReqValidationError

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

DeleteOrgApiTokenReqValidationError is the validation error returned by DeleteOrgApiTokenReq.Validate if the designated constraints aren't met.

func (DeleteOrgApiTokenReqValidationError) Cause

Cause function returns cause value.

func (DeleteOrgApiTokenReqValidationError) Error

Error satisfies the builtin error interface

func (DeleteOrgApiTokenReqValidationError) ErrorName

ErrorName returns error name.

func (DeleteOrgApiTokenReqValidationError) Field

Field function returns field value.

func (DeleteOrgApiTokenReqValidationError) Key

Key function returns key value.

func (DeleteOrgApiTokenReqValidationError) Reason

Reason function returns reason value.

type DeleteOrgApiTokenResp

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

func (*DeleteOrgApiTokenResp) Descriptor deprecated

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

Deprecated: Use DeleteOrgApiTokenResp.ProtoReflect.Descriptor instead.

func (*DeleteOrgApiTokenResp) ProtoMessage

func (*DeleteOrgApiTokenResp) ProtoMessage()

func (*DeleteOrgApiTokenResp) ProtoReflect

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

func (*DeleteOrgApiTokenResp) Reset

func (x *DeleteOrgApiTokenResp) Reset()

func (*DeleteOrgApiTokenResp) String

func (x *DeleteOrgApiTokenResp) String() string

func (*DeleteOrgApiTokenResp) Validate

func (m *DeleteOrgApiTokenResp) Validate() error

Validate checks the field values on DeleteOrgApiTokenResp 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 (*DeleteOrgApiTokenResp) ValidateAll

func (m *DeleteOrgApiTokenResp) ValidateAll() error

ValidateAll checks the field values on DeleteOrgApiTokenResp 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 DeleteOrgApiTokenRespMultiError, or nil if none found.

type DeleteOrgApiTokenRespMultiError

type DeleteOrgApiTokenRespMultiError []error

DeleteOrgApiTokenRespMultiError is an error wrapping multiple validation errors returned by DeleteOrgApiTokenResp.ValidateAll() if the designated constraints aren't met.

func (DeleteOrgApiTokenRespMultiError) AllErrors

func (m DeleteOrgApiTokenRespMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteOrgApiTokenRespMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type DeleteOrgApiTokenRespValidationError

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

DeleteOrgApiTokenRespValidationError is the validation error returned by DeleteOrgApiTokenResp.Validate if the designated constraints aren't met.

func (DeleteOrgApiTokenRespValidationError) Cause

Cause function returns cause value.

func (DeleteOrgApiTokenRespValidationError) Error

Error satisfies the builtin error interface

func (DeleteOrgApiTokenRespValidationError) ErrorName

ErrorName returns error name.

func (DeleteOrgApiTokenRespValidationError) Field

Field function returns field value.

func (DeleteOrgApiTokenRespValidationError) Key

Key function returns key value.

func (DeleteOrgApiTokenRespValidationError) Reason

Reason function returns reason value.

type Empty

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

func (*Empty) Descriptor deprecated

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

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

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

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

func (*Empty) Validate

func (m *Empty) Validate() error

Validate checks the field values on Empty 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 (*Empty) ValidateAll

func (m *Empty) ValidateAll() error

ValidateAll checks the field values on Empty 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 EmptyMultiError, or nil if none found.

type EmptyMultiError

type EmptyMultiError []error

EmptyMultiError is an error wrapping multiple validation errors returned by Empty.ValidateAll() if the designated constraints aren't met.

func (EmptyMultiError) AllErrors

func (m EmptyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (EmptyMultiError) Error

func (m EmptyMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type EmptyValidationError

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

EmptyValidationError is the validation error returned by Empty.Validate if the designated constraints aren't met.

func (EmptyValidationError) Cause

func (e EmptyValidationError) Cause() error

Cause function returns cause value.

func (EmptyValidationError) Error

func (e EmptyValidationError) Error() string

Error satisfies the builtin error interface

func (EmptyValidationError) ErrorName

func (e EmptyValidationError) ErrorName() string

ErrorName returns error name.

func (EmptyValidationError) Field

func (e EmptyValidationError) Field() string

Field function returns field value.

func (EmptyValidationError) Key

func (e EmptyValidationError) Key() bool

Key function returns key value.

func (EmptyValidationError) Reason

func (e EmptyValidationError) Reason() string

Reason function returns reason value.

type GetAuthTokenResp

type GetAuthTokenResp struct {
	Token *AuthToken  `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	User  *users.User `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAuthTokenResp) Descriptor deprecated

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

Deprecated: Use GetAuthTokenResp.ProtoReflect.Descriptor instead.

func (*GetAuthTokenResp) GetToken

func (x *GetAuthTokenResp) GetToken() *AuthToken

func (*GetAuthTokenResp) GetUser

func (x *GetAuthTokenResp) GetUser() *users.User

func (*GetAuthTokenResp) ProtoMessage

func (*GetAuthTokenResp) ProtoMessage()

func (*GetAuthTokenResp) ProtoReflect

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

func (*GetAuthTokenResp) Reset

func (x *GetAuthTokenResp) Reset()

func (*GetAuthTokenResp) String

func (x *GetAuthTokenResp) String() string

func (*GetAuthTokenResp) Validate

func (m *GetAuthTokenResp) Validate() error

Validate checks the field values on GetAuthTokenResp 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 (*GetAuthTokenResp) ValidateAll

func (m *GetAuthTokenResp) ValidateAll() error

ValidateAll checks the field values on GetAuthTokenResp 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 GetAuthTokenRespMultiError, or nil if none found.

type GetAuthTokenRespMultiError

type GetAuthTokenRespMultiError []error

GetAuthTokenRespMultiError is an error wrapping multiple validation errors returned by GetAuthTokenResp.ValidateAll() if the designated constraints aren't met.

func (GetAuthTokenRespMultiError) AllErrors

func (m GetAuthTokenRespMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetAuthTokenRespMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetAuthTokenRespValidationError

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

GetAuthTokenRespValidationError is the validation error returned by GetAuthTokenResp.Validate if the designated constraints aren't met.

func (GetAuthTokenRespValidationError) Cause

Cause function returns cause value.

func (GetAuthTokenRespValidationError) Error

Error satisfies the builtin error interface

func (GetAuthTokenRespValidationError) ErrorName

ErrorName returns error name.

func (GetAuthTokenRespValidationError) Field

Field function returns field value.

func (GetAuthTokenRespValidationError) Key

Key function returns key value.

func (GetAuthTokenRespValidationError) Reason

Reason function returns reason value.

type GetAuthUrlRequest

type GetAuthUrlRequest struct {
	State                string `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty"`
	ForCli               bool   `protobuf:"varint,3,opt,name=for_cli,json=forCli,proto3" json:"for_cli,omitempty"`
	Invitation           string `protobuf:"bytes,4,opt,name=invitation,proto3" json:"invitation,omitempty"` // optional invitation id for the invite flow
	ProdvanaOnlyAdminOrg bool   ``                                                                          // prodvana internal use
	/* 126-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*GetAuthUrlRequest) Descriptor deprecated

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

Deprecated: Use GetAuthUrlRequest.ProtoReflect.Descriptor instead.

func (*GetAuthUrlRequest) GetForCli

func (x *GetAuthUrlRequest) GetForCli() bool

func (*GetAuthUrlRequest) GetInvitation

func (x *GetAuthUrlRequest) GetInvitation() string

func (*GetAuthUrlRequest) GetProdvanaOnlyAdminOrg

func (x *GetAuthUrlRequest) GetProdvanaOnlyAdminOrg() bool

func (*GetAuthUrlRequest) GetState

func (x *GetAuthUrlRequest) GetState() string

func (*GetAuthUrlRequest) ProtoMessage

func (*GetAuthUrlRequest) ProtoMessage()

func (*GetAuthUrlRequest) ProtoReflect

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

func (*GetAuthUrlRequest) Reset

func (x *GetAuthUrlRequest) Reset()

func (*GetAuthUrlRequest) String

func (x *GetAuthUrlRequest) String() string

func (*GetAuthUrlRequest) Validate

func (m *GetAuthUrlRequest) Validate() error

Validate checks the field values on GetAuthUrlRequest 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 (*GetAuthUrlRequest) ValidateAll

func (m *GetAuthUrlRequest) ValidateAll() error

ValidateAll checks the field values on GetAuthUrlRequest 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 GetAuthUrlRequestMultiError, or nil if none found.

type GetAuthUrlRequestMultiError

type GetAuthUrlRequestMultiError []error

GetAuthUrlRequestMultiError is an error wrapping multiple validation errors returned by GetAuthUrlRequest.ValidateAll() if the designated constraints aren't met.

func (GetAuthUrlRequestMultiError) AllErrors

func (m GetAuthUrlRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetAuthUrlRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetAuthUrlRequestValidationError

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

GetAuthUrlRequestValidationError is the validation error returned by GetAuthUrlRequest.Validate if the designated constraints aren't met.

func (GetAuthUrlRequestValidationError) Cause

Cause function returns cause value.

func (GetAuthUrlRequestValidationError) Error

Error satisfies the builtin error interface

func (GetAuthUrlRequestValidationError) ErrorName

ErrorName returns error name.

func (GetAuthUrlRequestValidationError) Field

Field function returns field value.

func (GetAuthUrlRequestValidationError) Key

Key function returns key value.

func (GetAuthUrlRequestValidationError) Reason

Reason function returns reason value.

type GetAuthUrlResponse

type GetAuthUrlResponse struct {
	AuthUrl string `protobuf:"bytes,1,opt,name=auth_url,json=authUrl,proto3" json:"auth_url,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAuthUrlResponse) Descriptor deprecated

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

Deprecated: Use GetAuthUrlResponse.ProtoReflect.Descriptor instead.

func (*GetAuthUrlResponse) GetAuthUrl

func (x *GetAuthUrlResponse) GetAuthUrl() string

func (*GetAuthUrlResponse) ProtoMessage

func (*GetAuthUrlResponse) ProtoMessage()

func (*GetAuthUrlResponse) ProtoReflect

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

func (*GetAuthUrlResponse) Reset

func (x *GetAuthUrlResponse) Reset()

func (*GetAuthUrlResponse) String

func (x *GetAuthUrlResponse) String() string

func (*GetAuthUrlResponse) Validate

func (m *GetAuthUrlResponse) Validate() error

Validate checks the field values on GetAuthUrlResponse 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 (*GetAuthUrlResponse) ValidateAll

func (m *GetAuthUrlResponse) ValidateAll() error

ValidateAll checks the field values on GetAuthUrlResponse 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 GetAuthUrlResponseMultiError, or nil if none found.

type GetAuthUrlResponseMultiError

type GetAuthUrlResponseMultiError []error

GetAuthUrlResponseMultiError is an error wrapping multiple validation errors returned by GetAuthUrlResponse.ValidateAll() if the designated constraints aren't met.

func (GetAuthUrlResponseMultiError) AllErrors

func (m GetAuthUrlResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetAuthUrlResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetAuthUrlResponseValidationError

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

GetAuthUrlResponseValidationError is the validation error returned by GetAuthUrlResponse.Validate if the designated constraints aren't met.

func (GetAuthUrlResponseValidationError) Cause

Cause function returns cause value.

func (GetAuthUrlResponseValidationError) Error

Error satisfies the builtin error interface

func (GetAuthUrlResponseValidationError) ErrorName

ErrorName returns error name.

func (GetAuthUrlResponseValidationError) Field

Field function returns field value.

func (GetAuthUrlResponseValidationError) Key

Key function returns key value.

func (GetAuthUrlResponseValidationError) Reason

Reason function returns reason value.

type GetTokenRequest

type GetTokenRequest struct {
	Code                 string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
	RedirectUrl          string `protobuf:"bytes,2,opt,name=redirect_url,json=redirectUrl,proto3" json:"redirect_url,omitempty"`
	ForCli               bool   `protobuf:"varint,3,opt,name=for_cli,json=forCli,proto3" json:"for_cli,omitempty"`
	ProdvanaOnlyAdminOrg bool   `` // prodvana internal use
	/* 126-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*GetTokenRequest) Descriptor deprecated

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

Deprecated: Use GetTokenRequest.ProtoReflect.Descriptor instead.

func (*GetTokenRequest) GetCode

func (x *GetTokenRequest) GetCode() string

func (*GetTokenRequest) GetForCli

func (x *GetTokenRequest) GetForCli() bool

func (*GetTokenRequest) GetProdvanaOnlyAdminOrg

func (x *GetTokenRequest) GetProdvanaOnlyAdminOrg() bool

func (*GetTokenRequest) GetRedirectUrl

func (x *GetTokenRequest) GetRedirectUrl() 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 ListOrgApiTokensReq

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

func (*ListOrgApiTokensReq) Descriptor deprecated

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

Deprecated: Use ListOrgApiTokensReq.ProtoReflect.Descriptor instead.

func (*ListOrgApiTokensReq) ProtoMessage

func (*ListOrgApiTokensReq) ProtoMessage()

func (*ListOrgApiTokensReq) ProtoReflect

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

func (*ListOrgApiTokensReq) Reset

func (x *ListOrgApiTokensReq) Reset()

func (*ListOrgApiTokensReq) String

func (x *ListOrgApiTokensReq) String() string

func (*ListOrgApiTokensReq) Validate

func (m *ListOrgApiTokensReq) Validate() error

Validate checks the field values on ListOrgApiTokensReq 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 (*ListOrgApiTokensReq) ValidateAll

func (m *ListOrgApiTokensReq) ValidateAll() error

ValidateAll checks the field values on ListOrgApiTokensReq 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 ListOrgApiTokensReqMultiError, or nil if none found.

type ListOrgApiTokensReqMultiError

type ListOrgApiTokensReqMultiError []error

ListOrgApiTokensReqMultiError is an error wrapping multiple validation errors returned by ListOrgApiTokensReq.ValidateAll() if the designated constraints aren't met.

func (ListOrgApiTokensReqMultiError) AllErrors

func (m ListOrgApiTokensReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListOrgApiTokensReqMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListOrgApiTokensReqValidationError

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

ListOrgApiTokensReqValidationError is the validation error returned by ListOrgApiTokensReq.Validate if the designated constraints aren't met.

func (ListOrgApiTokensReqValidationError) Cause

Cause function returns cause value.

func (ListOrgApiTokensReqValidationError) Error

Error satisfies the builtin error interface

func (ListOrgApiTokensReqValidationError) ErrorName

ErrorName returns error name.

func (ListOrgApiTokensReqValidationError) Field

Field function returns field value.

func (ListOrgApiTokensReqValidationError) Key

Key function returns key value.

func (ListOrgApiTokensReqValidationError) Reason

Reason function returns reason value.

type ListOrgApiTokensResp

type ListOrgApiTokensResp struct {
	Tokens []*ApiTokenInfo `protobuf:"bytes,1,rep,name=tokens,proto3" json:"tokens,omitempty"`
	// contains filtered or unexported fields
}

func (*ListOrgApiTokensResp) Descriptor deprecated

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

Deprecated: Use ListOrgApiTokensResp.ProtoReflect.Descriptor instead.

func (*ListOrgApiTokensResp) GetTokens

func (x *ListOrgApiTokensResp) GetTokens() []*ApiTokenInfo

func (*ListOrgApiTokensResp) ProtoMessage

func (*ListOrgApiTokensResp) ProtoMessage()

func (*ListOrgApiTokensResp) ProtoReflect

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

func (*ListOrgApiTokensResp) Reset

func (x *ListOrgApiTokensResp) Reset()

func (*ListOrgApiTokensResp) String

func (x *ListOrgApiTokensResp) String() string

func (*ListOrgApiTokensResp) Validate

func (m *ListOrgApiTokensResp) Validate() error

Validate checks the field values on ListOrgApiTokensResp 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 (*ListOrgApiTokensResp) ValidateAll

func (m *ListOrgApiTokensResp) ValidateAll() error

ValidateAll checks the field values on ListOrgApiTokensResp 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 ListOrgApiTokensRespMultiError, or nil if none found.

type ListOrgApiTokensRespMultiError

type ListOrgApiTokensRespMultiError []error

ListOrgApiTokensRespMultiError is an error wrapping multiple validation errors returned by ListOrgApiTokensResp.ValidateAll() if the designated constraints aren't met.

func (ListOrgApiTokensRespMultiError) AllErrors

func (m ListOrgApiTokensRespMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListOrgApiTokensRespMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListOrgApiTokensRespValidationError

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

ListOrgApiTokensRespValidationError is the validation error returned by ListOrgApiTokensResp.Validate if the designated constraints aren't met.

func (ListOrgApiTokensRespValidationError) Cause

Cause function returns cause value.

func (ListOrgApiTokensRespValidationError) Error

Error satisfies the builtin error interface

func (ListOrgApiTokensRespValidationError) ErrorName

ErrorName returns error name.

func (ListOrgApiTokensRespValidationError) Field

Field function returns field value.

func (ListOrgApiTokensRespValidationError) Key

Key function returns key value.

func (ListOrgApiTokensRespValidationError) Reason

Reason function returns reason value.

type LogoutReq added in v0.3.11

type LogoutReq struct {
	ForCli               bool   `protobuf:"varint,1,opt,name=for_cli,json=forCli,proto3" json:"for_cli,omitempty"`
	RedirectUrl          string `protobuf:"bytes,2,opt,name=redirect_url,json=redirectUrl,proto3" json:"redirect_url,omitempty"` // optional redirect url after logout
	ProdvanaOnlyAdminOrg bool   ``                                                                                               // prodvana internal use
	/* 126-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*LogoutReq) Descriptor deprecated added in v0.3.11

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

Deprecated: Use LogoutReq.ProtoReflect.Descriptor instead.

func (*LogoutReq) GetForCli added in v0.3.11

func (x *LogoutReq) GetForCli() bool

func (*LogoutReq) GetProdvanaOnlyAdminOrg added in v0.3.11

func (x *LogoutReq) GetProdvanaOnlyAdminOrg() bool

func (*LogoutReq) GetRedirectUrl added in v0.3.11

func (x *LogoutReq) GetRedirectUrl() string

func (*LogoutReq) ProtoMessage added in v0.3.11

func (*LogoutReq) ProtoMessage()

func (*LogoutReq) ProtoReflect added in v0.3.11

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

func (*LogoutReq) Reset added in v0.3.11

func (x *LogoutReq) Reset()

func (*LogoutReq) String added in v0.3.11

func (x *LogoutReq) String() string

func (*LogoutReq) Validate added in v0.3.11

func (m *LogoutReq) Validate() error

Validate checks the field values on LogoutReq 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 (*LogoutReq) ValidateAll added in v0.3.11

func (m *LogoutReq) ValidateAll() error

ValidateAll checks the field values on LogoutReq 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 LogoutReqMultiError, or nil if none found.

type LogoutReqMultiError added in v0.3.11

type LogoutReqMultiError []error

LogoutReqMultiError is an error wrapping multiple validation errors returned by LogoutReq.ValidateAll() if the designated constraints aren't met.

func (LogoutReqMultiError) AllErrors added in v0.3.11

func (m LogoutReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (LogoutReqMultiError) Error added in v0.3.11

func (m LogoutReqMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type LogoutReqValidationError added in v0.3.11

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

LogoutReqValidationError is the validation error returned by LogoutReq.Validate if the designated constraints aren't met.

func (LogoutReqValidationError) Cause added in v0.3.11

func (e LogoutReqValidationError) Cause() error

Cause function returns cause value.

func (LogoutReqValidationError) Error added in v0.3.11

func (e LogoutReqValidationError) Error() string

Error satisfies the builtin error interface

func (LogoutReqValidationError) ErrorName added in v0.3.11

func (e LogoutReqValidationError) ErrorName() string

ErrorName returns error name.

func (LogoutReqValidationError) Field added in v0.3.11

func (e LogoutReqValidationError) Field() string

Field function returns field value.

func (LogoutReqValidationError) Key added in v0.3.11

Key function returns key value.

func (LogoutReqValidationError) Reason added in v0.3.11

func (e LogoutReqValidationError) Reason() string

Reason function returns reason value.

type LogoutResp added in v0.3.11

type LogoutResp struct {
	LogoutUrl string `protobuf:"bytes,1,opt,name=logout_url,json=logoutUrl,proto3" json:"logout_url,omitempty"`
	// contains filtered or unexported fields
}

func (*LogoutResp) Descriptor deprecated added in v0.3.11

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

Deprecated: Use LogoutResp.ProtoReflect.Descriptor instead.

func (*LogoutResp) GetLogoutUrl added in v0.3.11

func (x *LogoutResp) GetLogoutUrl() string

func (*LogoutResp) ProtoMessage added in v0.3.11

func (*LogoutResp) ProtoMessage()

func (*LogoutResp) ProtoReflect added in v0.3.11

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

func (*LogoutResp) Reset added in v0.3.11

func (x *LogoutResp) Reset()

func (*LogoutResp) String added in v0.3.11

func (x *LogoutResp) String() string

func (*LogoutResp) Validate added in v0.3.11

func (m *LogoutResp) Validate() error

Validate checks the field values on LogoutResp 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 (*LogoutResp) ValidateAll added in v0.3.11

func (m *LogoutResp) ValidateAll() error

ValidateAll checks the field values on LogoutResp 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 LogoutRespMultiError, or nil if none found.

type LogoutRespMultiError added in v0.3.11

type LogoutRespMultiError []error

LogoutRespMultiError is an error wrapping multiple validation errors returned by LogoutResp.ValidateAll() if the designated constraints aren't met.

func (LogoutRespMultiError) AllErrors added in v0.3.11

func (m LogoutRespMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (LogoutRespMultiError) Error added in v0.3.11

func (m LogoutRespMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type LogoutRespValidationError added in v0.3.11

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

LogoutRespValidationError is the validation error returned by LogoutResp.Validate if the designated constraints aren't met.

func (LogoutRespValidationError) Cause added in v0.3.11

func (e LogoutRespValidationError) Cause() error

Cause function returns cause value.

func (LogoutRespValidationError) Error added in v0.3.11

Error satisfies the builtin error interface

func (LogoutRespValidationError) ErrorName added in v0.3.11

func (e LogoutRespValidationError) ErrorName() string

ErrorName returns error name.

func (LogoutRespValidationError) Field added in v0.3.11

Field function returns field value.

func (LogoutRespValidationError) Key added in v0.3.11

Key function returns key value.

func (LogoutRespValidationError) Reason added in v0.3.11

func (e LogoutRespValidationError) Reason() string

Reason function returns reason value.

type RefreshTokenReq

type RefreshTokenReq struct {
	Token                *AuthToken `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	ForCli               bool       `protobuf:"varint,2,opt,name=for_cli,json=forCli,proto3" json:"for_cli,omitempty"`
	ProdvanaOnlyAdminOrg bool       `` // prodvana internal use
	/* 126-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*RefreshTokenReq) Descriptor deprecated

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

Deprecated: Use RefreshTokenReq.ProtoReflect.Descriptor instead.

func (*RefreshTokenReq) GetForCli

func (x *RefreshTokenReq) GetForCli() bool

func (*RefreshTokenReq) GetProdvanaOnlyAdminOrg

func (x *RefreshTokenReq) GetProdvanaOnlyAdminOrg() bool

func (*RefreshTokenReq) GetToken

func (x *RefreshTokenReq) GetToken() *AuthToken

func (*RefreshTokenReq) ProtoMessage

func (*RefreshTokenReq) ProtoMessage()

func (*RefreshTokenReq) ProtoReflect

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

func (*RefreshTokenReq) Reset

func (x *RefreshTokenReq) Reset()

func (*RefreshTokenReq) String

func (x *RefreshTokenReq) String() string

func (*RefreshTokenReq) Validate

func (m *RefreshTokenReq) Validate() error

Validate checks the field values on RefreshTokenReq 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 (*RefreshTokenReq) ValidateAll

func (m *RefreshTokenReq) ValidateAll() error

ValidateAll checks the field values on RefreshTokenReq 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 RefreshTokenReqMultiError, or nil if none found.

type RefreshTokenReqMultiError

type RefreshTokenReqMultiError []error

RefreshTokenReqMultiError is an error wrapping multiple validation errors returned by RefreshTokenReq.ValidateAll() if the designated constraints aren't met.

func (RefreshTokenReqMultiError) AllErrors

func (m RefreshTokenReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RefreshTokenReqMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type RefreshTokenReqValidationError

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

RefreshTokenReqValidationError is the validation error returned by RefreshTokenReq.Validate if the designated constraints aren't met.

func (RefreshTokenReqValidationError) Cause

Cause function returns cause value.

func (RefreshTokenReqValidationError) Error

Error satisfies the builtin error interface

func (RefreshTokenReqValidationError) ErrorName

func (e RefreshTokenReqValidationError) ErrorName() string

ErrorName returns error name.

func (RefreshTokenReqValidationError) Field

Field function returns field value.

func (RefreshTokenReqValidationError) Key

Key function returns key value.

func (RefreshTokenReqValidationError) Reason

Reason function returns reason value.

type Session

type Session struct {
	Contexts            map[string]*AuthContext `` /* 157-byte string literal not displayed */
	CurrentContext      string                  `protobuf:"bytes,4,opt,name=current_context,json=currentContext,proto3" json:"current_context,omitempty"`
	AdminContexts       map[string]*AuthContext `` /* 188-byte string literal not displayed */
	CurrentAdminContext string                  `protobuf:"bytes,6,opt,name=current_admin_context,json=currentAdminContext,proto3" json:"current_admin_context,omitempty"`
	// contains filtered or unexported fields
}

func (*Session) Descriptor deprecated

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

Deprecated: Use Session.ProtoReflect.Descriptor instead.

func (*Session) GetAdminContexts

func (x *Session) GetAdminContexts() map[string]*AuthContext

func (*Session) GetContexts

func (x *Session) GetContexts() map[string]*AuthContext

func (*Session) GetCurrentAdminContext

func (x *Session) GetCurrentAdminContext() string

func (*Session) GetCurrentContext

func (x *Session) GetCurrentContext() string

func (*Session) ProtoMessage

func (*Session) ProtoMessage()

func (*Session) ProtoReflect

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

func (*Session) Reset

func (x *Session) Reset()

func (*Session) String

func (x *Session) String() string

func (*Session) Validate

func (m *Session) Validate() error

Validate checks the field values on Session 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 (*Session) ValidateAll

func (m *Session) ValidateAll() error

ValidateAll checks the field values on Session 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 SessionMultiError, or nil if none found.

type SessionMultiError

type SessionMultiError []error

SessionMultiError is an error wrapping multiple validation errors returned by Session.ValidateAll() if the designated constraints aren't met.

func (SessionMultiError) AllErrors

func (m SessionMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SessionMultiError) Error

func (m SessionMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type SessionValidationError

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

SessionValidationError is the validation error returned by Session.Validate if the designated constraints aren't met.

func (SessionValidationError) Cause

func (e SessionValidationError) Cause() error

Cause function returns cause value.

func (SessionValidationError) Error

func (e SessionValidationError) Error() string

Error satisfies the builtin error interface

func (SessionValidationError) ErrorName

func (e SessionValidationError) ErrorName() string

ErrorName returns error name.

func (SessionValidationError) Field

func (e SessionValidationError) Field() string

Field function returns field value.

func (SessionValidationError) Key

func (e SessionValidationError) Key() bool

Key function returns key value.

func (SessionValidationError) Reason

func (e SessionValidationError) Reason() string

Reason function returns reason value.

type UnimplementedApiTokenManagerServer

type UnimplementedApiTokenManagerServer struct {
}

UnimplementedApiTokenManagerServer must be embedded to have forward compatible implementations.

func (UnimplementedApiTokenManagerServer) CreateOrgApiToken

func (UnimplementedApiTokenManagerServer) CreateOrgApiToken2

func (UnimplementedApiTokenManagerServer) DeleteOrgApiToken

func (UnimplementedApiTokenManagerServer) ListOrgApiTokens

type UnimplementedAuthManagerServer

type UnimplementedAuthManagerServer struct {
}

UnimplementedAuthManagerServer must be embedded to have forward compatible implementations.

func (UnimplementedAuthManagerServer) CliAuth

func (UnimplementedAuthManagerServer) GetAuthToken

func (UnimplementedAuthManagerServer) GetAuthUrl

func (UnimplementedAuthManagerServer) RefreshToken

type UnimplementedAuthSessionManagerServer

type UnimplementedAuthSessionManagerServer struct {
}

UnimplementedAuthSessionManagerServer must be embedded to have forward compatible implementations.

func (UnimplementedAuthSessionManagerServer) Check

func (UnimplementedAuthSessionManagerServer) Logout added in v0.3.11

type UnsafeApiTokenManagerServer

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

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

type UnsafeAuthManagerServer

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

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

type UnsafeAuthSessionManagerServer

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

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

Jump to

Keyboard shortcuts

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