Documentation
¶
Index ¶
- type BoltStore
- func (s *BoltStore) Close() error
- func (s *BoltStore) CreateIngress(ingress *types.Ingress) error
- func (s *BoltStore) CreateNetwork(network *types.Network) error
- func (s *BoltStore) CreateNode(node *types.Node) error
- func (s *BoltStore) CreateSecret(secret *types.Secret) error
- func (s *BoltStore) CreateService(service *types.Service) error
- func (s *BoltStore) CreateTLSCertificate(cert *types.TLSCertificate) error
- func (s *BoltStore) CreateTask(task *types.Task) error
- func (s *BoltStore) CreateVolume(volume *types.Volume) error
- func (s *BoltStore) DeleteIngress(id string) error
- func (s *BoltStore) DeleteNetwork(id string) error
- func (s *BoltStore) DeleteNode(id string) error
- func (s *BoltStore) DeleteSecret(id string) error
- func (s *BoltStore) DeleteService(id string) error
- func (s *BoltStore) DeleteTLSCertificate(id string) error
- func (s *BoltStore) DeleteTask(id string) error
- func (s *BoltStore) DeleteVolume(id string) error
- func (s *BoltStore) GetCA() ([]byte, error)
- func (s *BoltStore) GetIngress(id string) (*types.Ingress, error)
- func (s *BoltStore) GetIngressByName(name string) (*types.Ingress, error)
- func (s *BoltStore) GetNetwork(id string) (*types.Network, error)
- func (s *BoltStore) GetNode(id string) (*types.Node, error)
- func (s *BoltStore) GetSecret(id string) (*types.Secret, error)
- func (s *BoltStore) GetSecretByName(name string) (*types.Secret, error)
- func (s *BoltStore) GetService(id string) (*types.Service, error)
- func (s *BoltStore) GetServiceByName(name string) (*types.Service, error)
- func (s *BoltStore) GetTLSCertificate(id string) (*types.TLSCertificate, error)
- func (s *BoltStore) GetTLSCertificateByName(name string) (*types.TLSCertificate, error)
- func (s *BoltStore) GetTLSCertificatesByHost(host string) ([]*types.TLSCertificate, error)
- func (s *BoltStore) GetTask(id string) (*types.Task, error)
- func (s *BoltStore) GetVolume(id string) (*types.Volume, error)
- func (s *BoltStore) GetVolumeByName(name string) (*types.Volume, error)
- func (s *BoltStore) ListIngresses() ([]*types.Ingress, error)
- func (s *BoltStore) ListNetworks() ([]*types.Network, error)
- func (s *BoltStore) ListNodes() ([]*types.Node, error)
- func (s *BoltStore) ListSecrets() ([]*types.Secret, error)
- func (s *BoltStore) ListServices() ([]*types.Service, error)
- func (s *BoltStore) ListTLSCertificates() ([]*types.TLSCertificate, error)
- func (s *BoltStore) ListTasks() ([]*types.Task, error)
- func (s *BoltStore) ListTasksByNode(nodeID string) ([]*types.Task, error)
- func (s *BoltStore) ListTasksByService(serviceID string) ([]*types.Task, error)
- func (s *BoltStore) ListVolumes() ([]*types.Volume, error)
- func (s *BoltStore) SaveCA(data []byte) error
- func (s *BoltStore) UpdateIngress(ingress *types.Ingress) error
- func (s *BoltStore) UpdateNode(node *types.Node) error
- func (s *BoltStore) UpdateService(service *types.Service) error
- func (s *BoltStore) UpdateTLSCertificate(cert *types.TLSCertificate) error
- func (s *BoltStore) UpdateTask(task *types.Task) error
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BoltStore ¶
type BoltStore struct {
// contains filtered or unexported fields
}
BoltStore implements Store interface using BoltDB
func NewBoltStore ¶
NewBoltStore creates a new BoltDB-backed store
func (*BoltStore) CreateIngress ¶
CreateIngress creates a new ingress
func (*BoltStore) CreateNetwork ¶
Network operations
func (*BoltStore) CreateNode ¶
Node operations
func (*BoltStore) CreateSecret ¶
Secret operations
func (*BoltStore) CreateService ¶
Service operations
func (*BoltStore) CreateTLSCertificate ¶
func (s *BoltStore) CreateTLSCertificate(cert *types.TLSCertificate) error
CreateTLSCertificate creates a new TLS certificate
func (*BoltStore) CreateTask ¶
Task operations
func (*BoltStore) CreateVolume ¶
Volume operations
func (*BoltStore) DeleteIngress ¶
DeleteIngress deletes an ingress
func (*BoltStore) DeleteNetwork ¶
func (*BoltStore) DeleteNode ¶
func (*BoltStore) DeleteSecret ¶
func (*BoltStore) DeleteService ¶
func (*BoltStore) DeleteTLSCertificate ¶
DeleteTLSCertificate deletes a TLS certificate
func (*BoltStore) DeleteTask ¶
func (*BoltStore) DeleteVolume ¶
func (*BoltStore) GetIngress ¶
GetIngress retrieves an ingress by ID
func (*BoltStore) GetIngressByName ¶
GetIngressByName retrieves an ingress by name
func (*BoltStore) GetSecretByName ¶
func (*BoltStore) GetServiceByName ¶
func (*BoltStore) GetTLSCertificate ¶
func (s *BoltStore) GetTLSCertificate(id string) (*types.TLSCertificate, error)
GetTLSCertificate retrieves a TLS certificate by ID
func (*BoltStore) GetTLSCertificateByName ¶
func (s *BoltStore) GetTLSCertificateByName(name string) (*types.TLSCertificate, error)
GetTLSCertificateByName retrieves a TLS certificate by name
func (*BoltStore) GetTLSCertificatesByHost ¶
func (s *BoltStore) GetTLSCertificatesByHost(host string) ([]*types.TLSCertificate, error)
GetTLSCertificatesByHost retrieves all TLS certificates that cover a specific host
func (*BoltStore) GetVolumeByName ¶
func (*BoltStore) ListIngresses ¶
ListIngresses returns all ingresses
func (*BoltStore) ListTLSCertificates ¶
func (s *BoltStore) ListTLSCertificates() ([]*types.TLSCertificate, error)
ListTLSCertificates lists all TLS certificates
func (*BoltStore) ListTasksByNode ¶
func (*BoltStore) ListTasksByService ¶
func (*BoltStore) UpdateIngress ¶
UpdateIngress updates an existing ingress
func (*BoltStore) UpdateTLSCertificate ¶
func (s *BoltStore) UpdateTLSCertificate(cert *types.TLSCertificate) error
UpdateTLSCertificate updates an existing TLS certificate
type Store ¶
type Store interface {
// Nodes
CreateNode(node *types.Node) error
GetNode(id string) (*types.Node, error)
ListNodes() ([]*types.Node, error)
UpdateNode(node *types.Node) error
DeleteNode(id string) error
// Services
CreateService(service *types.Service) error
GetService(id string) (*types.Service, error)
GetServiceByName(name string) (*types.Service, error)
ListServices() ([]*types.Service, error)
UpdateService(service *types.Service) error
DeleteService(id string) error
// Tasks
CreateTask(task *types.Task) error
GetTask(id string) (*types.Task, error)
ListTasks() ([]*types.Task, error)
ListTasksByService(serviceID string) ([]*types.Task, error)
ListTasksByNode(nodeID string) ([]*types.Task, error)
UpdateTask(task *types.Task) error
DeleteTask(id string) error
// Secrets
CreateSecret(secret *types.Secret) error
GetSecret(id string) (*types.Secret, error)
GetSecretByName(name string) (*types.Secret, error)
ListSecrets() ([]*types.Secret, error)
DeleteSecret(id string) error
// Volumes
CreateVolume(volume *types.Volume) error
GetVolume(id string) (*types.Volume, error)
GetVolumeByName(name string) (*types.Volume, error)
ListVolumes() ([]*types.Volume, error)
DeleteVolume(id string) error
// Networks
CreateNetwork(network *types.Network) error
GetNetwork(id string) (*types.Network, error)
ListNetworks() ([]*types.Network, error)
DeleteNetwork(id string) error
// Certificate Authority
SaveCA(data []byte) error
GetCA() ([]byte, error)
// Ingresses
CreateIngress(ingress *types.Ingress) error
GetIngress(id string) (*types.Ingress, error)
GetIngressByName(name string) (*types.Ingress, error)
ListIngresses() ([]*types.Ingress, error)
UpdateIngress(ingress *types.Ingress) error
DeleteIngress(id string) error
// TLS Certificates
CreateTLSCertificate(cert *types.TLSCertificate) error
GetTLSCertificate(id string) (*types.TLSCertificate, error)
GetTLSCertificateByName(name string) (*types.TLSCertificate, error)
GetTLSCertificatesByHost(host string) ([]*types.TLSCertificate, error)
ListTLSCertificates() ([]*types.TLSCertificate, error)
UpdateTLSCertificate(cert *types.TLSCertificate) error
DeleteTLSCertificate(id string) error
// Utility
Close() error
}
Store defines the interface for cluster state storage This will be implemented by BoltDB-backed storage