Documentation ¶
Index ¶
- Constants
- type Etcd
- func (r *Etcd) CreateProject(ctx kapi.Context, project *api.Project) error
- func (r *Etcd) DeleteProject(ctx kapi.Context, id string) error
- func (r *Etcd) GetProject(ctx kapi.Context, id string) (*api.Project, error)
- func (r *Etcd) ListProjects(ctx kapi.Context, selector labels.Selector) (*api.ProjectList, error)
- func (r *Etcd) UpdateProject(ctx kapi.Context, project *api.Project) error
Constants ¶
View Source
const ( // ProjectPath is the path to project resources in etcd ProjectPath string = "/projects" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Etcd ¶
type Etcd struct {
tools.EtcdHelper
}
Etcd implements ProjectRegistry and ProjectRepositoryRegistry backed by etcd.
func (*Etcd) CreateProject ¶
CreateProject creates a new project
func (*Etcd) DeleteProject ¶
DeleteProject deletes an existing project
func (*Etcd) GetProject ¶
GetProject retrieves a specific project
func (*Etcd) ListProjects ¶
ListProjects retrieves a list of projects that match selector.
Click to show internal directories.
Click to hide internal directories.