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 + const ApplyAtEnroll + func MakeApplyBlueprintEndpoint(svc Service) endpoint.Endpoint + func MakeGetBlueprintsEndpoint(svc Service) endpoint.Endpoint + func MakeRemoveBlueprintsEndpoint(svc Service) endpoint.Endpoint + func MarshalBlueprint(bp *Blueprint) ([]byte, error) + func RegisterHTTPHandlers(r *mux.Router, e Endpoints, options ...httptransport.ServerOption) + func UnmarshalBlueprint(data []byte, bp *Blueprint) error + type Blueprint struct + ApplicationURLs []string + ApplyAt []string + Name string + ProfileIdentifiers []string + SetPrimarySetupAccountAsRegularUser bool + SkipPrimarySetupAccountCreation bool + UUID string + UserUUID []string + func (bp *Blueprint) Verify() error + type BlueprintService struct + func New(store Store) *BlueprintService + func (svc *BlueprintService) ApplyBlueprint(ctx context.Context, bp *Blueprint) error + func (svc *BlueprintService) GetBlueprints(ctx context.Context, opt GetBlueprintsOption) ([]Blueprint, error) + func (svc *BlueprintService) RemoveBlueprints(ctx context.Context, names []string) error + type Endpoints struct + ApplyBlueprintEndpoint endpoint.Endpoint + GetBlueprintsEndpoint endpoint.Endpoint + RemoveBlueprintsEndpoint endpoint.Endpoint + func MakeServerEndpoints(s Service, outer endpoint.Middleware, others ...endpoint.Middleware) Endpoints + func (e Endpoints) ApplyBlueprint(ctx context.Context, bp *Blueprint) error + func (e Endpoints) GetBlueprints(ctx context.Context, opt GetBlueprintsOption) ([]Blueprint, error) + func (e Endpoints) RemoveBlueprints(ctx context.Context, names []string) error + type GetBlueprintsOption struct + FilterName string + type Service interface + ApplyBlueprint func(ctx context.Context, bp *Blueprint) error + GetBlueprints func(ctx context.Context, opt GetBlueprintsOption) ([]Blueprint, error) + RemoveBlueprints func(ctx context.Context, names []string) error + func NewHTTPClient(instance, token string, logger log.Logger, opts ...httptransport.ClientOption) (Service, error) + type Store interface + BlueprintByName func(name string) (*Blueprint, error) + Delete func(string) error + List func() ([]Blueprint, error) + Save func(*Blueprint) error