auth

package
v1.10.3 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_development_kit_pkg_services_grpc_auth_auth_proto protoreflect.FileDescriptor

Functions

func RegisterAuthServiceServer

func RegisterAuthServiceServer(s *grpc.Server, srv AuthServiceServer)

Types

type AuthServiceClient

type AuthServiceClient interface {
	IsAuthorized(ctx context.Context, in *IsAuthorizedData, opts ...grpc.CallOption) (*IsAuthorizedResponse, error)
	GetAccountID(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://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type AuthServiceServer

type AuthServiceServer interface {
	IsAuthorized(context.Context, *IsAuthorizedData) (*IsAuthorizedResponse, error)
	GetAccountID(context.Context, *GetAccountData) (*GetAccountDataResponse, error)
	GetAuthConfig(context.Context, *GetAuthConfigData) (*GetAuthConfigResponse, error)
}

AuthServiceServer is the server API for AuthService service.

type GetAccountData added in v1.6.0

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

func (*GetAccountData) Descriptor deprecated added in v1.6.0

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

Deprecated: Use GetAccountData.ProtoReflect.Descriptor instead.

func (*GetAccountData) GetToken added in v1.6.0

func (x *GetAccountData) GetToken() string

func (*GetAccountData) ProtoMessage added in v1.6.0

func (*GetAccountData) ProtoMessage()

func (*GetAccountData) ProtoReflect added in v1.6.0

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

func (*GetAccountData) Reset added in v1.6.0

func (x *GetAccountData) Reset()

func (*GetAccountData) String added in v1.6.0

func (x *GetAccountData) String() string

type GetAccountDataResponse added in v1.6.0

type GetAccountDataResponse struct {
	AccountID   string   `protobuf:"bytes,1,opt,name=accountID,proto3" json:"accountID,omitempty"`
	Permissions []string `protobuf:"bytes,2,rep,name=permissions,proto3" json:"permissions,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAccountDataResponse) Descriptor deprecated added in v1.6.0

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

Deprecated: Use GetAccountDataResponse.ProtoReflect.Descriptor instead.

func (*GetAccountDataResponse) GetAccountID added in v1.6.0

func (x *GetAccountDataResponse) GetAccountID() string

func (*GetAccountDataResponse) GetPermissions added in v1.6.0

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

func (*GetAccountDataResponse) ProtoMessage added in v1.6.0

func (*GetAccountDataResponse) ProtoMessage()

func (*GetAccountDataResponse) ProtoReflect added in v1.6.0

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

func (*GetAccountDataResponse) Reset added in v1.6.0

func (x *GetAccountDataResponse) Reset()

func (*GetAccountDataResponse) String added in v1.6.0

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 {
	ApplicationAdminEnable bool   `protobuf:"varint,1,opt,name=ApplicationAdminEnable,proto3" json:"ApplicationAdminEnable,omitempty"`
	AuthType               string `protobuf:"bytes,2,opt,name=AuthType,proto3" json:"AuthType,omitempty"`
	DisabledBroker         bool   `protobuf:"varint,3,opt,name=DisabledBroker,proto3" json:"DisabledBroker,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAuthConfigResponse) Descriptor deprecated

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

Deprecated: Use GetAuthConfigResponse.ProtoReflect.Descriptor instead.

func (*GetAuthConfigResponse) GetApplicationAdminEnable

func (x *GetAuthConfigResponse) GetApplicationAdminEnable() bool

func (*GetAuthConfigResponse) GetAuthType

func (x *GetAuthConfigResponse) GetAuthType() string

func (*GetAuthConfigResponse) GetDisabledBroker added in v1.4.0

func (x *GetAuthConfigResponse) GetDisabledBroker() 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"`
	Role         string `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"`
	CompanyID    string `protobuf:"bytes,3,opt,name=companyID,proto3" json:"companyID,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) GetCompanyID

func (x *IsAuthorizedData) GetCompanyID() string

func (*IsAuthorizedData) GetRepositoryID

func (x *IsAuthorizedData) GetRepositoryID() string

func (*IsAuthorizedData) GetRole

func (x *IsAuthorizedData) GetRole() string

func (*IsAuthorizedData) GetToken

func (x *IsAuthorizedData) GetToken() 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) GetAccountID

func (m *Mock) GetAccountID(
	ctx context.Context, in *GetAccountData, opts ...grpc.CallOption) (*GetAccountDataResponse, error)

func (*Mock) GetAuthConfig

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

func (*Mock) IsAuthorized

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

type UnimplementedAuthServiceServer

type UnimplementedAuthServiceServer struct {
}

UnimplementedAuthServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedAuthServiceServer) GetAccountID

func (*UnimplementedAuthServiceServer) GetAuthConfig

func (*UnimplementedAuthServiceServer) IsAuthorized

Jump to

Keyboard shortcuts

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