Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeListAppsEndpoint ¶
func MakeUploadAppEndpiont ¶
func RegisterHTTPHandlers ¶
func RegisterHTTPHandlers(r *mux.Router, e Endpoints, options ...httptransport.ServerOption)
Types ¶
type AppService ¶
type AppService struct {
// contains filtered or unexported fields
}
func New ¶
func New(store Store) *AppService
func (*AppService) ListApplications ¶
func (svc *AppService) ListApplications(ctx context.Context, opts ListAppsOption) ([]AppDTO, error)
type Endpoints ¶
func MakeServerEndpoints ¶
func MakeServerEndpoints(s Service, outer endpoint.Middleware, others ...endpoint.Middleware) Endpoints
func (Endpoints) ListApplications ¶
type ListAppsOption ¶
type ListAppsOption struct {
FilterName []string `json:"filter_name"`
}
type Service ¶
type Service interface { UploadApp(ctx context.Context, manifestName string, manifest io.Reader, pkgName string, pkg io.Reader) error ListApplications(ctx context.Context, opt ListAppsOption) ([]AppDTO, error) }
func NewHTTPClient ¶
func NewHTTPClient(instance, token string, logger log.Logger, opts ...httptransport.ClientOption) (Service, error)
Click to show internal directories.
Click to hide internal directories.