Documentation ¶
Index ¶
- Variables
- type AppDao
- func (p *AppDao) Create(ctx context.Context, in *app.Application) (*app.Application, error)
- func (p *AppDao) Get(ctx context.Context, id string) (*app.Application, error)
- func (p *AppDao) GetByName(ctx context.Context, name string) (*app.Application, error)
- func (p *AppDao) List(ctx context.Context, m bson.M) ([]*app.Application, int64, error)
- func (p *AppDao) Update(ctx context.Context, in *app.Application) (*app.Application, error)
- type BuilderDao
- func (p *BuilderDao) Create(ctx context.Context, in *builder.Builder) (*builder.Builder, error)
- func (p *BuilderDao) Get(ctx context.Context, id string) (*builder.Builder, error)
- func (p *BuilderDao) GetByName(ctx context.Context, name string) (*builder.Builder, error)
- func (p *BuilderDao) List(ctx context.Context, m bson.M) ([]*builder.Builder, int64, error)
- func (p *BuilderDao) Update(ctx context.Context, in *builder.Builder) (*builder.Builder, error)
- type ClusterDao
- func (p *ClusterDao) Create(ctx context.Context, in *cluster.Cluster) (*cluster.Cluster, error)
- func (p *ClusterDao) Get(ctx context.Context, id string) (*cluster.Cluster, error)
- func (p *ClusterDao) List(ctx context.Context, m bson.M) ([]*cluster.Cluster, int64, error)
- func (p *ClusterDao) Update(ctx context.Context, in *cluster.Cluster) (*cluster.Cluster, error)
- type Dao
- type DeploymentDao
- func (p *DeploymentDao) Create(ctx context.Context, in *deployment.Deployment) (*deployment.Deployment, error)
- func (p *DeploymentDao) Get(ctx context.Context, id string) (*deployment.Deployment, error)
- func (p *DeploymentDao) GetByName(ctx context.Context, name string) (*deployment.Deployment, error)
- func (p *DeploymentDao) List(ctx context.Context, m bson.M) ([]*deployment.Deployment, int64, error)
- func (p *DeploymentDao) Update(ctx context.Context, in *deployment.Deployment) (*deployment.Deployment, error)
- type EgressDao
- func (p *EgressDao) Create(ctx context.Context, in *egress.Egress) (*egress.Egress, error)
- func (p *EgressDao) Get(ctx context.Context, id string) (*egress.Egress, error)
- func (p *EgressDao) List(ctx context.Context, m bson.M) ([]*egress.Egress, int64, error)
- func (p *EgressDao) Update(ctx context.Context, in *egress.Egress) (*egress.Egress, error)
- type EntryDao
- func (p *EntryDao) Create(ctx context.Context, in *entry.Entry) (*entry.Entry, error)
- func (p *EntryDao) Get(ctx context.Context, id string) (*entry.Entry, error)
- func (p *EntryDao) List(ctx context.Context, m bson.M) ([]*entry.Entry, int64, error)
- func (p *EntryDao) Update(ctx context.Context, in *entry.Entry) (*entry.Entry, error)
- type Gateway
- func (p *Gateway) Create(ctx context.Context, in *gateway.Gateway) (*gateway.Gateway, error)
- func (p *Gateway) Get(ctx context.Context, id string) (*gateway.Gateway, error)
- func (p *Gateway) List(ctx context.Context, m bson.M) ([]*gateway.Gateway, int64, error)
- func (p *Gateway) Update(ctx context.Context, in *gateway.Gateway) (*gateway.Gateway, error)
- type ImageRegistryDao
- func (p *ImageRegistryDao) Create(ctx context.Context, in *image.Registry) (*image.Registry, error)
- func (p *ImageRegistryDao) Get(ctx context.Context, id string) (*image.Registry, error)
- func (p *ImageRegistryDao) GetByName(ctx context.Context, name string) (*image.Registry, error)
- func (p *ImageRegistryDao) List(ctx context.Context, m bson.M) ([]*image.Registry, int64, error)
- func (p *ImageRegistryDao) Update(ctx context.Context, in *image.Registry) (*image.Registry, error)
- type MiddlewareClaim
- func (p *MiddlewareClaim) Create(ctx context.Context, in *middleware.Claim) (*middleware.Claim, error)
- func (p *MiddlewareClaim) Get(ctx context.Context, id string) (*middleware.Claim, error)
- func (p *MiddlewareClaim) List(ctx context.Context, m bson.M) ([]*middleware.Claim, int64, error)
- func (p *MiddlewareClaim) Update(ctx context.Context, in *middleware.Claim) (*middleware.Claim, error)
- type MiddlewareInstance
- func (p *MiddlewareInstance) Create(ctx context.Context, in *middleware.Instance) (*middleware.Instance, error)
- func (p *MiddlewareInstance) FindByAppid(ctx context.Context, mType string, appid string) (*middleware.Instance, error)
- func (p *MiddlewareInstance) Get(ctx context.Context, id string) (*middleware.Instance, error)
- func (p *MiddlewareInstance) GetDefault(ctx context.Context, mType string, env string) (*middleware.Instance, error)
- func (p *MiddlewareInstance) List(ctx context.Context, m bson.M) ([]*middleware.Instance, int64, error)
- func (p *MiddlewareInstance) Update(ctx context.Context, in *middleware.Instance) (*middleware.Instance, error)
- type ProjectDao
- func (p *ProjectDao) Create(ctx context.Context, in *project.Project) (*project.Project, error)
- func (p *ProjectDao) Get(ctx context.Context, id string) (*project.Project, error)
- func (p *ProjectDao) List(ctx context.Context, m bson.M) ([]*project.Project, int64, error)
- func (p *ProjectDao) Update(ctx context.Context, in *project.Project) (*project.Project, error)
- type ProjectImageDao
- func (p *ProjectImageDao) Create(ctx context.Context, in *image.Image) (*image.Image, error)
- func (p *ProjectImageDao) Get(ctx context.Context, id string) (*image.Image, error)
- func (p *ProjectImageDao) GetByName(ctx context.Context, name string) (*image.Image, error)
- func (p *ProjectImageDao) List(ctx context.Context, m bson.M) ([]*image.Image, int64, error)
- func (p *ProjectImageDao) Update(ctx context.Context, in *image.Image) (*image.Image, error)
- type ProviderDao
- func (p *ProviderDao) Create(ctx context.Context, in *provider.Provider) (*provider.Provider, error)
- func (p *ProviderDao) Get(ctx context.Context, id string) (*provider.Provider, error)
- func (p *ProviderDao) GetByName(ctx context.Context, name string) (*provider.Provider, error)
- func (p *ProviderDao) List(ctx context.Context, m bson.M) ([]*provider.Provider, int64, error)
- func (p *ProviderDao) Update(ctx context.Context, in *provider.Provider) (*provider.Provider, error)
- type RouteDao
- func (p *RouteDao) Create(ctx context.Context, in *route.Route) (*route.Route, error)
- func (p *RouteDao) Get(ctx context.Context, id string) (*route.Route, error)
- func (p *RouteDao) List(ctx context.Context, m bson.M) ([]*route.Route, int64, error)
- func (p *RouteDao) Update(ctx context.Context, in *route.Route) (*route.Route, error)
- type UserDao
- func (p *UserDao) Create(ctx context.Context, in *user.User) (*user.User, error)
- func (p *UserDao) Get(ctx context.Context, id string) (*user.User, error)
- func (p *UserDao) GetByOuterId(ctx context.Context, subject string) (*user.User, error)
- func (p *UserDao) List(ctx context.Context, m bson.M) ([]*user.User, int64, error)
- func (p *UserDao) Update(ctx context.Context, in *user.User) (*user.User, error)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type AppDao ¶
type AppDao struct {
*Dao
}
func (*AppDao) Create ¶
func (p *AppDao) Create(ctx context.Context, in *app.Application) (*app.Application, error)
func (*AppDao) Update ¶
func (p *AppDao) Update(ctx context.Context, in *app.Application) (*app.Application, error)
type BuilderDao ¶
type BuilderDao struct {
*Dao
}
func NewBuilderDao ¶
func NewBuilderDao(db *mongo.Database) *BuilderDao
type ClusterDao ¶
type ClusterDao struct {
*Dao
}
func NewClusterDao ¶
func NewClusterDao(db *mongo.Database) *ClusterDao
type Dao ¶
type Dao struct {
// contains filtered or unexported fields
}
func NewDao ¶
func NewDao(collection *mongo.Collection) *Dao
type DeploymentDao ¶
type DeploymentDao struct {
*Dao
}
func NewDeploymentDao ¶
func NewDeploymentDao(db *mongo.Database) *DeploymentDao
func (*DeploymentDao) Create ¶
func (p *DeploymentDao) Create(ctx context.Context, in *deployment.Deployment) (*deployment.Deployment, error)
func (*DeploymentDao) Get ¶
func (p *DeploymentDao) Get(ctx context.Context, id string) (*deployment.Deployment, error)
func (*DeploymentDao) GetByName ¶
func (p *DeploymentDao) GetByName(ctx context.Context, name string) (*deployment.Deployment, error)
func (*DeploymentDao) List ¶
func (p *DeploymentDao) List(ctx context.Context, m bson.M) ([]*deployment.Deployment, int64, error)
func (*DeploymentDao) Update ¶
func (p *DeploymentDao) Update(ctx context.Context, in *deployment.Deployment) (*deployment.Deployment, error)
type EgressDao ¶
type EgressDao struct {
*Dao
}
func NewEgressDao ¶
type EntryDao ¶
type EntryDao struct {
*Dao
}
func NewEntryDao ¶
type Gateway ¶ added in v0.0.3
type Gateway struct {
*Dao
}
func NewGateway ¶ added in v0.0.3
type ImageRegistryDao ¶
type ImageRegistryDao struct {
*Dao
}
func NewRegistryDao ¶
func NewRegistryDao(db *mongo.Database) *ImageRegistryDao
type MiddlewareClaim ¶
type MiddlewareClaim struct {
*Dao
}
func NewMiddlewareClaimDao ¶
func NewMiddlewareClaimDao(db *mongo.Database) *MiddlewareClaim
func (*MiddlewareClaim) Create ¶
func (p *MiddlewareClaim) Create(ctx context.Context, in *middleware.Claim) (*middleware.Claim, error)
func (*MiddlewareClaim) Get ¶
func (p *MiddlewareClaim) Get(ctx context.Context, id string) (*middleware.Claim, error)
func (*MiddlewareClaim) List ¶
func (p *MiddlewareClaim) List(ctx context.Context, m bson.M) ([]*middleware.Claim, int64, error)
func (*MiddlewareClaim) Update ¶
func (p *MiddlewareClaim) Update(ctx context.Context, in *middleware.Claim) (*middleware.Claim, error)
type MiddlewareInstance ¶
type MiddlewareInstance struct {
*Dao
}
func NewMiddlewareInstanceDao ¶
func NewMiddlewareInstanceDao(db *mongo.Database) *MiddlewareInstance
func (*MiddlewareInstance) Create ¶
func (p *MiddlewareInstance) Create(ctx context.Context, in *middleware.Instance) (*middleware.Instance, error)
func (*MiddlewareInstance) FindByAppid ¶
func (p *MiddlewareInstance) FindByAppid(ctx context.Context, mType string, appid string) (*middleware.Instance, error)
func (*MiddlewareInstance) Get ¶
func (p *MiddlewareInstance) Get(ctx context.Context, id string) (*middleware.Instance, error)
func (*MiddlewareInstance) GetDefault ¶
func (p *MiddlewareInstance) GetDefault(ctx context.Context, mType string, env string) (*middleware.Instance, error)
func (*MiddlewareInstance) List ¶
func (p *MiddlewareInstance) List(ctx context.Context, m bson.M) ([]*middleware.Instance, int64, error)
func (*MiddlewareInstance) Update ¶
func (p *MiddlewareInstance) Update(ctx context.Context, in *middleware.Instance) (*middleware.Instance, error)
type ProjectDao ¶
type ProjectDao struct {
*Dao
}
func NewProject ¶
func NewProject(db *mongo.Database) *ProjectDao
type ProjectImageDao ¶
type ProjectImageDao struct {
*Dao
}
func NewProjectImageDao ¶
func NewProjectImageDao(db *mongo.Database) *ProjectImageDao
type ProviderDao ¶
type ProviderDao struct {
*Dao
}
func NewProviderDao ¶
func NewProviderDao(db *mongo.Database) *ProviderDao
type RouteDao ¶
type RouteDao struct {
*Dao
}
func NewRouteDao ¶
Click to show internal directories.
Click to hide internal directories.