Documentation
¶
Index ¶
- type DashboardsStore
- func (multi *DashboardsStore) Add(ctx context.Context, dashboard cmp.Dashboard) (cmp.Dashboard, error)
- func (multi *DashboardsStore) All(ctx context.Context) ([]cmp.Dashboard, error)
- func (multi *DashboardsStore) Delete(ctx context.Context, dashboard cmp.Dashboard) error
- func (multi *DashboardsStore) Get(ctx context.Context, id cmp.DashboardID) (cmp.Dashboard, error)
- func (multi *DashboardsStore) Update(ctx context.Context, dashboard cmp.Dashboard) error
- type KapacitorStore
- func (multi *KapacitorStore) Add(ctx context.Context, kap cmp.Server) (cmp.Server, error)
- func (multi *KapacitorStore) All(ctx context.Context) ([]cmp.Server, error)
- func (multi *KapacitorStore) Delete(ctx context.Context, kap cmp.Server) error
- func (multi *KapacitorStore) Get(ctx context.Context, id int) (cmp.Server, error)
- func (multi *KapacitorStore) Update(ctx context.Context, kap cmp.Server) error
- type Layouts
- func (s *Layouts) Add(ctx context.Context, layout cmp.Layout) (cmp.Layout, error)
- func (s *Layouts) All(ctx context.Context) ([]cmp.Layout, error)
- func (s *Layouts) Delete(ctx context.Context, layout cmp.Layout) error
- func (s *Layouts) Get(ctx context.Context, ID string) (cmp.Layout, error)
- func (s *Layouts) Update(ctx context.Context, layout cmp.Layout) error
- type OrganizationsStore
- func (multi *OrganizationsStore) Add(ctx context.Context, org *cmp.Organization) (*cmp.Organization, error)
- func (multi *OrganizationsStore) All(ctx context.Context) ([]cmp.Organization, error)
- func (multi *OrganizationsStore) CreateDefault(ctx context.Context) error
- func (multi *OrganizationsStore) DefaultOrganization(ctx context.Context) (*cmp.Organization, error)
- func (multi *OrganizationsStore) Delete(ctx context.Context, org *cmp.Organization) error
- func (multi *OrganizationsStore) Get(ctx context.Context, query cmp.OrganizationQuery) (*cmp.Organization, error)
- func (multi *OrganizationsStore) Update(ctx context.Context, org *cmp.Organization) error
- type Protoboards
- func (s *Protoboards) Add(ctx context.Context, protoboard cmp.Protoboard) (cmp.Protoboard, error)
- func (s *Protoboards) All(ctx context.Context) ([]cmp.Protoboard, error)
- func (s *Protoboards) Delete(ctx context.Context, protoboard cmp.Protoboard) error
- func (s *Protoboards) Get(ctx context.Context, ID string) (cmp.Protoboard, error)
- func (s *Protoboards) Update(ctx context.Context, protoboard cmp.Protoboard) error
- type SourcesStore
- func (multi *SourcesStore) Add(ctx context.Context, src cmp.Source) (cmp.Source, error)
- func (multi *SourcesStore) All(ctx context.Context) ([]cmp.Source, error)
- func (multi *SourcesStore) Delete(ctx context.Context, src cmp.Source) error
- func (multi *SourcesStore) Get(ctx context.Context, id int) (cmp.Source, error)
- func (multi *SourcesStore) Update(ctx context.Context, src cmp.Source) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DashboardsStore ¶
type DashboardsStore struct {
Stores []cmp.DashboardsStore
}
DashboardsStore implements the cmp.DashboardsStore interface, and delegates to all contained DashboardsStores
func (*DashboardsStore) Add ¶
func (multi *DashboardsStore) Add(ctx context.Context, dashboard cmp.Dashboard) (cmp.Dashboard, error)
Add the dashboard to the first responsive Store
func (*DashboardsStore) Delete ¶
Delete delegates to all Stores, returns success if one Store is successful
func (*DashboardsStore) Get ¶
func (multi *DashboardsStore) Get(ctx context.Context, id cmp.DashboardID) (cmp.Dashboard, error)
Get finds the Dashboard by id among all contained Stores
type KapacitorStore ¶
type KapacitorStore struct {
Stores []cmp.ServersStore
}
KapacitorStore implements the cmp.ServersStore interface, and delegates to all contained KapacitorStores
func (*KapacitorStore) Delete ¶
Delete delegates to all Stores, returns success if one Store is successful
type Layouts ¶
type Layouts struct {
Stores []cmp.LayoutsStore
}
Layouts is a LayoutsStore that contains multiple LayoutsStores The All method will return the set of all Layouts. Each method will be tried against the Stores slice serially.
func (*Layouts) Add ¶
Add creates a new dashboard in the LayoutsStore. Tries each store sequentially until success.
func (*Layouts) Delete ¶
Delete the dashboard from the store. Searches through all stores to find Layout and then deletes from that store.
type OrganizationsStore ¶
type OrganizationsStore struct {
Stores []cmp.OrganizationsStore
}
OrganizationsStore implements the cmp.OrganizationsStore interface, and delegates to all contained OrganizationsStores
func (*OrganizationsStore) Add ¶
func (multi *OrganizationsStore) Add(ctx context.Context, org *cmp.Organization) (*cmp.Organization, error)
Add the org to the first responsive Store
func (*OrganizationsStore) All ¶
func (multi *OrganizationsStore) All(ctx context.Context) ([]cmp.Organization, error)
All concatenates the Organizations of all contained Stores
func (*OrganizationsStore) CreateDefault ¶
func (multi *OrganizationsStore) CreateDefault(ctx context.Context) error
CreateDefault makes a default organization in the first responsive Store
func (*OrganizationsStore) DefaultOrganization ¶
func (multi *OrganizationsStore) DefaultOrganization(ctx context.Context) (*cmp.Organization, error)
DefaultOrganization returns the first successful DefaultOrganization
func (*OrganizationsStore) Delete ¶
func (multi *OrganizationsStore) Delete(ctx context.Context, org *cmp.Organization) error
Delete delegates to all Stores, returns success if one Store is successful
func (*OrganizationsStore) Get ¶
func (multi *OrganizationsStore) Get(ctx context.Context, query cmp.OrganizationQuery) (*cmp.Organization, error)
Get finds the Organization by id among all contained Stores
func (*OrganizationsStore) Update ¶
func (multi *OrganizationsStore) Update(ctx context.Context, org *cmp.Organization) error
Update the first responsive Store
type Protoboards ¶
type Protoboards struct {
Stores []cmp.ProtoboardsStore
}
Protoboards is a ProtoboardsStore that contains multiple ProtoboardsStores The All method will return the set of all Protoboards. Each method will be tried against the Stores slice serially.
func (*Protoboards) Add ¶
func (s *Protoboards) Add(ctx context.Context, protoboard cmp.Protoboard) (cmp.Protoboard, error)
Add creates a new protoboard in the protoboardsStore.
func (*Protoboards) All ¶
func (s *Protoboards) All(ctx context.Context) ([]cmp.Protoboard, error)
All returns the set of all protoboards
func (*Protoboards) Delete ¶
func (s *Protoboards) Delete(ctx context.Context, protoboard cmp.Protoboard) error
Delete the protoboard from the store.
func (*Protoboards) Get ¶
func (s *Protoboards) Get(ctx context.Context, ID string) (cmp.Protoboard, error)
Get retrieves protoboard if `ID` exists. Searches through each store sequentially until success.
func (*Protoboards) Update ¶
func (s *Protoboards) Update(ctx context.Context, protoboard cmp.Protoboard) error
Update the protoboard in the store.
type SourcesStore ¶
type SourcesStore struct {
Stores []cmp.SourcesStore
}
SourcesStore delegates to the SourcesStores that compose it
func (*SourcesStore) Delete ¶
Delete delegates to all stores, returns success if one Store is successful