2020-02-03 10:16:02 +02:00
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
2020-03-31 11:18:50 +02:00
|
|
|
// source: github.com/micro/go-micro/auth/service/proto/auth.proto
|
2020-02-03 10:16:02 +02:00
|
|
|
|
2020-03-31 11:18:50 +02:00
|
|
|
package go_micro_auth
|
2020-02-03 10:16:02 +02:00
|
|
|
|
|
|
|
import (
|
|
|
|
fmt "fmt"
|
|
|
|
proto "github.com/golang/protobuf/proto"
|
|
|
|
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 11:18:50 +02: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) {
|
|
|
|
return fileDescriptor_11312eec02fd5712, []int{0}
|
|
|
|
}
|
|
|
|
|
|
|
|
type ListAccountsRequest struct {
|
|
|
|
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) {
|
|
|
|
return fileDescriptor_11312eec02fd5712, []int{0}
|
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
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) {
|
|
|
|
return fileDescriptor_11312eec02fd5712, []int{1}
|
|
|
|
}
|
|
|
|
|
|
|
|
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 18:19:30 +02:00
|
|
|
type Token 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"`
|
2020-02-03 10:16:02 +02:00
|
|
|
Created int64 `protobuf:"varint,3,opt,name=created,proto3" json:"created,omitempty"`
|
|
|
|
Expiry int64 `protobuf:"varint,4,opt,name=expiry,proto3" json:"expiry,omitempty"`
|
2020-03-23 18:19:30 +02:00
|
|
|
Subject string `protobuf:"bytes,5,opt,name=subject,proto3" json:"subject,omitempty"`
|
|
|
|
Roles []string `protobuf:"bytes,6,rep,name=roles,proto3" json:"roles,omitempty"`
|
|
|
|
Metadata map[string]string `protobuf:"bytes,7,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
2020-03-30 10:51:37 +02:00
|
|
|
Namespace string `protobuf:"bytes,8,opt,name=namespace,proto3" json:"namespace,omitempty"`
|
2020-02-03 10:16:02 +02:00
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
2020-03-23 18:19:30 +02: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-03-31 11:18:50 +02:00
|
|
|
return fileDescriptor_11312eec02fd5712, []int{2}
|
2020-02-03 10:16:02 +02:00
|
|
|
}
|
|
|
|
|
2020-03-23 18:19:30 +02:00
|
|
|
func (m *Token) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_Token.Unmarshal(m, b)
|
2020-02-03 10:16:02 +02:00
|
|
|
}
|
2020-03-23 18:19:30 +02:00
|
|
|
func (m *Token) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_Token.Marshal(b, m, deterministic)
|
2020-02-03 10:16:02 +02:00
|
|
|
}
|
2020-03-23 18:19:30 +02:00
|
|
|
func (m *Token) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_Token.Merge(m, src)
|
2020-02-03 10:16:02 +02:00
|
|
|
}
|
2020-03-23 18:19:30 +02:00
|
|
|
func (m *Token) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_Token.Size(m)
|
2020-02-03 10:16:02 +02:00
|
|
|
}
|
2020-03-23 18:19:30 +02:00
|
|
|
func (m *Token) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_Token.DiscardUnknown(m)
|
2020-02-03 10:16:02 +02:00
|
|
|
}
|
|
|
|
|
2020-03-23 18:19:30 +02:00
|
|
|
var xxx_messageInfo_Token proto.InternalMessageInfo
|
2020-02-03 10:16:02 +02:00
|
|
|
|
2020-03-23 18:19:30 +02:00
|
|
|
func (m *Token) GetToken() string {
|
2020-02-03 10:16:02 +02:00
|
|
|
if m != nil {
|
2020-03-23 18:19:30 +02:00
|
|
|
return m.Token
|
2020-02-03 10:16:02 +02:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-03-23 18:19:30 +02:00
|
|
|
func (m *Token) GetType() string {
|
2020-02-03 10:16:02 +02:00
|
|
|
if m != nil {
|
2020-03-23 18:19:30 +02:00
|
|
|
return m.Type
|
2020-02-03 10:16:02 +02:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-03-23 18:19:30 +02:00
|
|
|
func (m *Token) GetCreated() int64 {
|
2020-02-03 10:16:02 +02:00
|
|
|
if m != nil {
|
|
|
|
return m.Created
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2020-03-23 18:19:30 +02:00
|
|
|
func (m *Token) GetExpiry() int64 {
|
2020-02-03 10:16:02 +02:00
|
|
|
if m != nil {
|
|
|
|
return m.Expiry
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2020-03-23 18:19:30 +02:00
|
|
|
func (m *Token) GetSubject() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Subject
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Token) GetRoles() []string {
|
2020-02-03 10:16:02 +02:00
|
|
|
if m != nil {
|
|
|
|
return m.Roles
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-03-23 18:19:30 +02:00
|
|
|
func (m *Token) GetMetadata() map[string]string {
|
2020-02-03 10:16:02 +02:00
|
|
|
if m != nil {
|
|
|
|
return m.Metadata
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-03-30 10:51:37 +02:00
|
|
|
func (m *Token) GetNamespace() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Namespace
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-03-23 18:19:30 +02:00
|
|
|
type Account struct {
|
2020-03-31 19:17:01 +02:00
|
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
|
|
// string secret = 2;
|
2020-03-23 18:19:30 +02:00
|
|
|
Roles []string `protobuf:"bytes,3,rep,name=roles,proto3" json:"roles,omitempty"`
|
|
|
|
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-03-30 10:51:37 +02:00
|
|
|
Namespace string `protobuf:"bytes,5,opt,name=namespace,proto3" json:"namespace,omitempty"`
|
2020-03-31 19:17:01 +02:00
|
|
|
Type string `protobuf:"bytes,6,opt,name=type,proto3" json:"type,omitempty"`
|
|
|
|
RefreshToken string `protobuf:"bytes,7,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"`
|
2020-03-23 18:19:30 +02:00
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2020-02-03 10:16:02 +02:00
|
|
|
}
|
|
|
|
|
2020-03-23 18:19:30 +02: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-03-31 11:18:50 +02:00
|
|
|
return fileDescriptor_11312eec02fd5712, []int{3}
|
2020-02-03 10:16:02 +02:00
|
|
|
}
|
|
|
|
|
2020-03-23 18:19:30 +02:00
|
|
|
func (m *Account) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_Account.Unmarshal(m, b)
|
2020-02-03 10:16:02 +02:00
|
|
|
}
|
2020-03-23 18:19:30 +02:00
|
|
|
func (m *Account) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_Account.Marshal(b, m, deterministic)
|
2020-02-03 10:16:02 +02:00
|
|
|
}
|
2020-03-23 18:19:30 +02:00
|
|
|
func (m *Account) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_Account.Merge(m, src)
|
2020-02-03 10:16:02 +02:00
|
|
|
}
|
2020-03-23 18:19:30 +02:00
|
|
|
func (m *Account) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_Account.Size(m)
|
2020-02-03 10:16:02 +02:00
|
|
|
}
|
2020-03-23 18:19:30 +02:00
|
|
|
func (m *Account) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_Account.DiscardUnknown(m)
|
2020-02-03 10:16:02 +02:00
|
|
|
}
|
|
|
|
|
2020-03-23 18:19:30 +02:00
|
|
|
var xxx_messageInfo_Account proto.InternalMessageInfo
|
2020-02-03 10:16:02 +02:00
|
|
|
|
2020-03-23 18:19:30 +02:00
|
|
|
func (m *Account) GetId() string {
|
2020-02-03 10:16:02 +02:00
|
|
|
if m != nil {
|
2020-03-23 18:19:30 +02:00
|
|
|
return m.Id
|
2020-02-03 10:16:02 +02:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-03-23 18:19:30 +02:00
|
|
|
func (m *Account) GetRoles() []string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Roles
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Account) GetMetadata() map[string]string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Metadata
|
2020-02-03 10:16:02 +02:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-03-30 10:51:37 +02:00
|
|
|
func (m *Account) GetNamespace() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Namespace
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-03-31 19:17:01 +02:00
|
|
|
func (m *Account) GetType() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Type
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Account) GetRefreshToken() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.RefreshToken
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-02-03 10:16:02 +02: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 18:19:30 +02:00
|
|
|
Endpoint string `protobuf:"bytes,3,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
|
2020-02-03 10:16:02 +02: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-03-31 11:18:50 +02:00
|
|
|
return fileDescriptor_11312eec02fd5712, []int{4}
|
2020-02-03 10:16:02 +02: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 18:19:30 +02:00
|
|
|
func (m *Resource) GetEndpoint() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Endpoint
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-03-31 19:17:01 +02:00
|
|
|
type LoginRequest struct {
|
|
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
|
|
Secret string `protobuf:"bytes,2,opt,name=secret,proto3" json:"secret,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *LoginRequest) Reset() { *m = LoginRequest{} }
|
|
|
|
func (m *LoginRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*LoginRequest) ProtoMessage() {}
|
|
|
|
func (*LoginRequest) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_11312eec02fd5712, []int{5}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *LoginRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_LoginRequest.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *LoginRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_LoginRequest.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *LoginRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_LoginRequest.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *LoginRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_LoginRequest.Size(m)
|
|
|
|
}
|
|
|
|
func (m *LoginRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_LoginRequest.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_LoginRequest proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *LoginRequest) GetId() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Id
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *LoginRequest) GetSecret() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Secret
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
type LoginResponse 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 *LoginResponse) Reset() { *m = LoginResponse{} }
|
|
|
|
func (m *LoginResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*LoginResponse) ProtoMessage() {}
|
|
|
|
func (*LoginResponse) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_11312eec02fd5712, []int{6}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *LoginResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_LoginResponse.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *LoginResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_LoginResponse.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *LoginResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_LoginResponse.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *LoginResponse) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_LoginResponse.Size(m)
|
|
|
|
}
|
|
|
|
func (m *LoginResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_LoginResponse.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_LoginResponse proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *LoginResponse) GetAccount() *Account {
|
|
|
|
if m != nil {
|
|
|
|
return m.Account
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-02-03 10:16:02 +02:00
|
|
|
type GenerateRequest struct {
|
2020-03-23 18:19:30 +02:00
|
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
|
|
Roles []string `protobuf:"bytes,2,rep,name=roles,proto3" json:"roles,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-03-31 11:06:13 +02:00
|
|
|
Namespace string `protobuf:"bytes,4,opt,name=namespace,proto3" json:"namespace,omitempty"`
|
2020-03-31 19:17:01 +02: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-23 18:19:30 +02:00
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2020-02-03 10:16:02 +02: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-03-31 19:17:01 +02:00
|
|
|
return fileDescriptor_11312eec02fd5712, []int{7}
|
2020-02-03 10:16:02 +02: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 18:19:30 +02:00
|
|
|
func (m *GenerateRequest) GetId() string {
|
2020-02-03 10:16:02 +02:00
|
|
|
if m != nil {
|
2020-03-23 18:19:30 +02:00
|
|
|
return m.Id
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *GenerateRequest) GetRoles() []string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Roles
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *GenerateRequest) GetMetadata() map[string]string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Metadata
|
2020-02-03 10:16:02 +02:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-03-30 10:51:37 +02:00
|
|
|
func (m *GenerateRequest) GetNamespace() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Namespace
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-03-31 19:17:01 +02: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-02-03 10:16:02 +02: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-03-31 19:17:01 +02:00
|
|
|
return fileDescriptor_11312eec02fd5712, []int{8}
|
2020-02-03 10:16:02 +02: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 18:19:30 +02:00
|
|
|
type GrantRequest struct {
|
|
|
|
Role string `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"`
|
|
|
|
Resource *Resource `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"`
|
|
|
|
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-03-31 19:17:01 +02:00
|
|
|
return fileDescriptor_11312eec02fd5712, []int{9}
|
2020-03-23 18:19:30 +02: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
|
|
|
|
|
|
|
|
func (m *GrantRequest) GetRole() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Role
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *GrantRequest) GetResource() *Resource {
|
|
|
|
if m != nil {
|
|
|
|
return m.Resource
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type GrantResponse struct {
|
2020-02-03 10:16:02 +02:00
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
2020-03-23 18:19:30 +02: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-03-31 19:17:01 +02:00
|
|
|
return fileDescriptor_11312eec02fd5712, []int{10}
|
2020-03-23 18:19:30 +02: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 10:16:02 +02:00
|
|
|
type RevokeRequest struct {
|
2020-03-23 18:19:30 +02:00
|
|
|
Role string `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"`
|
|
|
|
Resource *Resource `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2020-02-03 10:16:02 +02: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-03-31 19:17:01 +02:00
|
|
|
return fileDescriptor_11312eec02fd5712, []int{11}
|
2020-02-03 10:16:02 +02: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-03-23 18:19:30 +02:00
|
|
|
func (m *RevokeRequest) GetRole() string {
|
2020-02-03 10:16:02 +02:00
|
|
|
if m != nil {
|
2020-03-23 18:19:30 +02:00
|
|
|
return m.Role
|
2020-02-03 10:16:02 +02:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-03-23 18:19:30 +02:00
|
|
|
func (m *RevokeRequest) GetResource() *Resource {
|
|
|
|
if m != nil {
|
|
|
|
return m.Resource
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-02-03 10:16:02 +02: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-03-31 19:17:01 +02:00
|
|
|
return fileDescriptor_11312eec02fd5712, []int{12}
|
2020-02-03 10:16:02 +02: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 18:19:30 +02:00
|
|
|
type InspectRequest struct {
|
|
|
|
Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
|
|
|
|
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-03-31 19:17:01 +02:00
|
|
|
return fileDescriptor_11312eec02fd5712, []int{13}
|
2020-03-23 18:19:30 +02: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 ""
|
|
|
|
}
|
|
|
|
|
|
|
|
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-03-31 19:17:01 +02:00
|
|
|
return fileDescriptor_11312eec02fd5712, []int{14}
|
2020-03-23 18:19:30 +02: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 11:06:13 +02:00
|
|
|
type TokenRequest struct {
|
|
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
2020-03-31 19:17:01 +02:00
|
|
|
RefreshToken string `protobuf:"bytes,2,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"`
|
2020-03-31 11:06:13 +02:00
|
|
|
TokenExpiry int64 `protobuf:"varint,3,opt,name=token_expiry,json=tokenExpiry,proto3" json:"token_expiry,omitempty"`
|
2020-03-23 18:19:30 +02:00
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
2020-03-31 11:06:13 +02: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-03-31 19:17:01 +02:00
|
|
|
return fileDescriptor_11312eec02fd5712, []int{15}
|
2020-03-23 18:19:30 +02:00
|
|
|
}
|
|
|
|
|
2020-03-31 11:06:13 +02:00
|
|
|
func (m *TokenRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_TokenRequest.Unmarshal(m, b)
|
2020-03-23 18:19:30 +02:00
|
|
|
}
|
2020-03-31 11:06:13 +02:00
|
|
|
func (m *TokenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_TokenRequest.Marshal(b, m, deterministic)
|
2020-03-23 18:19:30 +02:00
|
|
|
}
|
2020-03-31 11:06:13 +02:00
|
|
|
func (m *TokenRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_TokenRequest.Merge(m, src)
|
2020-03-23 18:19:30 +02:00
|
|
|
}
|
2020-03-31 11:06:13 +02:00
|
|
|
func (m *TokenRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_TokenRequest.Size(m)
|
2020-03-23 18:19:30 +02:00
|
|
|
}
|
2020-03-31 11:06:13 +02:00
|
|
|
func (m *TokenRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_TokenRequest.DiscardUnknown(m)
|
2020-03-23 18:19:30 +02:00
|
|
|
}
|
|
|
|
|
2020-03-31 11:06:13 +02:00
|
|
|
var xxx_messageInfo_TokenRequest proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *TokenRequest) GetId() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Id
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
2020-03-23 18:19:30 +02:00
|
|
|
|
2020-03-31 19:17:01 +02:00
|
|
|
func (m *TokenRequest) GetRefreshToken() string {
|
2020-03-23 18:19:30 +02:00
|
|
|
if m != nil {
|
2020-03-31 19:17:01 +02:00
|
|
|
return m.RefreshToken
|
2020-03-23 18:19:30 +02:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2020-03-31 11:06:13 +02:00
|
|
|
func (m *TokenRequest) GetTokenExpiry() int64 {
|
2020-03-23 18:19:30 +02:00
|
|
|
if m != nil {
|
|
|
|
return m.TokenExpiry
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2020-03-31 11:06:13 +02:00
|
|
|
type TokenResponse struct {
|
2020-03-23 18:19:30 +02: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 11:06:13 +02: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-03-31 19:17:01 +02:00
|
|
|
return fileDescriptor_11312eec02fd5712, []int{16}
|
2020-03-23 18:19:30 +02:00
|
|
|
}
|
|
|
|
|
2020-03-31 11:06:13 +02:00
|
|
|
func (m *TokenResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_TokenResponse.Unmarshal(m, b)
|
2020-03-23 18:19:30 +02:00
|
|
|
}
|
2020-03-31 11:06:13 +02:00
|
|
|
func (m *TokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_TokenResponse.Marshal(b, m, deterministic)
|
2020-03-23 18:19:30 +02:00
|
|
|
}
|
2020-03-31 11:06:13 +02:00
|
|
|
func (m *TokenResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_TokenResponse.Merge(m, src)
|
2020-03-23 18:19:30 +02:00
|
|
|
}
|
2020-03-31 11:06:13 +02:00
|
|
|
func (m *TokenResponse) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_TokenResponse.Size(m)
|
2020-03-23 18:19:30 +02:00
|
|
|
}
|
2020-03-31 11:06:13 +02:00
|
|
|
func (m *TokenResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_TokenResponse.DiscardUnknown(m)
|
2020-03-23 18:19:30 +02:00
|
|
|
}
|
|
|
|
|
2020-03-31 11:06:13 +02:00
|
|
|
var xxx_messageInfo_TokenResponse proto.InternalMessageInfo
|
2020-03-23 18:19:30 +02:00
|
|
|
|
2020-03-31 11:06:13 +02:00
|
|
|
func (m *TokenResponse) GetToken() *Token {
|
2020-03-23 18:19:30 +02:00
|
|
|
if m != nil {
|
|
|
|
return m.Token
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-03-31 11:18:50 +02:00
|
|
|
type Rule struct {
|
|
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
|
|
Role string `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"`
|
|
|
|
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"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2020-03-26 15:12:43 +02:00
|
|
|
}
|
|
|
|
|
2020-03-31 11:18:50 +02: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-03-31 19:17:01 +02:00
|
|
|
return fileDescriptor_11312eec02fd5712, []int{17}
|
2020-03-30 22:58:32 +02:00
|
|
|
}
|
|
|
|
|
2020-03-31 11:18:50 +02: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 22:58:32 +02:00
|
|
|
|
2020-03-31 11:18:50 +02:00
|
|
|
var xxx_messageInfo_Rule proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *Rule) GetId() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Id
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Rule) GetRole() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Role
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
2020-03-30 22:58:32 +02:00
|
|
|
|
2020-03-31 11:18:50 +02: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
|
|
|
|
}
|
|
|
|
|
|
|
|
type CreateRequest struct {
|
|
|
|
Role string `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"`
|
|
|
|
Resource *Resource `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"`
|
|
|
|
Access Access `protobuf:"varint,3,opt,name=access,proto3,enum=go.micro.auth.Access" json:"access,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2020-03-30 22:58:32 +02:00
|
|
|
}
|
|
|
|
|
2020-03-31 11:18:50 +02: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-03-31 19:17:01 +02:00
|
|
|
return fileDescriptor_11312eec02fd5712, []int{18}
|
2020-03-30 22:58:32 +02:00
|
|
|
}
|
|
|
|
|
2020-03-31 11:18:50 +02: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 22:58:32 +02:00
|
|
|
}
|
2020-03-31 11:18:50 +02:00
|
|
|
func (m *CreateRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_CreateRequest.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_CreateRequest proto.InternalMessageInfo
|
2020-03-30 22:58:32 +02:00
|
|
|
|
2020-03-31 11:18:50 +02:00
|
|
|
func (m *CreateRequest) GetRole() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Role
|
2020-03-30 22:58:32 +02:00
|
|
|
}
|
2020-03-31 11:18:50 +02:00
|
|
|
return ""
|
2020-03-30 22:58:32 +02:00
|
|
|
}
|
|
|
|
|
2020-03-31 11:18:50 +02:00
|
|
|
func (m *CreateRequest) GetResource() *Resource {
|
|
|
|
if m != nil {
|
|
|
|
return m.Resource
|
2020-03-30 22:58:32 +02:00
|
|
|
}
|
2020-03-31 11:18:50 +02:00
|
|
|
return nil
|
2020-03-30 22:58:32 +02:00
|
|
|
}
|
|
|
|
|
2020-03-31 11:18:50 +02:00
|
|
|
func (m *CreateRequest) GetAccess() Access {
|
|
|
|
if m != nil {
|
|
|
|
return m.Access
|
2020-03-30 22:58:32 +02:00
|
|
|
}
|
2020-03-31 11:18:50 +02:00
|
|
|
return Access_UNKNOWN
|
2020-03-30 22:58:32 +02:00
|
|
|
}
|
|
|
|
|
2020-03-31 11:18:50 +02:00
|
|
|
type CreateResponse struct {
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2020-03-30 22:58:32 +02:00
|
|
|
}
|
|
|
|
|
2020-03-31 11:18:50 +02: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-03-31 19:17:01 +02:00
|
|
|
return fileDescriptor_11312eec02fd5712, []int{19}
|
2020-03-30 22:58:32 +02:00
|
|
|
}
|
|
|
|
|
2020-03-31 11:18:50 +02: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 22:58:32 +02:00
|
|
|
}
|
2020-03-31 11:18:50 +02:00
|
|
|
func (m *CreateResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_CreateResponse.Merge(m, src)
|
2020-03-30 22:58:32 +02:00
|
|
|
}
|
2020-03-31 11:18:50 +02:00
|
|
|
func (m *CreateResponse) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_CreateResponse.Size(m)
|
2020-03-30 22:58:32 +02:00
|
|
|
}
|
2020-03-31 11:18:50 +02:00
|
|
|
func (m *CreateResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_CreateResponse.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_CreateResponse proto.InternalMessageInfo
|
2020-03-30 22:58:32 +02:00
|
|
|
|
2020-03-31 11:18:50 +02:00
|
|
|
type DeleteRequest struct {
|
|
|
|
Role string `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"`
|
|
|
|
Resource *Resource `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"`
|
|
|
|
Access Access `protobuf:"varint,3,opt,name=access,proto3,enum=go.micro.auth.Access" json:"access,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2020-03-30 22:58:32 +02:00
|
|
|
}
|
|
|
|
|
2020-03-31 11:18:50 +02: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-03-31 19:17:01 +02:00
|
|
|
return fileDescriptor_11312eec02fd5712, []int{20}
|
2020-03-30 22:58:32 +02:00
|
|
|
}
|
|
|
|
|
2020-03-31 11:18:50 +02: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 22:58:32 +02:00
|
|
|
}
|
|
|
|
|
2020-03-31 11:18:50 +02:00
|
|
|
var xxx_messageInfo_DeleteRequest proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *DeleteRequest) GetRole() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Role
|
2020-03-30 22:58:32 +02:00
|
|
|
}
|
2020-03-31 11:18:50 +02:00
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *DeleteRequest) GetResource() *Resource {
|
|
|
|
if m != nil {
|
|
|
|
return m.Resource
|
2020-03-30 22:58:32 +02:00
|
|
|
}
|
2020-03-31 11:18:50 +02:00
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *DeleteRequest) GetAccess() Access {
|
|
|
|
if m != nil {
|
|
|
|
return m.Access
|
2020-03-30 22:58:32 +02:00
|
|
|
}
|
2020-03-31 11:18:50 +02:00
|
|
|
return Access_UNKNOWN
|
|
|
|
}
|
|
|
|
|
|
|
|
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-03-31 19:17:01 +02:00
|
|
|
return fileDescriptor_11312eec02fd5712, []int{21}
|
2020-03-31 11:18:50 +02: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 {
|
|
|
|
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-03-31 19:17:01 +02:00
|
|
|
return fileDescriptor_11312eec02fd5712, []int{22}
|
2020-03-31 11:18:50 +02: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
|
|
|
|
|
|
|
|
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-03-31 19:17:01 +02:00
|
|
|
return fileDescriptor_11312eec02fd5712, []int{23}
|
2020-03-31 11:18:50 +02: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 22:58:32 +02:00
|
|
|
}
|
2020-03-31 11:18:50 +02: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.RegisterMapType((map[string]string)(nil), "go.micro.auth.Token.MetadataEntry")
|
|
|
|
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")
|
2020-03-31 19:17:01 +02:00
|
|
|
proto.RegisterType((*LoginRequest)(nil), "go.micro.auth.LoginRequest")
|
|
|
|
proto.RegisterType((*LoginResponse)(nil), "go.micro.auth.LoginResponse")
|
2020-03-31 11:18:50 +02:00
|
|
|
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")
|
|
|
|
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 22:58:32 +02:00
|
|
|
}
|
|
|
|
|
2020-03-31 11:18:50 +02:00
|
|
|
func init() {
|
|
|
|
proto.RegisterFile("github.com/micro/go-micro/auth/service/proto/auth.proto", fileDescriptor_11312eec02fd5712)
|
|
|
|
}
|
|
|
|
|
|
|
|
var fileDescriptor_11312eec02fd5712 = []byte{
|
2020-03-31 19:17:01 +02:00
|
|
|
// 931 bytes of a gzipped FileDescriptorProto
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x56, 0x6d, 0x6f, 0xdb, 0x36,
|
|
|
|
0x10, 0x8e, 0x24, 0x5b, 0x56, 0xce, 0x96, 0x63, 0xb0, 0x69, 0x26, 0xb8, 0x2f, 0xcb, 0xd4, 0x61,
|
|
|
|
0xc8, 0x8a, 0x55, 0x19, 0x5c, 0x60, 0x6f, 0x05, 0x86, 0x19, 0xb5, 0xe1, 0xb5, 0x6b, 0x3d, 0x4c,
|
|
|
|
0xe8, 0xd0, 0x7d, 0x19, 0x0a, 0x45, 0xbe, 0x26, 0x5a, 0x1c, 0xc9, 0x13, 0xa9, 0x60, 0xf9, 0x01,
|
|
|
|
0xc3, 0xf6, 0x69, 0xff, 0x64, 0xfb, 0x45, 0xfb, 0x31, 0x03, 0x29, 0x52, 0x91, 0x25, 0xb9, 0x08,
|
|
|
|
0xda, 0x7c, 0xd8, 0x37, 0xde, 0xf1, 0x78, 0xf7, 0x3c, 0xf7, 0x42, 0x12, 0x3e, 0x3f, 0x8e, 0xd8,
|
|
|
|
0x49, 0x76, 0xe4, 0x85, 0xc9, 0xd9, 0xe1, 0x59, 0x14, 0xa6, 0xc9, 0xe1, 0x71, 0xf2, 0x20, 0x5f,
|
|
|
|
0x04, 0x19, 0x3b, 0x39, 0xa4, 0x98, 0x9e, 0x47, 0x21, 0x1e, 0x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