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: 8 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

func (*Client) GetDescription

func (m *Client) GetDescription() string

func (*Client) GetId

func (m *Client) GetId() string

func (*Client) GetName

func (m *Client) GetName() string

func (*Client) GetUi added in v0.9.3

func (m *Client) GetUi() map[string]string

func (*Client) ProtoMessage

func (*Client) ProtoMessage()

func (*Client) Reset

func (m *Client) Reset()

func (*Client) String

func (m *Client) String() string

func (*Client) XXX_DiscardUnknown

func (m *Client) XXX_DiscardUnknown()

func (*Client) XXX_Marshal

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

func (*Client) XXX_Merge

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

func (*Client) XXX_Size

func (m *Client) XXX_Size() int

func (*Client) XXX_Unmarshal

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

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) Descriptor() ([]byte, []int)

func (*Token) GetAudience

func (m *Token) GetAudience() string

func (*Token) GetClient

func (m *Token) GetClient() *Client

func (*Token) GetExpiresAt

func (m *Token) GetExpiresAt() int64

func (*Token) GetIssuedAt

func (m *Token) GetIssuedAt() int64

func (*Token) GetIssuer added in v0.8.6

func (m *Token) GetIssuer() string

func (*Token) GetMetadata

func (m *Token) GetMetadata() map[string]string

func (*Token) GetName

func (m *Token) GetName() string

func (*Token) GetResources added in v0.9.5

func (m *Token) GetResources() []string

func (*Token) GetScope

func (m *Token) GetScope() string

func (*Token) GetSubject added in v0.8.6

func (m *Token) GetSubject() string

func (*Token) GetTarget

func (m *Token) GetTarget() string

func (*Token) GetType added in v0.8.6

func (m *Token) GetType() string

func (*Token) ProtoMessage

func (*Token) ProtoMessage()

func (*Token) Reset

func (m *Token) Reset()

func (*Token) String

func (m *Token) String() string

func (*Token) XXX_DiscardUnknown

func (m *Token) XXX_DiscardUnknown()

func (*Token) XXX_Marshal

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

func (*Token) XXX_Merge

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

func (*Token) XXX_Size

func (m *Token) XXX_Size() int

func (*Token) XXX_Unmarshal

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

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) GetToken

func (*UnimplementedTokensServer) ListTokens

Jump to

Keyboard shortcuts

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