Documentation ¶
Index ¶
- func RegisterTokensServer(s *grpc.Server, srv TokensServer)
- type Client
- func (*Client) Descriptor() ([]byte, []int)
- func (m *Client) GetDescription() string
- func (m *Client) GetId() string
- func (m *Client) GetName() string
- func (m *Client) GetUi() map[string]string
- func (*Client) ProtoMessage()
- func (m *Client) Reset()
- func (m *Client) String() string
- func (m *Client) XXX_DiscardUnknown()
- func (m *Client) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Client) XXX_Merge(src proto.Message)
- func (m *Client) XXX_Size() int
- func (m *Client) XXX_Unmarshal(b []byte) error
- type DeleteTokenRequest
- func (*DeleteTokenRequest) Descriptor() ([]byte, []int)
- func (m *DeleteTokenRequest) GetName() string
- func (*DeleteTokenRequest) ProtoMessage()
- func (m *DeleteTokenRequest) Reset()
- func (m *DeleteTokenRequest) String() string
- func (m *DeleteTokenRequest) XXX_DiscardUnknown()
- func (m *DeleteTokenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeleteTokenRequest) XXX_Merge(src proto.Message)
- func (m *DeleteTokenRequest) XXX_Size() int
- func (m *DeleteTokenRequest) XXX_Unmarshal(b []byte) error
- type GetTokenRequest
- func (*GetTokenRequest) Descriptor() ([]byte, []int)
- func (m *GetTokenRequest) GetName() string
- func (*GetTokenRequest) ProtoMessage()
- func (m *GetTokenRequest) Reset()
- func (m *GetTokenRequest) String() string
- func (m *GetTokenRequest) XXX_DiscardUnknown()
- func (m *GetTokenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetTokenRequest) XXX_Merge(src proto.Message)
- func (m *GetTokenRequest) XXX_Size() int
- func (m *GetTokenRequest) XXX_Unmarshal(b []byte) error
- type ListTokensRequest
- func (*ListTokensRequest) Descriptor() ([]byte, []int)
- func (m *ListTokensRequest) GetPageSize() int32
- func (m *ListTokensRequest) GetPageToken() string
- func (m *ListTokensRequest) GetParent() string
- func (*ListTokensRequest) ProtoMessage()
- func (m *ListTokensRequest) Reset()
- func (m *ListTokensRequest) String() string
- func (m *ListTokensRequest) XXX_DiscardUnknown()
- func (m *ListTokensRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListTokensRequest) XXX_Merge(src proto.Message)
- func (m *ListTokensRequest) XXX_Size() int
- func (m *ListTokensRequest) XXX_Unmarshal(b []byte) error
- type ListTokensResponse
- func (*ListTokensResponse) Descriptor() ([]byte, []int)
- func (m *ListTokensResponse) GetNextPageToken() string
- func (m *ListTokensResponse) GetTokens() []*Token
- func (*ListTokensResponse) ProtoMessage()
- func (m *ListTokensResponse) Reset()
- func (m *ListTokensResponse) String() string
- func (m *ListTokensResponse) XXX_DiscardUnknown()
- func (m *ListTokensResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListTokensResponse) XXX_Merge(src proto.Message)
- func (m *ListTokensResponse) XXX_Size() int
- func (m *ListTokensResponse) XXX_Unmarshal(b []byte) error
- type Token
- func (*Token) Descriptor() ([]byte, []int)
- func (m *Token) GetAudience() string
- func (m *Token) GetClient() *Client
- func (m *Token) GetExpiresAt() int64
- func (m *Token) GetIssuedAt() int64
- func (m *Token) GetIssuer() string
- func (m *Token) GetMetadata() map[string]string
- func (m *Token) GetName() string
- func (m *Token) GetResources() []string
- func (m *Token) GetScope() string
- func (m *Token) GetSubject() string
- func (m *Token) GetTarget() string
- func (m *Token) GetType() string
- func (*Token) ProtoMessage()
- func (m *Token) Reset()
- func (m *Token) String() string
- func (m *Token) XXX_DiscardUnknown()
- func (m *Token) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Token) XXX_Merge(src proto.Message)
- func (m *Token) XXX_Size() int
- func (m *Token) XXX_Unmarshal(b []byte) error
- type TokensClient
- type TokensServer
- type UnimplementedTokensServer
- func (*UnimplementedTokensServer) DeleteToken(ctx context.Context, req *DeleteTokenRequest) (*empty.Empty, error)
- func (*UnimplementedTokensServer) GetToken(ctx context.Context, req *GetTokenRequest) (*Token, error)
- func (*UnimplementedTokensServer) ListTokens(ctx context.Context, req *ListTokensRequest) (*ListTokensResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterTokensServer ¶
func RegisterTokensServer(s *grpc.Server, srv TokensServer)
Types ¶
type Client ¶
type Client struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // flexible struct for ui display. Ui map[string]string `` /* 145-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Client) Descriptor ¶
func (*Client) GetDescription ¶
func (*Client) ProtoMessage ¶
func (*Client) ProtoMessage()
func (*Client) XXX_DiscardUnknown ¶
func (m *Client) XXX_DiscardUnknown()
func (*Client) XXX_Marshal ¶
func (*Client) XXX_Unmarshal ¶
type DeleteTokenRequest ¶
type DeleteTokenRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DeleteTokenRequest) Descriptor ¶
func (*DeleteTokenRequest) Descriptor() ([]byte, []int)
func (*DeleteTokenRequest) GetName ¶
func (m *DeleteTokenRequest) GetName() string
func (*DeleteTokenRequest) ProtoMessage ¶
func (*DeleteTokenRequest) ProtoMessage()
func (*DeleteTokenRequest) Reset ¶
func (m *DeleteTokenRequest) Reset()
func (*DeleteTokenRequest) String ¶
func (m *DeleteTokenRequest) String() string
func (*DeleteTokenRequest) XXX_DiscardUnknown ¶
func (m *DeleteTokenRequest) XXX_DiscardUnknown()
func (*DeleteTokenRequest) XXX_Marshal ¶
func (m *DeleteTokenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeleteTokenRequest) XXX_Merge ¶
func (m *DeleteTokenRequest) XXX_Merge(src proto.Message)
func (*DeleteTokenRequest) XXX_Size ¶
func (m *DeleteTokenRequest) XXX_Size() int
func (*DeleteTokenRequest) XXX_Unmarshal ¶
func (m *DeleteTokenRequest) XXX_Unmarshal(b []byte) error
type GetTokenRequest ¶
type GetTokenRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetTokenRequest) Descriptor ¶
func (*GetTokenRequest) Descriptor() ([]byte, []int)
func (*GetTokenRequest) GetName ¶
func (m *GetTokenRequest) GetName() string
func (*GetTokenRequest) ProtoMessage ¶
func (*GetTokenRequest) ProtoMessage()
func (*GetTokenRequest) Reset ¶
func (m *GetTokenRequest) Reset()
func (*GetTokenRequest) String ¶
func (m *GetTokenRequest) String() string
func (*GetTokenRequest) XXX_DiscardUnknown ¶
func (m *GetTokenRequest) XXX_DiscardUnknown()
func (*GetTokenRequest) XXX_Marshal ¶
func (m *GetTokenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetTokenRequest) XXX_Merge ¶
func (m *GetTokenRequest) XXX_Merge(src proto.Message)
func (*GetTokenRequest) XXX_Size ¶
func (m *GetTokenRequest) XXX_Size() int
func (*GetTokenRequest) XXX_Unmarshal ¶
func (m *GetTokenRequest) XXX_Unmarshal(b []byte) error
type ListTokensRequest ¶
type ListTokensRequest struct { Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ListTokensRequest) Descriptor ¶
func (*ListTokensRequest) Descriptor() ([]byte, []int)
func (*ListTokensRequest) GetPageSize ¶
func (m *ListTokensRequest) GetPageSize() int32
func (*ListTokensRequest) GetPageToken ¶
func (m *ListTokensRequest) GetPageToken() string
func (*ListTokensRequest) GetParent ¶
func (m *ListTokensRequest) GetParent() string
func (*ListTokensRequest) ProtoMessage ¶
func (*ListTokensRequest) ProtoMessage()
func (*ListTokensRequest) Reset ¶
func (m *ListTokensRequest) Reset()
func (*ListTokensRequest) String ¶
func (m *ListTokensRequest) String() string
func (*ListTokensRequest) XXX_DiscardUnknown ¶
func (m *ListTokensRequest) XXX_DiscardUnknown()
func (*ListTokensRequest) XXX_Marshal ¶
func (m *ListTokensRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListTokensRequest) XXX_Merge ¶
func (m *ListTokensRequest) XXX_Merge(src proto.Message)
func (*ListTokensRequest) XXX_Size ¶
func (m *ListTokensRequest) XXX_Size() int
func (*ListTokensRequest) XXX_Unmarshal ¶
func (m *ListTokensRequest) XXX_Unmarshal(b []byte) error
type ListTokensResponse ¶
type ListTokensResponse struct { Tokens []*Token `protobuf:"bytes,1,rep,name=tokens,proto3" json:"tokens,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 (*ListTokensResponse) Descriptor ¶
func (*ListTokensResponse) Descriptor() ([]byte, []int)
func (*ListTokensResponse) GetNextPageToken ¶
func (m *ListTokensResponse) GetNextPageToken() string
func (*ListTokensResponse) GetTokens ¶
func (m *ListTokensResponse) GetTokens() []*Token
func (*ListTokensResponse) ProtoMessage ¶
func (*ListTokensResponse) ProtoMessage()
func (*ListTokensResponse) Reset ¶
func (m *ListTokensResponse) Reset()
func (*ListTokensResponse) String ¶
func (m *ListTokensResponse) String() string
func (*ListTokensResponse) XXX_DiscardUnknown ¶
func (m *ListTokensResponse) XXX_DiscardUnknown()
func (*ListTokensResponse) XXX_Marshal ¶
func (m *ListTokensResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListTokensResponse) XXX_Merge ¶
func (m *ListTokensResponse) XXX_Merge(src proto.Message)
func (*ListTokensResponse) XXX_Size ¶
func (m *ListTokensResponse) XXX_Size() int
func (*ListTokensResponse) XXX_Unmarshal ¶
func (m *ListTokensResponse) XXX_Unmarshal(b []byte) error
type Token ¶
type Token struct { // Name of the token. // Format: `users/{user_id}/tokens/{token_id}`. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Issuer string `protobuf:"bytes,2,opt,name=issuer,json=iss,proto3" json:"issuer,omitempty"` Subject string `protobuf:"bytes,3,opt,name=subject,json=sub,proto3" json:"subject,omitempty"` Audience string `protobuf:"bytes,4,opt,name=audience,json=aud,proto3" json:"audience,omitempty"` ExpiresAt int64 `protobuf:"varint,5,opt,name=expires_at,json=exp,proto3" json:"expires_at,omitempty"` // int64 not_before = 6 [json_name = "nbf"]; IssuedAt int64 `protobuf:"varint,7,opt,name=issued_at,json=iat,proto3" json:"issued_at,omitempty"` Scope string `protobuf:"bytes,9,opt,name=scope,proto3" json:"scope,omitempty"` Client *Client `protobuf:"bytes,10,opt,name=client,proto3" json:"client,omitempty"` // Target of the token. // For DAM, it is URL containing the resource & role & view. // For IC, it is URL of the client requesting. Target string `protobuf:"bytes,11,opt,name=target,proto3" json:"target,omitempty"` // Metadata contains additional metadata. // For DAM: // resource: description of the resource. // role: description of the role. // view: description of the view. // For IC: // client_id: // client_desc: description of the client. Metadata map[string]string `` /* 158-byte string literal not displayed */ // Type of the token, used to distinguish tokens from different platforms. Type string `protobuf:"bytes,13,opt,name=type,proto3" json:"type,omitempty"` // Resources of this token used to access. Resources []string `protobuf:"bytes,14,rep,name=resources,proto3" json:"resources,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Token) Descriptor ¶
func (*Token) GetAudience ¶
func (*Token) GetExpiresAt ¶
func (*Token) GetIssuedAt ¶
func (*Token) GetMetadata ¶
func (*Token) GetResources ¶ added in v0.9.5
func (*Token) GetSubject ¶ added in v0.8.6
func (*Token) ProtoMessage ¶
func (*Token) ProtoMessage()
func (*Token) XXX_DiscardUnknown ¶
func (m *Token) XXX_DiscardUnknown()
func (*Token) XXX_Marshal ¶
func (*Token) XXX_Unmarshal ¶
type TokensClient ¶
type TokensClient interface { // Gets the information for the specified token. GetToken(ctx context.Context, in *GetTokenRequest, opts ...grpc.CallOption) (*Token, error) // Deletes the specified token. DeleteToken(ctx context.Context, in *DeleteTokenRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Lists the tokens. ListTokens(ctx context.Context, in *ListTokensRequest, opts ...grpc.CallOption) (*ListTokensResponse, error) }
TokensClient is the client API for Tokens service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewTokensClient ¶
func NewTokensClient(cc grpc.ClientConnInterface) TokensClient
type TokensServer ¶
type TokensServer interface { // Gets the information for the specified token. GetToken(context.Context, *GetTokenRequest) (*Token, error) // Deletes the specified token. DeleteToken(context.Context, *DeleteTokenRequest) (*empty.Empty, error) // Lists the tokens. ListTokens(context.Context, *ListTokensRequest) (*ListTokensResponse, error) }
TokensServer is the server API for Tokens service.
type UnimplementedTokensServer ¶
type UnimplementedTokensServer struct { }
UnimplementedTokensServer can be embedded to have forward compatible implementations.
func (*UnimplementedTokensServer) DeleteToken ¶
func (*UnimplementedTokensServer) DeleteToken(ctx context.Context, req *DeleteTokenRequest) (*empty.Empty, error)
func (*UnimplementedTokensServer) GetToken ¶
func (*UnimplementedTokensServer) GetToken(ctx context.Context, req *GetTokenRequest) (*Token, error)
func (*UnimplementedTokensServer) ListTokens ¶
func (*UnimplementedTokensServer) ListTokens(ctx context.Context, req *ListTokensRequest) (*ListTokensResponse, error)
Click to show internal directories.
Click to hide internal directories.