Documentation
¶
Index ¶
- Variables
- type IPScheduler
- func (s *IPScheduler) ConfiguredIPs(ctx context.Context) []api.IP
- func (s *IPScheduler) GetIP(ctx context.Context, id string) *api.IP
- func (s *IPScheduler) Start(ctx context.Context, ipAddr models.IP) (models.IP, error)
- func (s *IPScheduler) Status(id string) string
- func (s *IPScheduler) Stop(ctx context.Context, id string) error
- func (s *IPScheduler) TryGetLock(ctx context.Context, id string) bool
- type Scheduler
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotStopping = errors.New("not stopping")
)
Functions ¶
This section is empty.
Types ¶
type IPScheduler ¶
type IPScheduler struct {
// contains filtered or unexported fields
}
func NewIPScheduler ¶
func NewIPScheduler(config config.Config, etcd *clientv3.Client, storage models.Storage, leaseManager locker.EtcdLeaseManager) *IPScheduler
func (*IPScheduler) ConfiguredIPs ¶
func (s *IPScheduler) ConfiguredIPs(ctx context.Context) []api.IP
func (*IPScheduler) Status ¶
func (s *IPScheduler) Status(id string) string
func (*IPScheduler) TryGetLock ¶
func (s *IPScheduler) TryGetLock(ctx context.Context, id string) bool
Directories
¶
Path | Synopsis |
---|---|
Package schedulermock is a generated GoMock package.
|
Package schedulermock is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.