auth

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 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.ServiceRegistrar, srv AuthServiceServer)

Types

type AuthServiceClient

type AuthServiceClient interface {
	IsAuthorized(ctx context.Context, in *IsAuthorizedData, opts ...grpc.CallOption) (*IsAuthorizedResponse, error)
	GetAccountID(ctx context.Context, in *GetAccountIDData, opts ...grpc.CallOption) (*GetAccountIDResponse, 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)
	GetAccountID(context.Context, *GetAccountIDData) (*GetAccountIDResponse, 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 GetAccountIDData

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

func (*GetAccountIDData) Descriptor deprecated

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

Deprecated: Use GetAccountIDData.ProtoReflect.Descriptor instead.

func (*GetAccountIDData) GetToken

func (x *GetAccountIDData) GetToken() string

func (*GetAccountIDData) ProtoMessage

func (*GetAccountIDData) ProtoMessage()

func (*GetAccountIDData) ProtoReflect

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

func (*GetAccountIDData) Reset

func (x *GetAccountIDData) Reset()

func (*GetAccountIDData) String

func (x *GetAccountIDData) String() string

type GetAccountIDResponse

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

func (*GetAccountIDResponse) Descriptor deprecated

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

Deprecated: Use GetAccountIDResponse.ProtoReflect.Descriptor instead.

func (*GetAccountIDResponse) GetAccountID

func (x *GetAccountIDResponse) GetAccountID() string

func (*GetAccountIDResponse) ProtoMessage

func (*GetAccountIDResponse) ProtoMessage()

func (*GetAccountIDResponse) ProtoReflect

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

func (*GetAccountIDResponse) Reset

func (x *GetAccountIDResponse) Reset()

func (*GetAccountIDResponse) String

func (x *GetAccountIDResponse) 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 *GetAccountIDData, opts ...grpc.CallOption) (*GetAccountIDResponse, 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 must be embedded to have forward compatible implementations.

func (UnimplementedAuthServiceServer) GetAccountID

func (UnimplementedAuthServiceServer) GetAuthConfig

func (UnimplementedAuthServiceServer) IsAuthorized

type UnsafeAuthServiceServer added in v1.4.0

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