repo

package
v0.0.0-...-30a43cb Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: Apache-2.0 Imports: 32 Imported by: 3

Documentation

Overview

Package repo contains implementation of cipd.Repository service RPC service.

This is public API of the CIPD backend. Use Public() function to grab an instance of the service that does all ACL checks.

Index

Constants

View Source
const PrefixesViewers = "cipd-prefixes-viewers"

PrefixesViewers is a group membership in which grants read access to all prefix metadata regardless of individual prefix ACLs.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server interface {
	api.RepositoryServer

	// InstallHandlers installs non-pRPC HTTP handlers into the router.
	//
	// Assumes 'base' middleware chain does OAuth2 authentication already.
	InstallHandlers(r *router.Router, base router.MiddlewareChain)
}

Server is api.RepositoryServer that can also expose some non-pRPC routes.

func Public

func Public(internalCAS cas.StorageServer, d *tq.Dispatcher) Server

Public returns publicly exposed implementation of cipd.Repository service.

It checks ACLs.

Directories

Path Synopsis
Package processing contains code related to post-registration instance processing.
Package processing contains code related to post-registration instance processing.
Package tasks contains task queue tasks definitions.
Package tasks contains task queue tasks definitions.

Jump to

Keyboard shortcuts

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