proto

package
v1.0.17 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2021 License: Apache-2.0 Imports: 11 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_pkg_services_grpc_auth_proto_auth_proto protoreflect.FileDescriptor

Functions

func RegisterAuthServiceServer

func RegisterAuthServiceServer(s grpc.ServiceRegistrar, srv AuthServiceServer)

Types

type AuthServiceClient

type AuthServiceClient interface {
	IsAuthorized(ctx context.Context, in *IsAuthorizedData, opts ...grpc.CallOption) (*IsAuthorizedResponse, error)
	GetAccountInfo(ctx context.Context, in *GetAccountData, opts ...grpc.CallOption) (*GetAccountDataResponse, error)
	GetAuthConfig(ctx context.Context, in *GetAuthConfigData, opts ...grpc.CallOption) (*GetAuthConfigResponse, error)
}

AuthServiceClient is the client API for AuthService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type AuthServiceServer

type AuthServiceServer interface {
	IsAuthorized(context.Context, *IsAuthorizedData) (*IsAuthorizedResponse, error)
	GetAccountInfo(context.Context, *GetAccountData) (*GetAccountDataResponse, error)
	GetAuthConfig(context.Context, *GetAuthConfigData) (*GetAuthConfigResponse, error)
	// contains filtered or unexported methods
}

AuthServiceServer is the server API for AuthService service. All implementations must embed UnimplementedAuthServiceServer for forward compatibility

type GetAccountData

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

func (*GetAccountData) Descriptor deprecated

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

Deprecated: Use GetAccountData.ProtoReflect.Descriptor instead.

func (*GetAccountData) GetEmail

func (x *GetAccountData) GetEmail() string

func (*GetAccountData) GetToken

func (x *GetAccountData) GetToken() string

func (*GetAccountData) ProtoMessage

func (*GetAccountData) ProtoMessage()

func (*GetAccountData) ProtoReflect

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

func (*GetAccountData) Reset

func (x *GetAccountData) Reset()

func (*GetAccountData) String

func (x *GetAccountData) String() string

type GetAccountDataResponse

type GetAccountDataResponse struct {
	AccountID          string   `protobuf:"bytes,1,opt,name=accountID,proto3" json:"accountID,omitempty"`
	IsApplicationAdmin bool     `protobuf:"varint,2,opt,name=isApplicationAdmin,proto3" json:"isApplicationAdmin,omitempty"`
	Permissions        []string `protobuf:"bytes,3,rep,name=permissions,proto3" json:"permissions,omitempty"`
	Email              string   `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"`
	Username           string   `protobuf:"bytes,5,opt,name=username,proto3" json:"username,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAccountDataResponse) Descriptor deprecated

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

Deprecated: Use GetAccountDataResponse.ProtoReflect.Descriptor instead.

func (*GetAccountDataResponse) GetAccountID

func (x *GetAccountDataResponse) GetAccountID() string

func (*GetAccountDataResponse) GetEmail

func (x *GetAccountDataResponse) GetEmail() string

func (*GetAccountDataResponse) GetIsApplicationAdmin

func (x *GetAccountDataResponse) GetIsApplicationAdmin() bool

func (*GetAccountDataResponse) GetPermissions

func (x *GetAccountDataResponse) GetPermissions() []string

func (*GetAccountDataResponse) GetUsername

func (x *GetAccountDataResponse) GetUsername() string

func (*GetAccountDataResponse) ProtoMessage

func (*GetAccountDataResponse) ProtoMessage()

func (*GetAccountDataResponse) ProtoReflect

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

func (*GetAccountDataResponse) Reset

func (x *GetAccountDataResponse) Reset()

func (*GetAccountDataResponse) String

func (x *GetAccountDataResponse) String() string

type GetAuthConfigData

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

func (*GetAuthConfigData) Descriptor deprecated

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

Deprecated: Use GetAuthConfigData.ProtoReflect.Descriptor instead.

func (*GetAuthConfigData) ProtoMessage

func (*GetAuthConfigData) ProtoMessage()

func (*GetAuthConfigData) ProtoReflect

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

func (*GetAuthConfigData) Reset

func (x *GetAuthConfigData) Reset()

func (*GetAuthConfigData) String

func (x *GetAuthConfigData) String() string

type GetAuthConfigResponse

type GetAuthConfigResponse struct {
	EnableApplicationAdmin bool   `protobuf:"varint,1,opt,name=enableApplicationAdmin,proto3" json:"enableApplicationAdmin,omitempty"`
	AuthType               string `protobuf:"bytes,2,opt,name=authType,proto3" json:"authType,omitempty"`
	DisableEmails          bool   `protobuf:"varint,3,opt,name=disableEmails,proto3" json:"disableEmails,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAuthConfigResponse) Descriptor deprecated

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

Deprecated: Use GetAuthConfigResponse.ProtoReflect.Descriptor instead.

func (*GetAuthConfigResponse) GetAuthType

func (x *GetAuthConfigResponse) GetAuthType() string

func (*GetAuthConfigResponse) GetDisableEmails

func (x *GetAuthConfigResponse) GetDisableEmails() bool

func (*GetAuthConfigResponse) GetEnableApplicationAdmin

func (x *GetAuthConfigResponse) GetEnableApplicationAdmin() bool

func (*GetAuthConfigResponse) ProtoMessage

func (*GetAuthConfigResponse) ProtoMessage()

func (*GetAuthConfigResponse) ProtoReflect

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

func (*GetAuthConfigResponse) Reset

func (x *GetAuthConfigResponse) Reset()

func (*GetAuthConfigResponse) String

func (x *GetAuthConfigResponse) String() string

type IsAuthorizedData

type IsAuthorizedData struct {
	Token        string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	Type         string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	WorkspaceID  string `protobuf:"bytes,3,opt,name=workspaceID,proto3" json:"workspaceID,omitempty"`
	RepositoryID string `protobuf:"bytes,4,opt,name=repositoryID,proto3" json:"repositoryID,omitempty"`
	// contains filtered or unexported fields
}

func (*IsAuthorizedData) Descriptor deprecated

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

Deprecated: Use IsAuthorizedData.ProtoReflect.Descriptor instead.

func (*IsAuthorizedData) GetRepositoryID

func (x *IsAuthorizedData) GetRepositoryID() string

func (*IsAuthorizedData) GetToken

func (x *IsAuthorizedData) GetToken() string

func (*IsAuthorizedData) GetType

func (x *IsAuthorizedData) GetType() string

func (*IsAuthorizedData) GetWorkspaceID

func (x *IsAuthorizedData) GetWorkspaceID() string

func (*IsAuthorizedData) ProtoMessage

func (*IsAuthorizedData) ProtoMessage()

func (*IsAuthorizedData) ProtoReflect

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

func (*IsAuthorizedData) Reset

func (x *IsAuthorizedData) Reset()

func (*IsAuthorizedData) String

func (x *IsAuthorizedData) String() string

type IsAuthorizedResponse

type IsAuthorizedResponse struct {
	IsAuthorized bool `protobuf:"varint,1,opt,name=isAuthorized,proto3" json:"isAuthorized,omitempty"`
	// contains filtered or unexported fields
}

func (*IsAuthorizedResponse) Descriptor deprecated

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

Deprecated: Use IsAuthorizedResponse.ProtoReflect.Descriptor instead.

func (*IsAuthorizedResponse) GetIsAuthorized

func (x *IsAuthorizedResponse) GetIsAuthorized() bool

func (*IsAuthorizedResponse) ProtoMessage

func (*IsAuthorizedResponse) ProtoMessage()

func (*IsAuthorizedResponse) ProtoReflect

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

func (*IsAuthorizedResponse) Reset

func (x *IsAuthorizedResponse) Reset()

func (*IsAuthorizedResponse) String

func (x *IsAuthorizedResponse) String() string

type Mock

type Mock struct {
	mock.Mock
}

func (*Mock) GetAccountInfo

func (m *Mock) GetAccountInfo(_ context.Context, _ *GetAccountData,
	_ ...grpc.CallOption) (*GetAccountDataResponse, error)

func (*Mock) GetAuthConfig

func (m *Mock) GetAuthConfig(_ context.Context, _ *GetAuthConfigData,
	_ ...grpc.CallOption) (*GetAuthConfigResponse, error)

func (*Mock) IsAuthorized

func (m *Mock) IsAuthorized(
	_ context.Context, _ *IsAuthorizedData, _ ...grpc.CallOption) (*IsAuthorizedResponse, error)

type UnimplementedAuthServiceServer

type UnimplementedAuthServiceServer struct {
}

UnimplementedAuthServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedAuthServiceServer) GetAccountInfo

func (UnimplementedAuthServiceServer) GetAuthConfig

func (UnimplementedAuthServiceServer) IsAuthorized

type UnsafeAuthServiceServer

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

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

Jump to

Keyboard shortcuts

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