v1

package
v0.9.15 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Consent_ReleaseType_name = map[int32]string{
	0: "UNSPECIFIED",
	1: "SELECTED",
	2: "ANYTHING_NEEDED",
}
View Source
var Consent_ReleaseType_value = map[string]int32{
	"UNSPECIFIED":     0,
	"SELECTED":        1,
	"ANYTHING_NEEDED": 2,
}
View Source
var Consent_RequestMatchType_name = map[int32]string{
	0: "NONE",
	1: "SUBSET",
	2: "ANYTHING",
}
View Source
var Consent_RequestMatchType_value = map[string]int32{
	"NONE":     0,
	"SUBSET":   1,
	"ANYTHING": 2,
}

Functions

func RegisterConsentsServer

func RegisterConsentsServer(s *grpc.Server, srv ConsentsServer)

Types

type Consent struct {
	// name iin format: /users/{user_id}/consents/{consent_id}
	Name                 string                   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Client               *Consent_Client          `protobuf:"bytes,2,opt,name=client,proto3" json:"client,omitempty"`
	CreateTime           *timestamp.Timestamp     `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	ExpireTime           *timestamp.Timestamp     `protobuf:"bytes,4,opt,name=expire_time,json=expireTime,proto3" json:"expire_time,omitempty"`
	RequestMatchType     Consent_RequestMatchType `` /* 154-byte string literal not displayed */
	RequestedResources   []string                 `protobuf:"bytes,6,rep,name=requested_resources,json=requestedResources,proto3" json:"requested_resources,omitempty"`
	RequestedScopes      []string                 `protobuf:"bytes,7,rep,name=requested_scopes,json=requestedScopes,proto3" json:"requested_scopes,omitempty"`
	ReleaseType          Consent_ReleaseType      `` /* 132-byte string literal not displayed */
	SelectedVisas        []*Consent_Visa          `protobuf:"bytes,9,rep,name=selected_visas,json=selectedVisas,proto3" json:"selected_visas,omitempty"`
	ReleaseProfileName   bool                     `protobuf:"varint,10,opt,name=release_profile_name,json=releaseProfileName,proto3" json:"release_profile_name,omitempty"`
	ReleaseProfileEmail  bool                     `protobuf:"varint,11,opt,name=release_profile_email,json=releaseProfileEmail,proto3" json:"release_profile_email,omitempty"`
	ReleaseProfileOther  bool                     `protobuf:"varint,12,opt,name=release_profile_other,json=releaseProfileOther,proto3" json:"release_profile_other,omitempty"`
	ReleaseAccountAdmin  bool                     `protobuf:"varint,13,opt,name=release_account_admin,json=releaseAccountAdmin,proto3" json:"release_account_admin,omitempty"`
	ReleaseLink          bool                     `protobuf:"varint,14,opt,name=release_link,json=releaseLink,proto3" json:"release_link,omitempty"`
	ReleaseIdentities    bool                     `protobuf:"varint,15,opt,name=release_identities,json=releaseIdentities,proto3" json:"release_identities,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                 `json:"-"`
	XXX_unrecognized     []byte                   `json:"-"`
	XXX_sizecache        int32                    `json:"-"`
}

Consent contains the consent a user has given for release of visas to a specific OAuth client.

func (*Consent) Descriptor

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

func (*Consent) GetClient

func (m *Consent) GetClient() *Consent_Client

func (*Consent) GetCreateTime

func (m *Consent) GetCreateTime() *timestamp.Timestamp

func (*Consent) GetExpireTime added in v0.8.9

func (m *Consent) GetExpireTime() *timestamp.Timestamp

func (*Consent) GetName

func (m *Consent) GetName() string

func (*Consent) GetReleaseAccountAdmin added in v0.8.9

func (m *Consent) GetReleaseAccountAdmin() bool

func (*Consent) GetReleaseIdentities added in v0.8.9

func (m *Consent) GetReleaseIdentities() bool
func (m *Consent) GetReleaseLink() bool

func (*Consent) GetReleaseProfileEmail added in v0.8.9

func (m *Consent) GetReleaseProfileEmail() bool

func (*Consent) GetReleaseProfileName added in v0.8.9

func (m *Consent) GetReleaseProfileName() bool

func (*Consent) GetReleaseProfileOther added in v0.8.9

func (m *Consent) GetReleaseProfileOther() bool

func (*Consent) GetReleaseType added in v0.8.9

func (m *Consent) GetReleaseType() Consent_ReleaseType

func (*Consent) GetRequestMatchType added in v0.8.9

func (m *Consent) GetRequestMatchType() Consent_RequestMatchType

func (*Consent) GetRequestedResources added in v0.8.9

func (m *Consent) GetRequestedResources() []string

func (*Consent) GetRequestedScopes added in v0.8.9

func (m *Consent) GetRequestedScopes() []string

func (*Consent) GetSelectedVisas added in v0.8.9

func (m *Consent) GetSelectedVisas() []*Consent_Visa

func (*Consent) ProtoMessage

func (*Consent) ProtoMessage()

func (*Consent) Reset

func (m *Consent) Reset()

func (*Consent) String

func (m *Consent) String() string

func (*Consent) XXX_DiscardUnknown

func (m *Consent) XXX_DiscardUnknown()

func (*Consent) XXX_Marshal

func (m *Consent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Consent) XXX_Merge

func (m *Consent) XXX_Merge(src proto.Message)

func (*Consent) XXX_Size

func (m *Consent) XXX_Size() int

func (*Consent) XXX_Unmarshal

func (m *Consent) XXX_Unmarshal(b []byte) error
type Consent_Client struct {
	ClientId             string            `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
	Name                 string            `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Ui                   map[string]string `` /* 145-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

Client : remember the consent for this client.

func (*Consent_Client) Descriptor() ([]byte, []int)
func (m *Consent_Client) GetClientId() string
func (m *Consent_Client) GetName() string
func (m *Consent_Client) GetUi() map[string]string
func (*Consent_Client) ProtoMessage()
func (m *Consent_Client) Reset()
func (m *Consent_Client) String() string
func (m *Consent_Client) XXX_DiscardUnknown()
func (m *Consent_Client) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (m *Consent_Client) XXX_Merge(src proto.Message)
func (m *Consent_Client) XXX_Size() int
func (m *Consent_Client) XXX_Unmarshal(b []byte) error
type Consent_ReleaseType int32

ReleaseType defines what to release.

const (
	Consent_UNSPECIFIED Consent_ReleaseType = 0
	// SELECTED : release selected visas of this item.
	Consent_SELECTED Consent_ReleaseType = 1
	// ANYTHING_NEEDED: release anything request needed.
	Consent_ANYTHING_NEEDED Consent_ReleaseType = 2
)
func (Consent_ReleaseType) EnumDescriptor() ([]byte, []int)
func (x Consent_ReleaseType) String() string
type Consent_RequestMatchType int32

RequestMatchType defines what request is valid to use this consent.

const (
	// NONE : do not remember.
	Consent_NONE Consent_RequestMatchType = 0
	// SUBSET : request resource and scopes are subset of resource and scopes in
	// this item.
	Consent_SUBSET Consent_RequestMatchType = 1
	// ANYTHING : request anything.
	Consent_ANYTHING Consent_RequestMatchType = 2
)
func (Consent_RequestMatchType) EnumDescriptor() ([]byte, []int)
func (x Consent_RequestMatchType) String() string
type Consent_Visa struct {
	Type                 string   `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	Source               string   `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"`
	By                   string   `protobuf:"bytes,3,opt,name=by,proto3" json:"by,omitempty"`
	Iss                  string   `protobuf:"bytes,4,opt,name=iss,proto3" json:"iss,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Visa contains fields to match released visas user have.

func (*Consent_Visa) Descriptor() ([]byte, []int)
func (m *Consent_Visa) GetBy() string
func (m *Consent_Visa) GetIss() string
func (m *Consent_Visa) GetSource() string
func (m *Consent_Visa) GetType() string
func (*Consent_Visa) ProtoMessage()
func (m *Consent_Visa) Reset()
func (m *Consent_Visa) String() string
func (m *Consent_Visa) XXX_DiscardUnknown()
func (m *Consent_Visa) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (m *Consent_Visa) XXX_Merge(src proto.Message)
func (m *Consent_Visa) XXX_Size() int
func (m *Consent_Visa) XXX_Unmarshal(b []byte) error

type ConsentsClient

type ConsentsClient interface {
	// Deletes the specified Remembered Consent.
	DeleteConsent(ctx context.Context, in *DeleteConsentRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	// Lists the Remembered Consents.
	ListConsents(ctx context.Context, in *ListConsentsRequest, opts ...grpc.CallOption) (*ListConsentsResponse, error)
}

ConsentsClient is the client API for Consents service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewConsentsClient

func NewConsentsClient(cc grpc.ClientConnInterface) ConsentsClient

type ConsentsServer

type ConsentsServer interface {
	// Deletes the specified Remembered Consent.
	DeleteConsent(context.Context, *DeleteConsentRequest) (*empty.Empty, error)
	// Lists the Remembered Consents.
	ListConsents(context.Context, *ListConsentsRequest) (*ListConsentsResponse, error)
}

ConsentsServer is the server API for Consents service.

type DeleteConsentRequest

type DeleteConsentRequest struct {
	Realm                string   `protobuf:"bytes,1,opt,name=realm,proto3" json:"realm,omitempty"`
	UserId               string   `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	ConsentId            string   `protobuf:"bytes,3,opt,name=consent_id,json=consentId,proto3" json:"consent_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DeleteConsentRequest) Descriptor

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

func (*DeleteConsentRequest) GetConsentId added in v0.8.9

func (m *DeleteConsentRequest) GetConsentId() string

func (*DeleteConsentRequest) GetRealm added in v0.9.2

func (m *DeleteConsentRequest) GetRealm() string

func (*DeleteConsentRequest) GetUserId added in v0.8.9

func (m *DeleteConsentRequest) GetUserId() string

func (*DeleteConsentRequest) ProtoMessage

func (*DeleteConsentRequest) ProtoMessage()

func (*DeleteConsentRequest) Reset

func (m *DeleteConsentRequest) Reset()

func (*DeleteConsentRequest) String

func (m *DeleteConsentRequest) String() string

func (*DeleteConsentRequest) XXX_DiscardUnknown

func (m *DeleteConsentRequest) XXX_DiscardUnknown()

func (*DeleteConsentRequest) XXX_Marshal

func (m *DeleteConsentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeleteConsentRequest) XXX_Merge

func (m *DeleteConsentRequest) XXX_Merge(src proto.Message)

func (*DeleteConsentRequest) XXX_Size

func (m *DeleteConsentRequest) XXX_Size() int

func (*DeleteConsentRequest) XXX_Unmarshal

func (m *DeleteConsentRequest) XXX_Unmarshal(b []byte) error

type ListConsentsRequest

type ListConsentsRequest struct {
	Realm                string   `protobuf:"bytes,1,opt,name=realm,proto3" json:"realm,omitempty"`
	UserId               string   `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Filter               string   `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"`
	PageSize             int32    `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	PageToken            string   `protobuf:"bytes,5,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ListConsentsRequest) Descriptor

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

func (*ListConsentsRequest) GetFilter

func (m *ListConsentsRequest) GetFilter() string

func (*ListConsentsRequest) GetPageSize

func (m *ListConsentsRequest) GetPageSize() int32

func (*ListConsentsRequest) GetPageToken

func (m *ListConsentsRequest) GetPageToken() string

func (*ListConsentsRequest) GetRealm added in v0.9.2

func (m *ListConsentsRequest) GetRealm() string

func (*ListConsentsRequest) GetUserId added in v0.8.9

func (m *ListConsentsRequest) GetUserId() string

func (*ListConsentsRequest) ProtoMessage

func (*ListConsentsRequest) ProtoMessage()

func (*ListConsentsRequest) Reset

func (m *ListConsentsRequest) Reset()

func (*ListConsentsRequest) String

func (m *ListConsentsRequest) String() string

func (*ListConsentsRequest) XXX_DiscardUnknown

func (m *ListConsentsRequest) XXX_DiscardUnknown()

func (*ListConsentsRequest) XXX_Marshal

func (m *ListConsentsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListConsentsRequest) XXX_Merge

func (m *ListConsentsRequest) XXX_Merge(src proto.Message)

func (*ListConsentsRequest) XXX_Size

func (m *ListConsentsRequest) XXX_Size() int

func (*ListConsentsRequest) XXX_Unmarshal

func (m *ListConsentsRequest) XXX_Unmarshal(b []byte) error

type ListConsentsResponse

type ListConsentsResponse struct {
	Consents             []*Consent `protobuf:"bytes,1,rep,name=consents,proto3" json:"consents,omitempty"`
	NextPageToken        string     `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

func (*ListConsentsResponse) Descriptor

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

func (*ListConsentsResponse) GetConsents

func (m *ListConsentsResponse) GetConsents() []*Consent

func (*ListConsentsResponse) GetNextPageToken

func (m *ListConsentsResponse) GetNextPageToken() string

func (*ListConsentsResponse) ProtoMessage

func (*ListConsentsResponse) ProtoMessage()

func (*ListConsentsResponse) Reset

func (m *ListConsentsResponse) Reset()

func (*ListConsentsResponse) String

func (m *ListConsentsResponse) String() string

func (*ListConsentsResponse) XXX_DiscardUnknown

func (m *ListConsentsResponse) XXX_DiscardUnknown()

func (*ListConsentsResponse) XXX_Marshal

func (m *ListConsentsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListConsentsResponse) XXX_Merge

func (m *ListConsentsResponse) XXX_Merge(src proto.Message)

func (*ListConsentsResponse) XXX_Size

func (m *ListConsentsResponse) XXX_Size() int

func (*ListConsentsResponse) XXX_Unmarshal

func (m *ListConsentsResponse) XXX_Unmarshal(b []byte) error

type UnimplementedConsentsServer

type UnimplementedConsentsServer struct {
}

UnimplementedConsentsServer can be embedded to have forward compatible implementations.

func (*UnimplementedConsentsServer) DeleteConsent

func (*UnimplementedConsentsServer) ListConsents

Jump to

Keyboard shortcuts

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