Documentation
¶
Index ¶
- Variables
- type APIConfig
- type App
- type Cli
- type Config
- type Endpoint
- func (endpoint *Endpoint) Configure(w http.ResponseWriter, r *http.Request)
- func (endpoint *Endpoint) LocalImages(w http.ResponseWriter, r *http.Request)
- func (endpoint *Endpoint) Pull(w http.ResponseWriter, r *http.Request)
- func (endpoint *Endpoint) Push(w http.ResponseWriter, r *http.Request)
- func (endpoint *Endpoint) Register(router *mux.Router)
- func (endpoint *Endpoint) RemoteImages(w http.ResponseWriter, r *http.Request)
- func (endpoint *Endpoint) Start(w http.ResponseWriter, r *http.Request)
- func (endpoint *Endpoint) Status(w http.ResponseWriter, r *http.Request)
- func (endpoint *Endpoint) Stop(w http.ResponseWriter, r *http.Request)
- type Image
- type RunCfg
- type Server
- type Service
- func (s Service) Configure(bucket string, grant string) error
- func (s Service) Create(bucket string, grant string) error
- func (s Service) LocalImages() ([]Image, error)
- func (s Service) Pull(name string, tag string) error
- func (s Service) Push(name string, tag string) error
- func (s Service) RemoteImages() ([]Image, error)
- func (s Service) Start() error
- func (s Service) Status() (string, error)
- func (s Service) Stop() error
- type ServiceConfig
- type Supervisor
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrEndpoint = errs.Class("backend endpoint")
View Source
var ErrService = errs.Class("docker service")
ErrService - pin service error class.
View Source
var Error = errs.Class("api server")
Error is an error class for API http server error.
Functions ¶
This section is empty.
Types ¶
type APIConfig ¶
type APIConfig struct {
Address string `default:"socket:/run/guest-services/run.socket" help:"Address to listen on."`
}
APIConfig holds API endpoint configuration.
type App ¶
type App struct { Log *zap.Logger Debug struct { Listener net.Listener Server *debug.Server } API struct { Listener net.Listener Server *Server } Servers *lifecycle.Group Services *lifecycle.Group }
App is the storjscan process that runs API endpoint.
architecture: Peer
type Cli ¶
type Cli struct {
// contains filtered or unexported fields
}
func NewCliDispatcher ¶
func NewCliDispatcher() *Cli
type Endpoint ¶
type Endpoint struct {
// contains filtered or unexported fields
}
func (*Endpoint) Configure ¶
func (endpoint *Endpoint) Configure(w http.ResponseWriter, r *http.Request)
func (*Endpoint) LocalImages ¶
func (endpoint *Endpoint) LocalImages(w http.ResponseWriter, r *http.Request)
func (*Endpoint) RemoteImages ¶
func (endpoint *Endpoint) RemoteImages(w http.ResponseWriter, r *http.Request)
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server represents the backend API server.
architecture: Endpoint
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service for querying ERC20 token information from ethereum chain.
architecture: Service
func NewService ¶
NewService creates new token service instance.
func (Service) LocalImages ¶
func (Service) RemoteImages ¶
type ServiceConfig ¶
type ServiceConfig struct { }
type Supervisor ¶
type Supervisor struct {
// contains filtered or unexported fields
}
func (*Supervisor) Start ¶
func (s *Supervisor) Start() (err error)
func (*Supervisor) Status ¶
func (s *Supervisor) Status() (string, error)
func (*Supervisor) Stop ¶
func (s *Supervisor) Stop() error
Source Files
¶
Click to show internal directories.
Click to hide internal directories.