Documentation
¶
Index ¶
- func CreateService(ctx context.Context, t *testing.T, d *daemon.Daemon, opts ...ServiceSpecOpt) string
- func CreateServiceSpec(t *testing.T, opts ...ServiceSpecOpt) swarmtypes.ServiceSpec
- func ExecTask(ctx context.Context, t *testing.T, d *daemon.Daemon, task swarmtypes.Task, ...) types.HijackedResponse
- func GetRunningTasks(ctx context.Context, t *testing.T, c client.ServiceAPIClient, serviceID string) []swarmtypes.Task
- func JobComplete(ctx context.Context, client client.ServiceAPIClient, ...) func(log poll.LogT) poll.Result
- func NetworkPoll(config *poll.Settings)
- func NewSwarm(ctx context.Context, t *testing.T, testEnv *environment.Execution, ...) *daemon.Daemon
- func NoTasks(ctx context.Context, client client.ServiceAPIClient) func(log poll.LogT) poll.Result
- func NoTasksForService(ctx context.Context, client client.ServiceAPIClient, serviceID string) func(log poll.LogT) poll.Result
- func RunningTasksCount(ctx context.Context, client client.ServiceAPIClient, serviceID string, ...) func(log poll.LogT) poll.Result
- func ServicePoll(config *poll.Settings)
- func ServiceWithImage(image string) func(*swarmtypes.ServiceSpec)
- func ServiceWithInit(b *bool) func(*swarmtypes.ServiceSpec)
- func ServiceWithMode(mode swarmtypes.ServiceMode) func(*swarmtypes.ServiceSpec)
- type ServiceSpecOpt
- func ServiceWithCapabilities(add []string, drop []string) ServiceSpecOpt
- func ServiceWithCommand(cmd []string) ServiceSpecOpt
- func ServiceWithConfig(configRef *swarmtypes.ConfigReference) ServiceSpecOpt
- func ServiceWithEndpoint(endpoint *swarmtypes.EndpointSpec) ServiceSpecOpt
- func ServiceWithMaxReplicas(n uint64) ServiceSpecOpt
- func ServiceWithName(name string) ServiceSpecOpt
- func ServiceWithNetwork(network string) ServiceSpecOpt