Versions in this module Expand all Collapse all v1 v1.3.1 Jul 11, 2018 v1.3.0 Jun 10, 2018 Changes in this version + func MakeListAppsEndpoint(svc Service) endpoint.Endpoint + func MakeUploadAppEndpiont(svc Service) endpoint.Endpoint + func RegisterHTTPHandlers(r *mux.Router, e Endpoints, options ...httptransport.ServerOption) + type AppDTO struct + Name string + Payload []byte + type AppService struct + func New(store Store) *AppService + func (svc *AppService) ListApplications(ctx context.Context, opts ListAppsOption) ([]AppDTO, error) + func (svc *AppService) UploadApp(ctx context.Context, manifestName string, manifest io.Reader, pkgName string, ...) error + type Endpoints struct + AppUploadEndpoint endpoint.Endpoint + ListAppsEndpoint endpoint.Endpoint + func MakeServerEndpoints(s Service, outer endpoint.Middleware, others ...endpoint.Middleware) Endpoints + func (e Endpoints) ListApplications(ctx context.Context, opts ListAppsOption) ([]AppDTO, error) + func (e Endpoints) UploadApp(ctx context.Context, manifestName string, manifest io.Reader, pkgName string, ...) error + type ListAppsOption struct + FilterName []string + type Service interface + ListApplications func(ctx context.Context, opt ListAppsOption) ([]AppDTO, error) + UploadApp func(ctx context.Context, manifestName string, manifest io.Reader, pkgName string, ...) error + func NewHTTPClient(instance, token string, logger log.Logger, opts ...httptransport.ClientOption) (Service, error) + type Store interface + Apps func(name string) (map[string]appmanifest.Manifest, error) + Manifest func(name string) (*appmanifest.Manifest, error) + SaveFile func(name string, f io.Reader) error