2020-02-03 08:16:02 +00:00
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
2020-04-14 16:25:09 +03:00
|
|
|
// source: auth/service/proto/auth.proto
|
2020-02-03 08:16:02 +00:00
|
|
|
|
2020-03-31 10:18:50 +01:00
|
|
|
package go_micro_auth
|
2020-02-03 08:16:02 +00:00
|
|
|
|
|
|
|
import (
|
2020-04-14 16:25:09 +03:00
|
|
|
context "context"
|
2020-02-03 08:16:02 +00:00
|
|
|
fmt "fmt"
|
|
|
|
proto "github.com/golang/protobuf/proto"
|
2020-04-14 16:25:09 +03:00
|
|
|
grpc "google.golang.org/grpc"
|
|
|
|
codes "google.golang.org/grpc/codes"
|
|
|
|
status "google.golang.org/grpc/status"
|
2020-02-03 08:16:02 +00:00
|
|
|
math "math"
|
|
|
|
)
|
|
|
|
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
|
|
var _ = proto.Marshal
|
|
|
|
var _ = fmt.Errorf
|
|
|
|
var _ = math.Inf
|
|
|
|
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
|
|
// is compatible with the proto package it is being compiled against.
|
|
|
|
// A compilation error at this line likely means your copy of the
|
|
|
|
// proto package needs to be updated.
|
|
|
|
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
|
|
|
|
|
2020-03-31 10:18:50 +01:00
|
|
|
type Access int32
|
|
|
|
|
|
|
|
const (
|
|
|
|
Access_UNKNOWN Access = 0
|
|
|
|
Access_GRANTED Access = 1
|
|
|
|
Access_DENIED Access = 2
|
|
|
|
)
|
|
|
|
|
|
|
|
var Access_name = map[int32]string{
|
|
|
|
0: "UNKNOWN",
|
|
|
|
1: "GRANTED",
|
|
|
|
2: "DENIED",
|
|
|
|
}
|
|
|
|
|
|
|
|
var Access_value = map[string]int32{
|
|
|
|
"UNKNOWN": 0,
|
|
|
|
"GRANTED": 1,
|
|
|
|
"DENIED": 2,
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x Access) String() string {
|
|
|
|
return proto.EnumName(Access_name, int32(x))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (Access) EnumDescriptor() ([]byte, []int) {
|
2020-04-14 16:25:09 +03:00
|
|
|
return fileDescriptor_21300bfacc51fc2a, []int{0}
|
2020-03-31 10:18:50 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
type ListAccountsRequest struct {
|
2020-07-07 08:30:25 +01:00
|
|
|
Options *Options `protobuf:"bytes,1,opt,name=options,proto3" json:"options,omitempty"`
|
2020-03-31 10:18:50 +01:00
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ListAccountsRequest) Reset() { *m = ListAccountsRequest{} }
|
|
|
|
func (m *ListAccountsRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*ListAccountsRequest) ProtoMessage() {}
|
|
|
|
func (*ListAccountsRequest) Descriptor() ([]byte, []int) {
|
2020-04-14 16:25:09 +03:00
|
|
|
return fileDescriptor_21300bfacc51fc2a, []int{0}
|
2020-03-31 10:18:50 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ListAccountsRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_ListAccountsRequest.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *ListAccountsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_ListAccountsRequest.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *ListAccountsRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_ListAccountsRequest.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *ListAccountsRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_ListAccountsRequest.Size(m)
|
|
|
|
}
|
|
|
|
func (m *ListAccountsRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_ListAccountsRequest.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_ListAccountsRequest proto.InternalMessageInfo
|
|
|
|
|
2020-07-07 08:30:25 +01:00
|
|
|
func (m *ListAccountsRequest) GetOptions() *Options {
|
|
|
|
if m != nil {
|
|
|
|
return m.Options
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-03-31 10:18:50 +01:00
|
|
|
type ListAccountsResponse struct {
|
|
|
|
Accounts []*Account `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ListAccountsResponse) Reset() { *m = ListAccountsResponse{} }
|
|
|
|
func (m *ListAccountsResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*ListAccountsResponse) ProtoMessage() {}
|
|
|
|
func (*ListAccountsResponse) Descriptor() ([]byte, []int) {
|
2020-04-14 16:25:09 +03:00
|
|
|
return fileDescriptor_21300bfacc51fc2a, []int{1}
|
2020-03-31 10:18:50 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ListAccountsResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_ListAccountsResponse.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *ListAccountsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_ListAccountsResponse.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *ListAccountsResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_ListAccountsResponse.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *ListAccountsResponse) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_ListAccountsResponse.Size(m)
|
|
|
|
}
|
|
|
|
func (m *ListAccountsResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_ListAccountsResponse.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_ListAccountsResponse proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *ListAccountsResponse) GetAccounts() []*Account {
|
|
|
|
if m != nil {
|
|
|
|
return m.Accounts
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-03-23 16:19:30 +00:00
|
|
|
type Token struct {
|
2020-04-01 14:27:56 +01:00
|
|
|
AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
|
|
|
|
RefreshToken string `protobuf:"bytes,2,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"`
|
|
|
|
Created int64 `protobuf:"varint,3,opt,name=created,proto3" json:"created,omitempty"`
|
|
|
|
Expiry int64 `protobuf:"varint,4,opt,name=expiry,proto3" json:"expiry,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2020-02-03 08:16:02 +00:00
|
|
|
}
|
|
|
|
|
2020-03-23 16:19:30 +00:00
|
|
|
func (m *Token) Reset() { *m = Token{} }
|
|
|
|
func (m *Token) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*Token) ProtoMessage() {}
|
|
|
|
func (*Token) Descriptor() ([]byte, []int) {
|
2020-04-14 16:25:09 +03:00
|
|
|
return fileDescriptor_21300bfacc51fc2a, []int{2}
|
2020-02-03 08:16:02 +00:00
|
|
|
}
|
|
|
|
|
2020-03-23 16:19:30 +00:00
|
|
|
func (m *Token) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_Token.Unmarshal(m, b)
|
2020-02-03 08:16:02 +00:00
|
|
|
}
|
2020-03-23 16:19:30 +00:00
|
|
|
func (m *Token) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_Token.Marshal(b, m, deterministic)
|
2020-02-03 08:16:02 +00:00
|
|
|
}
|
2020-03-23 16:19:30 +00:00
|
|
|
func (m *Token) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_Token.Merge(m, src)
|
2020-02-03 08:16:02 +00:00
|
|
|
}
|
2020-03-23 16:19:30 +00:00
|
|
|
func (m *Token) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_Token.Size(m)
|
2020-02-03 08:16:02 +00:00
|
|
|
}
|
2020-03-23 16:19:30 +00:00
|
|
|
func (m *Token) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_Token.DiscardUnknown(m)
|
2020-02-03 08:16:02 +00:00
|
|
|
}
|
|
|
|
|
2020-03-23 16:19:30 +00:00
|
|
|
var xxx_messageInfo_Token proto.InternalMessageInfo
|
2020-02-03 08:16:02 +00:00
|
|
|
|
2020-04-01 14:25:00 +01:00
|
|
|
func (m *Token) GetAccessToken() string {
|
2020-02-03 08:16:02 +00:00
|
|
|
if m != nil {
|
2020-04-01 14:25:00 +01:00
|
|
|
return m.AccessToken
|
2020-02-03 08:16:02 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-04-01 14:25:00 +01:00
|
|
|
func (m *Token) GetRefreshToken() string {
|
2020-02-03 08:16:02 +00:00
|
|
|
if m != nil {
|
2020-04-01 14:25:00 +01:00
|
|
|
return m.RefreshToken
|
2020-02-03 08:16:02 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-03-23 16:19:30 +00:00
|
|
|
func (m *Token) GetCreated() int64 {
|
2020-02-03 08:16:02 +00:00
|
|
|
if m != nil {
|
|
|
|
return m.Created
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2020-03-23 16:19:30 +00:00
|
|
|
func (m *Token) GetExpiry() int64 {
|
2020-02-03 08:16:02 +00:00
|
|
|
if m != nil {
|
|
|
|
return m.Expiry
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2020-03-23 16:19:30 +00:00
|
|
|
type Account struct {
|
2020-03-31 19:01:43 +01:00
|
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
|
|
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
|
2020-03-23 16:19:30 +00:00
|
|
|
Metadata map[string]string `protobuf:"bytes,4,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
2020-05-19 18:17:17 +01:00
|
|
|
Scopes []string `protobuf:"bytes,5,rep,name=scopes,proto3" json:"scopes,omitempty"`
|
2020-05-21 16:41:55 +01:00
|
|
|
Issuer string `protobuf:"bytes,6,opt,name=issuer,proto3" json:"issuer,omitempty"`
|
2020-04-01 17:20:02 +01:00
|
|
|
Secret string `protobuf:"bytes,7,opt,name=secret,proto3" json:"secret,omitempty"`
|
2020-03-23 16:19:30 +00:00
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2020-02-03 08:16:02 +00:00
|
|
|
}
|
|
|
|
|
2020-03-23 16:19:30 +00:00
|
|
|
func (m *Account) Reset() { *m = Account{} }
|
|
|
|
func (m *Account) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*Account) ProtoMessage() {}
|
|
|
|
func (*Account) Descriptor() ([]byte, []int) {
|
2020-04-14 16:25:09 +03:00
|
|
|
return fileDescriptor_21300bfacc51fc2a, []int{3}
|
2020-02-03 08:16:02 +00:00
|
|
|
}
|
|
|
|
|
2020-03-23 16:19:30 +00:00
|
|
|
func (m *Account) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_Account.Unmarshal(m, b)
|
2020-02-03 08:16:02 +00:00
|
|
|
}
|
2020-03-23 16:19:30 +00:00
|
|
|
func (m *Account) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_Account.Marshal(b, m, deterministic)
|
2020-02-03 08:16:02 +00:00
|
|
|
}
|
2020-03-23 16:19:30 +00:00
|
|
|
func (m *Account) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_Account.Merge(m, src)
|
2020-02-03 08:16:02 +00:00
|
|
|
}
|
2020-03-23 16:19:30 +00:00
|
|
|
func (m *Account) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_Account.Size(m)
|
2020-02-03 08:16:02 +00:00
|
|
|
}
|
2020-03-23 16:19:30 +00:00
|
|
|
func (m *Account) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_Account.DiscardUnknown(m)
|
2020-02-03 08:16:02 +00:00
|
|
|
}
|
|
|
|
|
2020-03-23 16:19:30 +00:00
|
|
|
var xxx_messageInfo_Account proto.InternalMessageInfo
|
2020-02-03 08:16:02 +00:00
|
|
|
|
2020-03-23 16:19:30 +00:00
|
|
|
func (m *Account) GetId() string {
|
2020-02-03 08:16:02 +00:00
|
|
|
if m != nil {
|
2020-03-23 16:19:30 +00:00
|
|
|
return m.Id
|
2020-02-03 08:16:02 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-03-31 19:01:43 +01:00
|
|
|
func (m *Account) GetType() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Type
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-03-23 16:19:30 +00:00
|
|
|
func (m *Account) GetMetadata() map[string]string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Metadata
|
2020-02-03 08:16:02 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-05-19 18:17:17 +01:00
|
|
|
func (m *Account) GetScopes() []string {
|
2020-03-30 09:51:37 +01:00
|
|
|
if m != nil {
|
2020-05-19 18:17:17 +01:00
|
|
|
return m.Scopes
|
2020-03-30 09:51:37 +01:00
|
|
|
}
|
2020-05-19 18:17:17 +01:00
|
|
|
return nil
|
2020-03-30 09:51:37 +01:00
|
|
|
}
|
|
|
|
|
2020-05-21 16:41:55 +01:00
|
|
|
func (m *Account) GetIssuer() string {
|
2020-03-31 18:17:01 +01:00
|
|
|
if m != nil {
|
2020-05-21 16:41:55 +01:00
|
|
|
return m.Issuer
|
2020-03-31 18:17:01 +01:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-04-01 17:20:02 +01:00
|
|
|
func (m *Account) GetSecret() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Secret
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-02-03 08:16:02 +00:00
|
|
|
type Resource struct {
|
|
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
|
|
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
|
2020-03-23 16:19:30 +00:00
|
|
|
Endpoint string `protobuf:"bytes,3,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
|
2020-02-03 08:16:02 +00:00
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Resource) Reset() { *m = Resource{} }
|
|
|
|
func (m *Resource) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*Resource) ProtoMessage() {}
|
|
|
|
func (*Resource) Descriptor() ([]byte, []int) {
|
2020-04-14 16:25:09 +03:00
|
|
|
return fileDescriptor_21300bfacc51fc2a, []int{4}
|
2020-02-03 08:16:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Resource) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_Resource.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *Resource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_Resource.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *Resource) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_Resource.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *Resource) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_Resource.Size(m)
|
|
|
|
}
|
|
|
|
func (m *Resource) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_Resource.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_Resource proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *Resource) GetName() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Name
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Resource) GetType() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Type
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-03-23 16:19:30 +00:00
|
|
|
func (m *Resource) GetEndpoint() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Endpoint
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-02-03 08:16:02 +00:00
|
|
|
type GenerateRequest struct {
|
2020-03-23 16:19:30 +00:00
|
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
|
|
Metadata map[string]string `protobuf:"bytes,3,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
2020-05-19 18:17:17 +01:00
|
|
|
Scopes []string `protobuf:"bytes,4,rep,name=scopes,proto3" json:"scopes,omitempty"`
|
2020-03-31 18:17:01 +01:00
|
|
|
Secret string `protobuf:"bytes,5,opt,name=secret,proto3" json:"secret,omitempty"`
|
|
|
|
Type string `protobuf:"bytes,6,opt,name=type,proto3" json:"type,omitempty"`
|
2020-03-31 19:01:43 +01:00
|
|
|
Provider string `protobuf:"bytes,7,opt,name=provider,proto3" json:"provider,omitempty"`
|
2020-07-07 08:30:25 +01:00
|
|
|
Options *Options `protobuf:"bytes,8,opt,name=options,proto3" json:"options,omitempty"`
|
2020-03-23 16:19:30 +00:00
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2020-02-03 08:16:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *GenerateRequest) Reset() { *m = GenerateRequest{} }
|
|
|
|
func (m *GenerateRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*GenerateRequest) ProtoMessage() {}
|
|
|
|
func (*GenerateRequest) Descriptor() ([]byte, []int) {
|
2020-04-14 16:25:09 +03:00
|
|
|
return fileDescriptor_21300bfacc51fc2a, []int{5}
|
2020-02-03 08:16:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *GenerateRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_GenerateRequest.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *GenerateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_GenerateRequest.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *GenerateRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_GenerateRequest.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *GenerateRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_GenerateRequest.Size(m)
|
|
|
|
}
|
|
|
|
func (m *GenerateRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_GenerateRequest.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_GenerateRequest proto.InternalMessageInfo
|
|
|
|
|
2020-03-23 16:19:30 +00:00
|
|
|
func (m *GenerateRequest) GetId() string {
|
2020-02-03 08:16:02 +00:00
|
|
|
if m != nil {
|
2020-03-23 16:19:30 +00:00
|
|
|
return m.Id
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *GenerateRequest) GetMetadata() map[string]string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Metadata
|
2020-02-03 08:16:02 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-05-19 18:17:17 +01:00
|
|
|
func (m *GenerateRequest) GetScopes() []string {
|
2020-03-30 09:51:37 +01:00
|
|
|
if m != nil {
|
2020-05-19 18:17:17 +01:00
|
|
|
return m.Scopes
|
2020-03-30 09:51:37 +01:00
|
|
|
}
|
2020-05-19 18:17:17 +01:00
|
|
|
return nil
|
2020-03-30 09:51:37 +01:00
|
|
|
}
|
|
|
|
|
2020-03-31 18:17:01 +01:00
|
|
|
func (m *GenerateRequest) GetSecret() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Secret
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *GenerateRequest) GetType() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Type
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-03-31 19:01:43 +01:00
|
|
|
func (m *GenerateRequest) GetProvider() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Provider
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-07-07 08:30:25 +01:00
|
|
|
func (m *GenerateRequest) GetOptions() *Options {
|
|
|
|
if m != nil {
|
|
|
|
return m.Options
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-02-03 08:16:02 +00:00
|
|
|
type GenerateResponse struct {
|
|
|
|
Account *Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *GenerateResponse) Reset() { *m = GenerateResponse{} }
|
|
|
|
func (m *GenerateResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*GenerateResponse) ProtoMessage() {}
|
|
|
|
func (*GenerateResponse) Descriptor() ([]byte, []int) {
|
2020-04-14 16:25:09 +03:00
|
|
|
return fileDescriptor_21300bfacc51fc2a, []int{6}
|
2020-02-03 08:16:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *GenerateResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_GenerateResponse.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *GenerateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_GenerateResponse.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *GenerateResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_GenerateResponse.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *GenerateResponse) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_GenerateResponse.Size(m)
|
|
|
|
}
|
|
|
|
func (m *GenerateResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_GenerateResponse.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_GenerateResponse proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *GenerateResponse) GetAccount() *Account {
|
|
|
|
if m != nil {
|
|
|
|
return m.Account
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-03-23 16:19:30 +00:00
|
|
|
type GrantRequest struct {
|
2020-05-21 14:56:17 +01:00
|
|
|
Scope string `protobuf:"bytes,1,opt,name=scope,proto3" json:"scope,omitempty"`
|
2020-03-23 16:19:30 +00:00
|
|
|
Resource *Resource `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"`
|
2020-07-07 08:30:25 +01:00
|
|
|
Options *Options `protobuf:"bytes,3,opt,name=options,proto3" json:"options,omitempty"`
|
2020-03-23 16:19:30 +00:00
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *GrantRequest) Reset() { *m = GrantRequest{} }
|
|
|
|
func (m *GrantRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*GrantRequest) ProtoMessage() {}
|
|
|
|
func (*GrantRequest) Descriptor() ([]byte, []int) {
|
2020-04-14 16:25:09 +03:00
|
|
|
return fileDescriptor_21300bfacc51fc2a, []int{7}
|
2020-03-23 16:19:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *GrantRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_GrantRequest.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *GrantRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_GrantRequest.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *GrantRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_GrantRequest.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *GrantRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_GrantRequest.Size(m)
|
|
|
|
}
|
|
|
|
func (m *GrantRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_GrantRequest.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_GrantRequest proto.InternalMessageInfo
|
|
|
|
|
2020-05-21 14:56:17 +01:00
|
|
|
func (m *GrantRequest) GetScope() string {
|
2020-03-23 16:19:30 +00:00
|
|
|
if m != nil {
|
2020-05-21 14:56:17 +01:00
|
|
|
return m.Scope
|
2020-03-23 16:19:30 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *GrantRequest) GetResource() *Resource {
|
|
|
|
if m != nil {
|
|
|
|
return m.Resource
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-07-07 08:30:25 +01:00
|
|
|
func (m *GrantRequest) GetOptions() *Options {
|
|
|
|
if m != nil {
|
|
|
|
return m.Options
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-03-23 16:19:30 +00:00
|
|
|
type GrantResponse struct {
|
2020-02-03 08:16:02 +00:00
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
2020-03-23 16:19:30 +00:00
|
|
|
func (m *GrantResponse) Reset() { *m = GrantResponse{} }
|
|
|
|
func (m *GrantResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*GrantResponse) ProtoMessage() {}
|
|
|
|
func (*GrantResponse) Descriptor() ([]byte, []int) {
|
2020-04-14 16:25:09 +03:00
|
|
|
return fileDescriptor_21300bfacc51fc2a, []int{8}
|
2020-03-23 16:19:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *GrantResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_GrantResponse.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *GrantResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_GrantResponse.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *GrantResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_GrantResponse.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *GrantResponse) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_GrantResponse.Size(m)
|
|
|
|
}
|
|
|
|
func (m *GrantResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_GrantResponse.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_GrantResponse proto.InternalMessageInfo
|
|
|
|
|
2020-02-03 08:16:02 +00:00
|
|
|
type RevokeRequest struct {
|
2020-05-21 14:56:17 +01:00
|
|
|
Scope string `protobuf:"bytes,1,opt,name=scope,proto3" json:"scope,omitempty"`
|
2020-03-23 16:19:30 +00:00
|
|
|
Resource *Resource `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"`
|
2020-07-07 08:30:25 +01:00
|
|
|
Options *Options `protobuf:"bytes,3,opt,name=options,proto3" json:"options,omitempty"`
|
2020-03-23 16:19:30 +00:00
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2020-02-03 08:16:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *RevokeRequest) Reset() { *m = RevokeRequest{} }
|
|
|
|
func (m *RevokeRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*RevokeRequest) ProtoMessage() {}
|
|
|
|
func (*RevokeRequest) Descriptor() ([]byte, []int) {
|
2020-04-14 16:25:09 +03:00
|
|
|
return fileDescriptor_21300bfacc51fc2a, []int{9}
|
2020-02-03 08:16:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *RevokeRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_RevokeRequest.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *RevokeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_RevokeRequest.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *RevokeRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_RevokeRequest.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *RevokeRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_RevokeRequest.Size(m)
|
|
|
|
}
|
|
|
|
func (m *RevokeRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_RevokeRequest.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_RevokeRequest proto.InternalMessageInfo
|
|
|
|
|
2020-05-21 14:56:17 +01:00
|
|
|
func (m *RevokeRequest) GetScope() string {
|
2020-02-03 08:16:02 +00:00
|
|
|
if m != nil {
|
2020-05-21 14:56:17 +01:00
|
|
|
return m.Scope
|
2020-02-03 08:16:02 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-03-23 16:19:30 +00:00
|
|
|
func (m *RevokeRequest) GetResource() *Resource {
|
|
|
|
if m != nil {
|
|
|
|
return m.Resource
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-07-07 08:30:25 +01:00
|
|
|
func (m *RevokeRequest) GetOptions() *Options {
|
|
|
|
if m != nil {
|
|
|
|
return m.Options
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-02-03 08:16:02 +00:00
|
|
|
type RevokeResponse struct {
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *RevokeResponse) Reset() { *m = RevokeResponse{} }
|
|
|
|
func (m *RevokeResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*RevokeResponse) ProtoMessage() {}
|
|
|
|
func (*RevokeResponse) Descriptor() ([]byte, []int) {
|
2020-04-14 16:25:09 +03:00
|
|
|
return fileDescriptor_21300bfacc51fc2a, []int{10}
|
2020-02-03 08:16:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *RevokeResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_RevokeResponse.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *RevokeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_RevokeResponse.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *RevokeResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_RevokeResponse.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *RevokeResponse) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_RevokeResponse.Size(m)
|
|
|
|
}
|
|
|
|
func (m *RevokeResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_RevokeResponse.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_RevokeResponse proto.InternalMessageInfo
|
|
|
|
|
2020-03-23 16:19:30 +00:00
|
|
|
type InspectRequest struct {
|
|
|
|
Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
|
2020-07-07 08:30:25 +01:00
|
|
|
Options *Options `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"`
|
2020-03-23 16:19:30 +00:00
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *InspectRequest) Reset() { *m = InspectRequest{} }
|
|
|
|
func (m *InspectRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*InspectRequest) ProtoMessage() {}
|
|
|
|
func (*InspectRequest) Descriptor() ([]byte, []int) {
|
2020-04-14 16:25:09 +03:00
|
|
|
return fileDescriptor_21300bfacc51fc2a, []int{11}
|
2020-03-23 16:19:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *InspectRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_InspectRequest.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *InspectRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_InspectRequest.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *InspectRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_InspectRequest.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *InspectRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_InspectRequest.Size(m)
|
|
|
|
}
|
|
|
|
func (m *InspectRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_InspectRequest.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_InspectRequest proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *InspectRequest) GetToken() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Token
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-07-07 08:30:25 +01:00
|
|
|
func (m *InspectRequest) GetOptions() *Options {
|
|
|
|
if m != nil {
|
|
|
|
return m.Options
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-03-23 16:19:30 +00:00
|
|
|
type InspectResponse struct {
|
|
|
|
Account *Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *InspectResponse) Reset() { *m = InspectResponse{} }
|
|
|
|
func (m *InspectResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*InspectResponse) ProtoMessage() {}
|
|
|
|
func (*InspectResponse) Descriptor() ([]byte, []int) {
|
2020-04-14 16:25:09 +03:00
|
|
|
return fileDescriptor_21300bfacc51fc2a, []int{12}
|
2020-03-23 16:19:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *InspectResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_InspectResponse.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *InspectResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_InspectResponse.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *InspectResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_InspectResponse.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *InspectResponse) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_InspectResponse.Size(m)
|
|
|
|
}
|
|
|
|
func (m *InspectResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_InspectResponse.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_InspectResponse proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *InspectResponse) GetAccount() *Account {
|
|
|
|
if m != nil {
|
|
|
|
return m.Account
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-03-31 10:06:13 +01:00
|
|
|
type TokenRequest struct {
|
|
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
2020-04-01 14:25:00 +01:00
|
|
|
Secret string `protobuf:"bytes,2,opt,name=secret,proto3" json:"secret,omitempty"`
|
|
|
|
RefreshToken string `protobuf:"bytes,3,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"`
|
|
|
|
TokenExpiry int64 `protobuf:"varint,4,opt,name=token_expiry,json=tokenExpiry,proto3" json:"token_expiry,omitempty"`
|
2020-07-07 08:30:25 +01:00
|
|
|
Options *Options `protobuf:"bytes,5,opt,name=options,proto3" json:"options,omitempty"`
|
2020-03-23 16:19:30 +00:00
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
2020-03-31 10:06:13 +01:00
|
|
|
func (m *TokenRequest) Reset() { *m = TokenRequest{} }
|
|
|
|
func (m *TokenRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*TokenRequest) ProtoMessage() {}
|
|
|
|
func (*TokenRequest) Descriptor() ([]byte, []int) {
|
2020-04-14 16:25:09 +03:00
|
|
|
return fileDescriptor_21300bfacc51fc2a, []int{13}
|
2020-03-23 16:19:30 +00:00
|
|
|
}
|
|
|
|
|
2020-03-31 10:06:13 +01:00
|
|
|
func (m *TokenRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_TokenRequest.Unmarshal(m, b)
|
2020-03-23 16:19:30 +00:00
|
|
|
}
|
2020-03-31 10:06:13 +01:00
|
|
|
func (m *TokenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_TokenRequest.Marshal(b, m, deterministic)
|
2020-03-23 16:19:30 +00:00
|
|
|
}
|
2020-03-31 10:06:13 +01:00
|
|
|
func (m *TokenRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_TokenRequest.Merge(m, src)
|
2020-03-23 16:19:30 +00:00
|
|
|
}
|
2020-03-31 10:06:13 +01:00
|
|
|
func (m *TokenRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_TokenRequest.Size(m)
|
2020-03-23 16:19:30 +00:00
|
|
|
}
|
2020-03-31 10:06:13 +01:00
|
|
|
func (m *TokenRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_TokenRequest.DiscardUnknown(m)
|
2020-03-23 16:19:30 +00:00
|
|
|
}
|
|
|
|
|
2020-03-31 10:06:13 +01:00
|
|
|
var xxx_messageInfo_TokenRequest proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *TokenRequest) GetId() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Id
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
2020-03-23 16:19:30 +00:00
|
|
|
|
2020-04-01 14:25:00 +01:00
|
|
|
func (m *TokenRequest) GetSecret() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Secret
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-03-31 18:17:01 +01:00
|
|
|
func (m *TokenRequest) GetRefreshToken() string {
|
2020-03-23 16:19:30 +00:00
|
|
|
if m != nil {
|
2020-03-31 18:17:01 +01:00
|
|
|
return m.RefreshToken
|
2020-03-23 16:19:30 +00:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-03-31 10:06:13 +01:00
|
|
|
func (m *TokenRequest) GetTokenExpiry() int64 {
|
2020-03-23 16:19:30 +00:00
|
|
|
if m != nil {
|
|
|
|
return m.TokenExpiry
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2020-07-07 08:30:25 +01:00
|
|
|
func (m *TokenRequest) GetOptions() *Options {
|
|
|
|
if m != nil {
|
|
|
|
return m.Options
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-03-31 10:06:13 +01:00
|
|
|
type TokenResponse struct {
|
2020-03-23 16:19:30 +00:00
|
|
|
Token *Token `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
2020-03-31 10:06:13 +01:00
|
|
|
func (m *TokenResponse) Reset() { *m = TokenResponse{} }
|
|
|
|
func (m *TokenResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*TokenResponse) ProtoMessage() {}
|
|
|
|
func (*TokenResponse) Descriptor() ([]byte, []int) {
|
2020-04-14 16:25:09 +03:00
|
|
|
return fileDescriptor_21300bfacc51fc2a, []int{14}
|
2020-03-23 16:19:30 +00:00
|
|
|
}
|
|
|
|
|
2020-03-31 10:06:13 +01:00
|
|
|
func (m *TokenResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_TokenResponse.Unmarshal(m, b)
|
2020-03-23 16:19:30 +00:00
|
|
|
}
|
2020-03-31 10:06:13 +01:00
|
|
|
func (m *TokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_TokenResponse.Marshal(b, m, deterministic)
|
2020-03-23 16:19:30 +00:00
|
|
|
}
|
2020-03-31 10:06:13 +01:00
|
|
|
func (m *TokenResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_TokenResponse.Merge(m, src)
|
2020-03-23 16:19:30 +00:00
|
|
|
}
|
2020-03-31 10:06:13 +01:00
|
|
|
func (m *TokenResponse) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_TokenResponse.Size(m)
|
2020-03-23 16:19:30 +00:00
|
|
|
}
|
2020-03-31 10:06:13 +01:00
|
|
|
func (m *TokenResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_TokenResponse.DiscardUnknown(m)
|
2020-03-23 16:19:30 +00:00
|
|
|
}
|
|
|
|
|
2020-03-31 10:06:13 +01:00
|
|
|
var xxx_messageInfo_TokenResponse proto.InternalMessageInfo
|
2020-03-23 16:19:30 +00:00
|
|
|
|
2020-03-31 10:06:13 +01:00
|
|
|
func (m *TokenResponse) GetToken() *Token {
|
2020-03-23 16:19:30 +00:00
|
|
|
if m != nil {
|
|
|
|
return m.Token
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-03-31 10:18:50 +01:00
|
|
|
type Rule struct {
|
|
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
2020-05-21 14:56:17 +01:00
|
|
|
Scope string `protobuf:"bytes,2,opt,name=scope,proto3" json:"scope,omitempty"`
|
2020-03-31 10:18:50 +01:00
|
|
|
Resource *Resource `protobuf:"bytes,3,opt,name=resource,proto3" json:"resource,omitempty"`
|
|
|
|
Access Access `protobuf:"varint,4,opt,name=access,proto3,enum=go.micro.auth.Access" json:"access,omitempty"`
|
2020-04-15 11:31:19 +01:00
|
|
|
Priority int32 `protobuf:"varint,5,opt,name=priority,proto3" json:"priority,omitempty"`
|
2020-03-31 10:18:50 +01:00
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2020-03-26 13:12:43 +00:00
|
|
|
}
|
|
|
|
|
2020-03-31 10:18:50 +01:00
|
|
|
func (m *Rule) Reset() { *m = Rule{} }
|
|
|
|
func (m *Rule) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*Rule) ProtoMessage() {}
|
|
|
|
func (*Rule) Descriptor() ([]byte, []int) {
|
2020-04-14 16:25:09 +03:00
|
|
|
return fileDescriptor_21300bfacc51fc2a, []int{15}
|
2020-03-30 23:58:32 +03:00
|
|
|
}
|
|
|
|
|
2020-03-31 10:18:50 +01:00
|
|
|
func (m *Rule) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_Rule.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *Rule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_Rule.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *Rule) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_Rule.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *Rule) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_Rule.Size(m)
|
|
|
|
}
|
|
|
|
func (m *Rule) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_Rule.DiscardUnknown(m)
|
|
|
|
}
|
2020-03-30 23:58:32 +03:00
|
|
|
|
2020-03-31 10:18:50 +01:00
|
|
|
var xxx_messageInfo_Rule proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *Rule) GetId() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Id
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-05-21 14:56:17 +01:00
|
|
|
func (m *Rule) GetScope() string {
|
2020-03-31 10:18:50 +01:00
|
|
|
if m != nil {
|
2020-05-21 14:56:17 +01:00
|
|
|
return m.Scope
|
2020-03-31 10:18:50 +01:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
2020-03-30 23:58:32 +03:00
|
|
|
|
2020-03-31 10:18:50 +01:00
|
|
|
func (m *Rule) GetResource() *Resource {
|
|
|
|
if m != nil {
|
|
|
|
return m.Resource
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Rule) GetAccess() Access {
|
|
|
|
if m != nil {
|
|
|
|
return m.Access
|
|
|
|
}
|
|
|
|
return Access_UNKNOWN
|
|
|
|
}
|
|
|
|
|
2020-04-15 11:31:19 +01:00
|
|
|
func (m *Rule) GetPriority() int32 {
|
|
|
|
if m != nil {
|
|
|
|
return m.Priority
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2020-07-07 08:30:25 +01:00
|
|
|
type Options struct {
|
|
|
|
Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Options) Reset() { *m = Options{} }
|
|
|
|
func (m *Options) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*Options) ProtoMessage() {}
|
|
|
|
func (*Options) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_21300bfacc51fc2a, []int{16}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Options) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_Options.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *Options) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_Options.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *Options) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_Options.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *Options) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_Options.Size(m)
|
|
|
|
}
|
|
|
|
func (m *Options) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_Options.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_Options proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *Options) GetNamespace() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Namespace
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-03-31 10:18:50 +01:00
|
|
|
type CreateRequest struct {
|
2020-05-20 11:59:01 +01:00
|
|
|
Rule *Rule `protobuf:"bytes,1,opt,name=rule,proto3" json:"rule,omitempty"`
|
2020-07-07 08:30:25 +01:00
|
|
|
Options *Options `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"`
|
2020-05-20 11:59:01 +01:00
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2020-03-30 23:58:32 +03:00
|
|
|
}
|
|
|
|
|
2020-03-31 10:18:50 +01:00
|
|
|
func (m *CreateRequest) Reset() { *m = CreateRequest{} }
|
|
|
|
func (m *CreateRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*CreateRequest) ProtoMessage() {}
|
|
|
|
func (*CreateRequest) Descriptor() ([]byte, []int) {
|
2020-07-07 08:30:25 +01:00
|
|
|
return fileDescriptor_21300bfacc51fc2a, []int{17}
|
2020-03-30 23:58:32 +03:00
|
|
|
}
|
|
|
|
|
2020-03-31 10:18:50 +01:00
|
|
|
func (m *CreateRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_CreateRequest.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *CreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_CreateRequest.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *CreateRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_CreateRequest.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *CreateRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_CreateRequest.Size(m)
|
2020-03-30 23:58:32 +03:00
|
|
|
}
|
2020-03-31 10:18:50 +01:00
|
|
|
func (m *CreateRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_CreateRequest.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_CreateRequest proto.InternalMessageInfo
|
2020-03-30 23:58:32 +03:00
|
|
|
|
2020-05-20 11:59:01 +01:00
|
|
|
func (m *CreateRequest) GetRule() *Rule {
|
2020-03-31 10:18:50 +01:00
|
|
|
if m != nil {
|
2020-05-20 11:59:01 +01:00
|
|
|
return m.Rule
|
2020-03-30 23:58:32 +03:00
|
|
|
}
|
2020-03-31 10:18:50 +01:00
|
|
|
return nil
|
2020-03-30 23:58:32 +03:00
|
|
|
}
|
|
|
|
|
2020-07-07 08:30:25 +01:00
|
|
|
func (m *CreateRequest) GetOptions() *Options {
|
|
|
|
if m != nil {
|
|
|
|
return m.Options
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-03-31 10:18:50 +01:00
|
|
|
type CreateResponse struct {
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2020-03-30 23:58:32 +03:00
|
|
|
}
|
|
|
|
|
2020-03-31 10:18:50 +01:00
|
|
|
func (m *CreateResponse) Reset() { *m = CreateResponse{} }
|
|
|
|
func (m *CreateResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*CreateResponse) ProtoMessage() {}
|
|
|
|
func (*CreateResponse) Descriptor() ([]byte, []int) {
|
2020-07-07 08:30:25 +01:00
|
|
|
return fileDescriptor_21300bfacc51fc2a, []int{18}
|
2020-03-30 23:58:32 +03:00
|
|
|
}
|
|
|
|
|
2020-03-31 10:18:50 +01:00
|
|
|
func (m *CreateResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_CreateResponse.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *CreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_CreateResponse.Marshal(b, m, deterministic)
|
2020-03-30 23:58:32 +03:00
|
|
|
}
|
2020-03-31 10:18:50 +01:00
|
|
|
func (m *CreateResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_CreateResponse.Merge(m, src)
|
2020-03-30 23:58:32 +03:00
|
|
|
}
|
2020-03-31 10:18:50 +01:00
|
|
|
func (m *CreateResponse) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_CreateResponse.Size(m)
|
2020-03-30 23:58:32 +03:00
|
|
|
}
|
2020-03-31 10:18:50 +01:00
|
|
|
func (m *CreateResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_CreateResponse.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_CreateResponse proto.InternalMessageInfo
|
2020-03-30 23:58:32 +03:00
|
|
|
|
2020-03-31 10:18:50 +01:00
|
|
|
type DeleteRequest struct {
|
2020-05-21 12:07:22 +01:00
|
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
2020-07-07 08:30:25 +01:00
|
|
|
Options *Options `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"`
|
2020-05-20 11:59:01 +01:00
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2020-03-30 23:58:32 +03:00
|
|
|
}
|
|
|
|
|
2020-03-31 10:18:50 +01:00
|
|
|
func (m *DeleteRequest) Reset() { *m = DeleteRequest{} }
|
|
|
|
func (m *DeleteRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*DeleteRequest) ProtoMessage() {}
|
|
|
|
func (*DeleteRequest) Descriptor() ([]byte, []int) {
|
2020-07-07 08:30:25 +01:00
|
|
|
return fileDescriptor_21300bfacc51fc2a, []int{19}
|
2020-03-30 23:58:32 +03:00
|
|
|
}
|
|
|
|
|
2020-03-31 10:18:50 +01:00
|
|
|
func (m *DeleteRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_DeleteRequest.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *DeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_DeleteRequest.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *DeleteRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_DeleteRequest.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *DeleteRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_DeleteRequest.Size(m)
|
|
|
|
}
|
|
|
|
func (m *DeleteRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_DeleteRequest.DiscardUnknown(m)
|
2020-03-30 23:58:32 +03:00
|
|
|
}
|
|
|
|
|
2020-03-31 10:18:50 +01:00
|
|
|
var xxx_messageInfo_DeleteRequest proto.InternalMessageInfo
|
|
|
|
|
2020-05-21 12:07:22 +01:00
|
|
|
func (m *DeleteRequest) GetId() string {
|
2020-03-31 10:18:50 +01:00
|
|
|
if m != nil {
|
2020-05-21 12:07:22 +01:00
|
|
|
return m.Id
|
2020-03-30 23:58:32 +03:00
|
|
|
}
|
2020-05-21 12:07:22 +01:00
|
|
|
return ""
|
2020-03-31 10:18:50 +01:00
|
|
|
}
|
|
|
|
|
2020-07-07 08:30:25 +01:00
|
|
|
func (m *DeleteRequest) GetOptions() *Options {
|
|
|
|
if m != nil {
|
|
|
|
return m.Options
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-03-31 10:18:50 +01:00
|
|
|
type DeleteResponse struct {
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *DeleteResponse) Reset() { *m = DeleteResponse{} }
|
|
|
|
func (m *DeleteResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*DeleteResponse) ProtoMessage() {}
|
|
|
|
func (*DeleteResponse) Descriptor() ([]byte, []int) {
|
2020-07-07 08:30:25 +01:00
|
|
|
return fileDescriptor_21300bfacc51fc2a, []int{20}
|
2020-03-31 10:18:50 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *DeleteResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_DeleteResponse.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *DeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_DeleteResponse.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *DeleteResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_DeleteResponse.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *DeleteResponse) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_DeleteResponse.Size(m)
|
|
|
|
}
|
|
|
|
func (m *DeleteResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_DeleteResponse.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_DeleteResponse proto.InternalMessageInfo
|
|
|
|
|
|
|
|
type ListRequest struct {
|
2020-07-07 08:30:25 +01:00
|
|
|
Options *Options `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"`
|
2020-03-31 10:18:50 +01:00
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ListRequest) Reset() { *m = ListRequest{} }
|
|
|
|
func (m *ListRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*ListRequest) ProtoMessage() {}
|
|
|
|
func (*ListRequest) Descriptor() ([]byte, []int) {
|
2020-07-07 08:30:25 +01:00
|
|
|
return fileDescriptor_21300bfacc51fc2a, []int{21}
|
2020-03-31 10:18:50 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ListRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_ListRequest.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *ListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_ListRequest.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *ListRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_ListRequest.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *ListRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_ListRequest.Size(m)
|
|
|
|
}
|
|
|
|
func (m *ListRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_ListRequest.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_ListRequest proto.InternalMessageInfo
|
|
|
|
|
2020-07-07 08:30:25 +01:00
|
|
|
func (m *ListRequest) GetOptions() *Options {
|
|
|
|
if m != nil {
|
|
|
|
return m.Options
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-03-31 10:18:50 +01:00
|
|
|
type ListResponse struct {
|
|
|
|
Rules []*Rule `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ListResponse) Reset() { *m = ListResponse{} }
|
|
|
|
func (m *ListResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*ListResponse) ProtoMessage() {}
|
|
|
|
func (*ListResponse) Descriptor() ([]byte, []int) {
|
2020-07-07 08:30:25 +01:00
|
|
|
return fileDescriptor_21300bfacc51fc2a, []int{22}
|
2020-03-31 10:18:50 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ListResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_ListResponse.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *ListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_ListResponse.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *ListResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_ListResponse.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *ListResponse) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_ListResponse.Size(m)
|
|
|
|
}
|
|
|
|
func (m *ListResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_ListResponse.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_ListResponse proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *ListResponse) GetRules() []*Rule {
|
|
|
|
if m != nil {
|
|
|
|
return m.Rules
|
2020-03-30 23:58:32 +03:00
|
|
|
}
|
2020-03-31 10:18:50 +01:00
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
proto.RegisterEnum("go.micro.auth.Access", Access_name, Access_value)
|
|
|
|
proto.RegisterType((*ListAccountsRequest)(nil), "go.micro.auth.ListAccountsRequest")
|
|
|
|
proto.RegisterType((*ListAccountsResponse)(nil), "go.micro.auth.ListAccountsResponse")
|
|
|
|
proto.RegisterType((*Token)(nil), "go.micro.auth.Token")
|
|
|
|
proto.RegisterType((*Account)(nil), "go.micro.auth.Account")
|
|
|
|
proto.RegisterMapType((map[string]string)(nil), "go.micro.auth.Account.MetadataEntry")
|
|
|
|
proto.RegisterType((*Resource)(nil), "go.micro.auth.Resource")
|
|
|
|
proto.RegisterType((*GenerateRequest)(nil), "go.micro.auth.GenerateRequest")
|
|
|
|
proto.RegisterMapType((map[string]string)(nil), "go.micro.auth.GenerateRequest.MetadataEntry")
|
|
|
|
proto.RegisterType((*GenerateResponse)(nil), "go.micro.auth.GenerateResponse")
|
|
|
|
proto.RegisterType((*GrantRequest)(nil), "go.micro.auth.GrantRequest")
|
|
|
|
proto.RegisterType((*GrantResponse)(nil), "go.micro.auth.GrantResponse")
|
|
|
|
proto.RegisterType((*RevokeRequest)(nil), "go.micro.auth.RevokeRequest")
|
|
|
|
proto.RegisterType((*RevokeResponse)(nil), "go.micro.auth.RevokeResponse")
|
|
|
|
proto.RegisterType((*InspectRequest)(nil), "go.micro.auth.InspectRequest")
|
|
|
|
proto.RegisterType((*InspectResponse)(nil), "go.micro.auth.InspectResponse")
|
|
|
|
proto.RegisterType((*TokenRequest)(nil), "go.micro.auth.TokenRequest")
|
|
|
|
proto.RegisterType((*TokenResponse)(nil), "go.micro.auth.TokenResponse")
|
|
|
|
proto.RegisterType((*Rule)(nil), "go.micro.auth.Rule")
|
2020-07-07 08:30:25 +01:00
|
|
|
proto.RegisterType((*Options)(nil), "go.micro.auth.Options")
|
2020-03-31 10:18:50 +01:00
|
|
|
proto.RegisterType((*CreateRequest)(nil), "go.micro.auth.CreateRequest")
|
|
|
|
proto.RegisterType((*CreateResponse)(nil), "go.micro.auth.CreateResponse")
|
|
|
|
proto.RegisterType((*DeleteRequest)(nil), "go.micro.auth.DeleteRequest")
|
|
|
|
proto.RegisterType((*DeleteResponse)(nil), "go.micro.auth.DeleteResponse")
|
|
|
|
proto.RegisterType((*ListRequest)(nil), "go.micro.auth.ListRequest")
|
|
|
|
proto.RegisterType((*ListResponse)(nil), "go.micro.auth.ListResponse")
|
2020-03-30 23:58:32 +03:00
|
|
|
}
|
|
|
|
|
2020-04-14 16:25:09 +03:00
|
|
|
func init() { proto.RegisterFile("auth/service/proto/auth.proto", fileDescriptor_21300bfacc51fc2a) }
|
|
|
|
|
|
|
|
var fileDescriptor_21300bfacc51fc2a = []byte{
|
2020-07-07 08:30:25 +01:00
|
|
|
// 944 bytes of a gzipped FileDescriptorProto
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x56, 0x4f, 0x8f, 0xdb, 0x44,
|
|
|
|
0x14, 0x5f, 0xdb, 0xb1, 0x93, 0x7d, 0x49, 0x76, 0xa3, 0xe9, 0x52, 0xac, 0xb4, 0x5b, 0xb6, 0x2e,
|
|
|
|
0x52, 0x97, 0x0a, 0xb2, 0x55, 0x7a, 0x01, 0x7a, 0x80, 0x55, 0x13, 0x85, 0x16, 0x9a, 0xaa, 0x56,
|
|
|
|
0x11, 0x5c, 0x50, 0x65, 0x9c, 0x07, 0x6b, 0x36, 0x6b, 0x9b, 0x99, 0xf1, 0x8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, 0x50, 0xad, 0x1c, 0x77, 0xc8,
|
|
|
|
0xa9, 0xa2, 0x3b, 0x6c, 0xa0, 0xa2, 0x41, 0x6e, 0x35, 0xae, 0x69, 0x88, 0xef, 0x1d, 0xf1, 0xac,
|
|
|
|
0x7e, 0xf4, 0x5f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xc8, 0x52, 0x98, 0x4d, 0x77, 0x0b, 0x00, 0x00,
|
2020-04-14 16:25:09 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
|
|
var _ context.Context
|
|
|
|
var _ grpc.ClientConn
|
|
|
|
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
|
|
// is compatible with the grpc package it is being compiled against.
|
|
|
|
const _ = grpc.SupportPackageIsVersion4
|
|
|
|
|
|
|
|
// AuthClient is the client API for Auth service.
|
|
|
|
//
|
|
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
|
|
type AuthClient interface {
|
|
|
|
Generate(ctx context.Context, in *GenerateRequest, opts ...grpc.CallOption) (*GenerateResponse, error)
|
|
|
|
Inspect(ctx context.Context, in *InspectRequest, opts ...grpc.CallOption) (*InspectResponse, error)
|
|
|
|
Token(ctx context.Context, in *TokenRequest, opts ...grpc.CallOption) (*TokenResponse, error)
|
|
|
|
}
|
|
|
|
|
|
|
|
type authClient struct {
|
|
|
|
cc *grpc.ClientConn
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewAuthClient(cc *grpc.ClientConn) AuthClient {
|
|
|
|
return &authClient{cc}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *authClient) Generate(ctx context.Context, in *GenerateRequest, opts ...grpc.CallOption) (*GenerateResponse, error) {
|
|
|
|
out := new(GenerateResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/go.micro.auth.Auth/Generate", in, out, opts...)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *authClient) Inspect(ctx context.Context, in *InspectRequest, opts ...grpc.CallOption) (*InspectResponse, error) {
|
|
|
|
out := new(InspectResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/go.micro.auth.Auth/Inspect", in, out, opts...)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *authClient) Token(ctx context.Context, in *TokenRequest, opts ...grpc.CallOption) (*TokenResponse, error) {
|
|
|
|
out := new(TokenResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/go.micro.auth.Auth/Token", in, out, opts...)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// AuthServer is the server API for Auth service.
|
|
|
|
type AuthServer interface {
|
|
|
|
Generate(context.Context, *GenerateRequest) (*GenerateResponse, error)
|
|
|
|
Inspect(context.Context, *InspectRequest) (*InspectResponse, error)
|
|
|
|
Token(context.Context, *TokenRequest) (*TokenResponse, error)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnimplementedAuthServer can be embedded to have forward compatible implementations.
|
|
|
|
type UnimplementedAuthServer struct {
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*UnimplementedAuthServer) Generate(ctx context.Context, req *GenerateRequest) (*GenerateResponse, error) {
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method Generate not implemented")
|
|
|
|
}
|
|
|
|
func (*UnimplementedAuthServer) Inspect(ctx context.Context, req *InspectRequest) (*InspectResponse, error) {
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method Inspect not implemented")
|
|
|
|
}
|
|
|
|
func (*UnimplementedAuthServer) Token(ctx context.Context, req *TokenRequest) (*TokenResponse, error) {
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method Token not implemented")
|
|
|
|
}
|
|
|
|
|
|
|
|
func RegisterAuthServer(s *grpc.Server, srv AuthServer) {
|
|
|
|
s.RegisterService(&_Auth_serviceDesc, srv)
|
|
|
|
}
|
|
|
|
|
|
|
|
func _Auth_Generate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(GenerateRequest)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(AuthServer).Generate(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/go.micro.auth.Auth/Generate",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(AuthServer).Generate(ctx, req.(*GenerateRequest))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
|
|
|
func _Auth_Inspect_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(InspectRequest)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(AuthServer).Inspect(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/go.micro.auth.Auth/Inspect",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(AuthServer).Inspect(ctx, req.(*InspectRequest))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
|
|
|
func _Auth_Token_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(TokenRequest)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(AuthServer).Token(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/go.micro.auth.Auth/Token",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(AuthServer).Token(ctx, req.(*TokenRequest))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
|
|
|
var _Auth_serviceDesc = grpc.ServiceDesc{
|
|
|
|
ServiceName: "go.micro.auth.Auth",
|
|
|
|
HandlerType: (*AuthServer)(nil),
|
|
|
|
Methods: []grpc.MethodDesc{
|
|
|
|
{
|
|
|
|
MethodName: "Generate",
|
|
|
|
Handler: _Auth_Generate_Handler,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
MethodName: "Inspect",
|
|
|
|
Handler: _Auth_Inspect_Handler,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
MethodName: "Token",
|
|
|
|
Handler: _Auth_Token_Handler,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
Streams: []grpc.StreamDesc{},
|
|
|
|
Metadata: "auth/service/proto/auth.proto",
|
|
|
|
}
|
|
|
|
|
|
|
|
// AccountsClient is the client API for Accounts service.
|
|
|
|
//
|
|
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
|
|
type AccountsClient interface {
|
|
|
|
List(ctx context.Context, in *ListAccountsRequest, opts ...grpc.CallOption) (*ListAccountsResponse, error)
|
|
|
|
}
|
|
|
|
|
|
|
|
type accountsClient struct {
|
|
|
|
cc *grpc.ClientConn
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewAccountsClient(cc *grpc.ClientConn) AccountsClient {
|
|
|
|
return &accountsClient{cc}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *accountsClient) List(ctx context.Context, in *ListAccountsRequest, opts ...grpc.CallOption) (*ListAccountsResponse, error) {
|
|
|
|
out := new(ListAccountsResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/go.micro.auth.Accounts/List", in, out, opts...)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// AccountsServer is the server API for Accounts service.
|
|
|
|
type AccountsServer interface {
|
|
|
|
List(context.Context, *ListAccountsRequest) (*ListAccountsResponse, error)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnimplementedAccountsServer can be embedded to have forward compatible implementations.
|
|
|
|
type UnimplementedAccountsServer struct {
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*UnimplementedAccountsServer) List(ctx context.Context, req *ListAccountsRequest) (*ListAccountsResponse, error) {
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method List not implemented")
|
|
|
|
}
|
|
|
|
|
|
|
|
func RegisterAccountsServer(s *grpc.Server, srv AccountsServer) {
|
|
|
|
s.RegisterService(&_Accounts_serviceDesc, srv)
|
|
|
|
}
|
|
|
|
|
|
|
|
func _Accounts_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(ListAccountsRequest)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(AccountsServer).List(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/go.micro.auth.Accounts/List",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(AccountsServer).List(ctx, req.(*ListAccountsRequest))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
|
|
|
var _Accounts_serviceDesc = grpc.ServiceDesc{
|
|
|
|
ServiceName: "go.micro.auth.Accounts",
|
|
|
|
HandlerType: (*AccountsServer)(nil),
|
|
|
|
Methods: []grpc.MethodDesc{
|
|
|
|
{
|
|
|
|
MethodName: "List",
|
|
|
|
Handler: _Accounts_List_Handler,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
Streams: []grpc.StreamDesc{},
|
|
|
|
Metadata: "auth/service/proto/auth.proto",
|
|
|
|
}
|
|
|
|
|
|
|
|
// RulesClient is the client API for Rules service.
|
|
|
|
//
|
|
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
|
|
type RulesClient interface {
|
|
|
|
Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error)
|
|
|
|
Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error)
|
|
|
|
List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error)
|
|
|
|
}
|
|
|
|
|
|
|
|
type rulesClient struct {
|
|
|
|
cc *grpc.ClientConn
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewRulesClient(cc *grpc.ClientConn) RulesClient {
|
|
|
|
return &rulesClient{cc}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *rulesClient) Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) {
|
|
|
|
out := new(CreateResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/go.micro.auth.Rules/Create", in, out, opts...)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *rulesClient) Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error) {
|
|
|
|
out := new(DeleteResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/go.micro.auth.Rules/Delete", in, out, opts...)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *rulesClient) List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error) {
|
|
|
|
out := new(ListResponse)
|
|
|
|
err := c.cc.Invoke(ctx, "/go.micro.auth.Rules/List", in, out, opts...)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// RulesServer is the server API for Rules service.
|
|
|
|
type RulesServer interface {
|
|
|
|
Create(context.Context, *CreateRequest) (*CreateResponse, error)
|
|
|
|
Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
|
|
|
|
List(context.Context, *ListRequest) (*ListResponse, error)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnimplementedRulesServer can be embedded to have forward compatible implementations.
|
|
|
|
type UnimplementedRulesServer struct {
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*UnimplementedRulesServer) Create(ctx context.Context, req *CreateRequest) (*CreateResponse, error) {
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method Create not implemented")
|
|
|
|
}
|
|
|
|
func (*UnimplementedRulesServer) Delete(ctx context.Context, req *DeleteRequest) (*DeleteResponse, error) {
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented")
|
|
|
|
}
|
|
|
|
func (*UnimplementedRulesServer) List(ctx context.Context, req *ListRequest) (*ListResponse, error) {
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method List not implemented")
|
|
|
|
}
|
|
|
|
|
|
|
|
func RegisterRulesServer(s *grpc.Server, srv RulesServer) {
|
|
|
|
s.RegisterService(&_Rules_serviceDesc, srv)
|
|
|
|
}
|
|
|
|
|
|
|
|
func _Rules_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(CreateRequest)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(RulesServer).Create(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/go.micro.auth.Rules/Create",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(RulesServer).Create(ctx, req.(*CreateRequest))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
|
|
|
func _Rules_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(DeleteRequest)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(RulesServer).Delete(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/go.micro.auth.Rules/Delete",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(RulesServer).Delete(ctx, req.(*DeleteRequest))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
|
|
|
func _Rules_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(ListRequest)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(RulesServer).List(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/go.micro.auth.Rules/List",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(RulesServer).List(ctx, req.(*ListRequest))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
|
|
|
var _Rules_serviceDesc = grpc.ServiceDesc{
|
|
|
|
ServiceName: "go.micro.auth.Rules",
|
|
|
|
HandlerType: (*RulesServer)(nil),
|
|
|
|
Methods: []grpc.MethodDesc{
|
|
|
|
{
|
|
|
|
MethodName: "Create",
|
|
|
|
Handler: _Rules_Create_Handler,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
MethodName: "Delete",
|
|
|
|
Handler: _Rules_Delete_Handler,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
MethodName: "List",
|
|
|
|
Handler: _Rules_List_Handler,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
Streams: []grpc.StreamDesc{},
|
|
|
|
Metadata: "auth/service/proto/auth.proto",
|
2020-02-03 08:16:02 +00:00
|
|
|
}
|