Documentation
¶
Index ¶
- func NewRequirements(cpu, mem float64, width int) reflow.Requirements
- func NewTask(cpu, mem float64, priority int) *sched.Task
- func RandomFileset(repo reflow.Repository) reflow.Fileset
- func RandomRepoFileset(repo reflow.Repository) reflow.Fileset
- func SetLogger(task *sched.Task)
- type TestAlloc
- func (a *TestAlloc) CompleteAll(ctx context.Context)
- func (a *TestAlloc) Error(err error)
- func (a *TestAlloc) Exec(id digest.Digest) *testExec
- func (a *TestAlloc) Free(ctx context.Context) error
- func (a *TestAlloc) ID() string
- func (a *TestAlloc) Inspect(ctx context.Context) (pool.AllocInspect, error)
- func (a *TestAlloc) Keepalive(ctx context.Context, interval time.Duration) (time.Duration, error)
- func (a *TestAlloc) Load(ctx context.Context, url *url.URL, fs reflow.Fileset) (reflow.Fileset, error)
- func (a *TestAlloc) NExecs() int
- func (a *TestAlloc) Put(ctx context.Context, id digest.Digest, config reflow.ExecConfig) (reflow.Exec, error)
- func (a *TestAlloc) RefCount() map[digest.Digest]int64
- func (a *TestAlloc) RefCountInc(id digest.Digest)
- func (a *TestAlloc) Repository() reflow.Repository
- func (a *TestAlloc) Resources() reflow.Resources
- func (a *TestAlloc) Unload(ctx context.Context, fs reflow.Fileset) error
- func (a *TestAlloc) VerifyIntegrity(ctx context.Context, fs reflow.Fileset) error
- type TestCluster
- type TestClusterAllocReply
- type TestPool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRequirements ¶
func NewRequirements(cpu, mem float64, width int) reflow.Requirements
func RandomFileset ¶
func RandomFileset(repo reflow.Repository) reflow.Fileset
func RandomRepoFileset ¶
func RandomRepoFileset(repo reflow.Repository) reflow.Fileset
Types ¶
type TestAlloc ¶
func NewTestAlloc ¶
func (*TestAlloc) CompleteAll ¶
CompleteAll completes all execs put in this alloc after a minimum duration has elapsed. The duration for each exec is expected to be set in `exec.Config.Ident`.
func (*TestAlloc) RefCountInc ¶
func (*TestAlloc) Repository ¶
func (a *TestAlloc) Repository() reflow.Repository
type TestCluster ¶
type TestCluster struct {
// contains filtered or unexported fields
}
func NewTestCluster ¶
func NewTestCluster() *TestCluster
func (*TestCluster) Allocate ¶
func (c *TestCluster) Allocate(ctx context.Context, req reflow.Requirements, labels pool.Labels) (pool.Alloc, error)
func (*TestCluster) CanAllocate ¶
func (c *TestCluster) CanAllocate(r reflow.Resources) (bool, error)
func (*TestCluster) Req ¶
func (c *TestCluster) Req() <-chan testClusterAllocReq
type TestClusterAllocReply ¶
type TestPool ¶
type TestPool struct { pool.ResourcePool // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.