Documentation ¶
Index ¶
- Variables
- func ConfigurePlugins() error
- func Execute(root *cobra.Command, server Server, preFunc func() error)
- func GetViperAttr(attrType dockerregistryproxyv1.ConfigType, attrName string) interface{}
- func HandleErr(err error)
- func LoadPlugins(rootCmd *cobra.Command) error
- func New(programName string) *cobra.Command
- func NewGRPCConn(host string) (*grpc.ClientConn, error)
- func NewGRPCServer() *grpc.Server
- func NewHTTPServer() *http.Server
- type Server
- type Stoppable
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Stopables represents extra closers to close when stopping Stopables = []Stoppable{} // WaitGroup is used to add processes to wait for and pass to goroutines WaitGroup sync.WaitGroup )
View Source
var BuildVersion = "dev"
BuildVersion represents the built binary version
View Source
var ( // ErrUnsupportedScheme is returned by Execute if an invalid scheme is given as the network address ErrUnsupportedScheme = errors.New("unsupported net scheme") )
View Source
var Logger *zap.Logger
Logger represents the command line logger
Functions ¶
func ConfigurePlugins ¶
func ConfigurePlugins() error
func GetViperAttr ¶
func GetViperAttr(attrType dockerregistryproxyv1.ConfigType, attrName string) interface{}
func LoadPlugins ¶
func NewGRPCConn ¶
func NewGRPCConn(host string) (*grpc.ClientConn, error)
NewGRPCConn returns a new GRPC connection
func NewGRPCServer ¶
NewGRPCServer returns a new GRPC server with the zap and recovery interceptors
Types ¶
Click to show internal directories.
Click to hide internal directories.