api

package
v2.0.0-alpha.3+incompa... Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2016 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package api is a generated protocol buffer package.

It is generated from these files:

api/api.proto

It has these top-level messages:

Client
CreateClientReq
CreateClientResp
DeleteClientReq
DeleteClientResp

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterDexServer

func RegisterDexServer(s *grpc.Server, srv DexServer)

Types

type Client

type Client struct {
	Id           string   `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
	Secret       string   `protobuf:"bytes,2,opt,name=secret" json:"secret,omitempty"`
	RedirectUris []string `protobuf:"bytes,3,rep,name=redirect_uris,json=redirectUris" json:"redirect_uris,omitempty"`
	TrustedPeers []string `protobuf:"bytes,4,rep,name=trusted_peers,json=trustedPeers" json:"trusted_peers,omitempty"`
	Public       bool     `protobuf:"varint,5,opt,name=public" json:"public,omitempty"`
	Name         string   `protobuf:"bytes,6,opt,name=name" json:"name,omitempty"`
	LogoUrl      string   `protobuf:"bytes,7,opt,name=logo_url,json=logoUrl" json:"logo_url,omitempty"`
}

Client represents an OAuth2 client.

func (*Client) Descriptor

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

func (*Client) ProtoMessage

func (*Client) ProtoMessage()

func (*Client) Reset

func (m *Client) Reset()

func (*Client) String

func (m *Client) String() string

type CreateClientReq

type CreateClientReq struct {
	Client *Client `protobuf:"bytes,1,opt,name=client" json:"client,omitempty"`
}

CreateClientReq is a request to make a client.

func (*CreateClientReq) Descriptor

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

func (*CreateClientReq) GetClient

func (m *CreateClientReq) GetClient() *Client

func (*CreateClientReq) ProtoMessage

func (*CreateClientReq) ProtoMessage()

func (*CreateClientReq) Reset

func (m *CreateClientReq) Reset()

func (*CreateClientReq) String

func (m *CreateClientReq) String() string

type CreateClientResp

type CreateClientResp struct {
	AlreadyExists bool    `protobuf:"varint,1,opt,name=already_exists,json=alreadyExists" json:"already_exists,omitempty"`
	Client        *Client `protobuf:"bytes,2,opt,name=client" json:"client,omitempty"`
}

CreateClientResp returns the response from creating a client.

func (*CreateClientResp) Descriptor

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

func (*CreateClientResp) GetClient

func (m *CreateClientResp) GetClient() *Client

func (*CreateClientResp) ProtoMessage

func (*CreateClientResp) ProtoMessage()

func (*CreateClientResp) Reset

func (m *CreateClientResp) Reset()

func (*CreateClientResp) String

func (m *CreateClientResp) String() string

type DeleteClientReq

type DeleteClientReq struct {
	// The ID of the client.
	Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
}

DeleteClientReq is a request to delete a client.

func (*DeleteClientReq) Descriptor

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

func (*DeleteClientReq) ProtoMessage

func (*DeleteClientReq) ProtoMessage()

func (*DeleteClientReq) Reset

func (m *DeleteClientReq) Reset()

func (*DeleteClientReq) String

func (m *DeleteClientReq) String() string

type DeleteClientResp

type DeleteClientResp struct {
	NotFound bool `protobuf:"varint,1,opt,name=not_found,json=notFound" json:"not_found,omitempty"`
}

DeleteClientResp determines if the.

func (*DeleteClientResp) Descriptor

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

func (*DeleteClientResp) ProtoMessage

func (*DeleteClientResp) ProtoMessage()

func (*DeleteClientResp) Reset

func (m *DeleteClientResp) Reset()

func (*DeleteClientResp) String

func (m *DeleteClientResp) String() string

type DexClient

type DexClient interface {
	// CreateClient attempts to create the client.
	CreateClient(ctx context.Context, in *CreateClientReq, opts ...grpc.CallOption) (*CreateClientResp, error)
	// DeleteClient attempts to delete the provided client.
	DeleteClient(ctx context.Context, in *DeleteClientReq, opts ...grpc.CallOption) (*DeleteClientResp, error)
}

func NewDexClient

func NewDexClient(cc *grpc.ClientConn) DexClient

type DexServer

type DexServer interface {
	// CreateClient attempts to create the client.
	CreateClient(context.Context, *CreateClientReq) (*CreateClientResp, error)
	// DeleteClient attempts to delete the provided client.
	DeleteClient(context.Context, *DeleteClientReq) (*DeleteClientResp, error)
}

Jump to

Keyboard shortcuts

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