api

package
v95.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2017 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Branch

type Branch struct {
	Name            string
	CredentialCount int64
}

type BranchesRepository

type BranchesRepository struct {
	Branches []*Branch
	Private  bool
}

type IndexHandler

type IndexHandler struct {
	// contains filtered or unexported fields
}

func NewIndexHandler

func NewIndexHandler(
	logger lager.Logger,
	template *template.Template,
	client IndexRevokClient,
) *IndexHandler

func (*IndexHandler) ServeHTTP

func (h *IndexHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type IndexRevokClient

type IndexRevokClient interface {
	GetCredentialCounts(ctx context.Context, in *revokpb.CredentialCountRequest, opts ...grpc.CallOption) (*revokpb.CredentialCountResponse, error)
}

type Organization

type Organization struct {
	Name            string
	CredentialCount int64
}

type OrganizationHandler

type OrganizationHandler struct {
	// contains filtered or unexported fields
}

func NewOrganizationHandler

func NewOrganizationHandler(
	logger lager.Logger,
	template *template.Template,
	client OrganizationRevokClient,
) *OrganizationHandler

func (*OrganizationHandler) ServeHTTP

func (h *OrganizationHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type OrganizationRevokClient

type OrganizationRevokClient interface {
	GetOrganizationCredentialCounts(ctx context.Context, in *revokpb.OrganizationCredentialCountRequest, opts ...grpc.CallOption) (*revokpb.OrganizationCredentialCountResponse, error)
}

type Repository

type Repository struct {
	Owner           string
	Name            string
	Private         bool
	CredentialCount int64
}

type RepositoryHandler

type RepositoryHandler struct {
	// contains filtered or unexported fields
}

func NewRepositoryHandler

func NewRepositoryHandler(
	logger lager.Logger,
	template *template.Template,
	client RepositoryRevokClient,
) *RepositoryHandler

func (*RepositoryHandler) ServeHTTP

func (h *RepositoryHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type RepositoryRevokClient

type RepositoryRevokClient interface {
	GetRepositoryCredentialCounts(ctx context.Context, in *revokpb.RepositoryCredentialCountRequest, opts ...grpc.CallOption) (*revokpb.RepositoryCredentialCountResponse, error)
}

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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