Documentation ¶
Index ¶
- type CouchDatabase
- func (db CouchDatabase) DeleteCluster(clusterID string) error
- func (db CouchDatabase) DeleteImage(imageName string) error
- func (db CouchDatabase) DeleteProject(name string) error
- func (db CouchDatabase) DeleteServiceType(name string) error
- func (db CouchDatabase) DeleteServiceVersion(sType string, vId string) (*proto.ServiceVersion, error)
- func (db CouchDatabase) DeleteTemplate(id string) error
- func (db CouchDatabase) ListClusters() ([]proto.Cluster, error)
- func (db CouchDatabase) ListImages() ([]proto.Image, error)
- func (db CouchDatabase) ListProjects() ([]proto.Project, error)
- func (db CouchDatabase) ListServicesTypes() ([]proto.ServiceType, error)
- func (db CouchDatabase) ListTemplates(projectID string) ([]proto.Template, error)
- func (db CouchDatabase) ReadCluster(clusterID string) (*proto.Cluster, error)
- func (db CouchDatabase) ReadClusterByName(projectID, clusterName string) (*proto.Cluster, error)
- func (db CouchDatabase) ReadImage(imageName string) (*proto.Image, error)
- func (db CouchDatabase) ReadProject(projectID string) (*proto.Project, error)
- func (db CouchDatabase) ReadProjectByName(projectName string) (*proto.Project, error)
- func (db CouchDatabase) ReadProjectClusters(projectID string) ([]proto.Cluster, error)
- func (db CouchDatabase) ReadServiceType(sTypeName string) (*proto.ServiceType, error)
- func (db CouchDatabase) ReadServiceVersion(sType string, vId string) (*proto.ServiceVersion, error)
- func (db CouchDatabase) ReadServiceVersionByName(sType string, version string) (*proto.ServiceVersion, error)
- func (db CouchDatabase) ReadTemplate(projectID, id string) (*proto.Template, error)
- func (db CouchDatabase) ReadTemplateByName(templateName string) (*proto.Template, error)
- func (db CouchDatabase) UpdateCluster(cluster *proto.Cluster) error
- func (db CouchDatabase) UpdateImage(id string, image *proto.Image) error
- func (db CouchDatabase) UpdateProject(project *proto.Project) error
- func (db CouchDatabase) UpdateServiceType(st *proto.ServiceType) error
- func (db CouchDatabase) WriteCluster(cluster *proto.Cluster) error
- func (db CouchDatabase) WriteImage(image *proto.Image) error
- func (db CouchDatabase) WriteProject(project *proto.Project) error
- func (db CouchDatabase) WriteServiceType(sType *proto.ServiceType) error
- func (db CouchDatabase) WriteTemplate(template *proto.Template) error
- type Database
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CouchDatabase ¶
type CouchDatabase struct { VaultCommunicator utils.SecretStorage // contains filtered or unexported fields }
func (CouchDatabase) DeleteCluster ¶
func (db CouchDatabase) DeleteCluster(clusterID string) error
func (CouchDatabase) DeleteImage ¶
func (db CouchDatabase) DeleteImage(imageName string) error
func (CouchDatabase) DeleteProject ¶
func (db CouchDatabase) DeleteProject(name string) error
func (CouchDatabase) DeleteServiceType ¶
func (db CouchDatabase) DeleteServiceType(name string) error
func (CouchDatabase) DeleteServiceVersion ¶
func (db CouchDatabase) DeleteServiceVersion(sType string, vId string) (*proto.ServiceVersion, error)
func (CouchDatabase) DeleteTemplate ¶
func (db CouchDatabase) DeleteTemplate(id string) error
func (CouchDatabase) ListClusters ¶
func (db CouchDatabase) ListClusters() ([]proto.Cluster, error)
func (CouchDatabase) ListImages ¶
func (db CouchDatabase) ListImages() ([]proto.Image, error)
func (CouchDatabase) ListProjects ¶
func (db CouchDatabase) ListProjects() ([]proto.Project, error)
func (CouchDatabase) ListServicesTypes ¶
func (db CouchDatabase) ListServicesTypes() ([]proto.ServiceType, error)
func (CouchDatabase) ListTemplates ¶
func (db CouchDatabase) ListTemplates(projectID string) ([]proto.Template, error)
func (CouchDatabase) ReadCluster ¶
func (db CouchDatabase) ReadCluster(clusterID string) (*proto.Cluster, error)
func (CouchDatabase) ReadClusterByName ¶
func (db CouchDatabase) ReadClusterByName(projectID, clusterName string) (*proto.Cluster, error)
func (CouchDatabase) ReadImage ¶
func (db CouchDatabase) ReadImage(imageName string) (*proto.Image, error)
func (CouchDatabase) ReadProject ¶
func (db CouchDatabase) ReadProject(projectID string) (*proto.Project, error)
func (CouchDatabase) ReadProjectByName ¶
func (db CouchDatabase) ReadProjectByName(projectName string) (*proto.Project, error)
func (CouchDatabase) ReadProjectClusters ¶
func (db CouchDatabase) ReadProjectClusters(projectID string) ([]proto.Cluster, error)
func (CouchDatabase) ReadServiceType ¶
func (db CouchDatabase) ReadServiceType(sTypeName string) (*proto.ServiceType, error)
func (CouchDatabase) ReadServiceVersion ¶
func (db CouchDatabase) ReadServiceVersion(sType string, vId string) (*proto.ServiceVersion, error)
func (CouchDatabase) ReadServiceVersionByName ¶
func (db CouchDatabase) ReadServiceVersionByName(sType string, version string) (*proto.ServiceVersion, error)
func (CouchDatabase) ReadTemplate ¶
func (db CouchDatabase) ReadTemplate(projectID, id string) (*proto.Template, error)
func (CouchDatabase) ReadTemplateByName ¶
func (db CouchDatabase) ReadTemplateByName(templateName string) (*proto.Template, error)
func (CouchDatabase) UpdateCluster ¶
func (db CouchDatabase) UpdateCluster(cluster *proto.Cluster) error
func (CouchDatabase) UpdateImage ¶
func (db CouchDatabase) UpdateImage(id string, image *proto.Image) error
func (CouchDatabase) UpdateProject ¶
func (db CouchDatabase) UpdateProject(project *proto.Project) error
func (CouchDatabase) UpdateServiceType ¶
func (db CouchDatabase) UpdateServiceType(st *proto.ServiceType) error
func (CouchDatabase) WriteCluster ¶
func (db CouchDatabase) WriteCluster(cluster *proto.Cluster) error
func (CouchDatabase) WriteImage ¶
func (db CouchDatabase) WriteImage(image *proto.Image) error
func (CouchDatabase) WriteProject ¶
func (db CouchDatabase) WriteProject(project *proto.Project) error
func (CouchDatabase) WriteServiceType ¶
func (db CouchDatabase) WriteServiceType(sType *proto.ServiceType) error
func (CouchDatabase) WriteTemplate ¶
func (db CouchDatabase) WriteTemplate(template *proto.Template) error
type Database ¶
type Database interface { ReadCluster(clusterID string) (*proto.Cluster, error) ReadClusterByName(projectID, clusterName string) (*proto.Cluster, error) WriteCluster(cluster *proto.Cluster) error DeleteCluster(clusterID string) error UpdateCluster(*proto.Cluster) error ListClusters() ([]proto.Cluster, error) ListProjects() ([]proto.Project, error) ReadProject(projectID string) (*proto.Project, error) ReadProjectByName(projectName string) (*proto.Project, error) ReadProjectClusters(projectID string) ([]proto.Cluster, error) WriteProject(project *proto.Project) error UpdateProject(*proto.Project) error DeleteProject(projectID string) error ReadTemplate(projectID, id string) (*proto.Template, error) ReadTemplateByName(templateName string) (*proto.Template, error) WriteTemplate(template *proto.Template) error DeleteTemplate(id string) error ListTemplates(projectID string) ([]proto.Template, error) WriteServiceType(sType *proto.ServiceType) error UpdateServiceType(st *proto.ServiceType) error ReadServiceType(sType string) (*proto.ServiceType, error) ListServicesTypes() ([]proto.ServiceType, error) DeleteServiceType(name string) error ReadServiceVersion(sType string, vId string) (*proto.ServiceVersion, error) ReadServiceVersionByName(sType string, version string) (*proto.ServiceVersion, error) DeleteServiceVersion(sType string, vId string) (*proto.ServiceVersion, error) ReadImage(imageName string) (*proto.Image, error) WriteImage(image *proto.Image) error DeleteImage(imageName string) error UpdateImage(name string, image *proto.Image) error ListImages() ([]proto.Image, error) }
func NewCouchBase ¶
func NewCouchBase(vaultCom utils.SecretStorage) (Database, error)
Click to show internal directories.
Click to hide internal directories.