Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DAO ¶
type DAO interface {
Create(entity *v1.Datasource) error
Update(entity *v1.Datasource) error
Delete(project string, name string) error
DeleteAll(project string) error
Get(project string, name string) (*v1.Datasource, error)
List(q databaseModel.Query) ([]*v1.Datasource, error)
}
type Query ¶
type Query struct {
databaseModel.Query
// NamePrefix is a prefix of the Datasource.metadata.name that is used to filter the list of the Datasource.
// NamePrefix can be empty in case you want to return the full list of Datasource available.
NamePrefix string `query:"name"`
// Project is the exact name of the project.
// The value can come from the path of the URL or from the query parameter
Project string `param:"project" query:"project"`
// Kind is the type of the datasource.
Kind string `query:"kind"`
// Default will filter the list of datasource and return only the default datasource, whatever the kind of the datasource is.
Default *bool `query:"default"`
}
type Service ¶
type Service interface {
shared.ToolboxService
}
Click to show internal directories.
Click to hide internal directories.