Documentation
¶
Index ¶
- type Option
- func WithClientEndpoints(endpoints ...string) Option
- func WithClientPassword(password string) Option
- func WithClientUsername(username string) Option
- func WithDataDir(dataDir string) Option
- func WithEmbed(embed bool) Option
- func WithEtcdClientPort(port int) Option
- func WithExecOptions(execOptions ...exec.Option) Option
- func WithExit1() Option
- func WithHealthzPort(port int) Option
- func WithID(id string) Option
- func WithInitialCluster(initialCluster string) Option
- func WithKubeconfig(kubeconfig string) Option
- func WithLogLevel(level string) Option
- func WithLogLineStdout(ll *logline.LogLine) Option
- func WithMetricsPort(port int) Option
- func WithMode(mode string) Option
- func WithNamespace(namespace string) Option
- func WithOverrideBroadcastHostPort(address string) Option
- func WithPort(port int) Option
- func WithSentry(sentry *sentry.Sentry) Option
- type Scheduler
- func (s *Scheduler) Address() string
- func (s *Scheduler) Cleanup(t *testing.T)
- func (s *Scheduler) Client(t *testing.T, ctx context.Context) schedulerv1pb.SchedulerClient
- func (s *Scheduler) ClientMTLS(t *testing.T, ctx context.Context, appID string) schedulerv1pb.SchedulerClient
- func (s *Scheduler) ClientMTLSNS(t *testing.T, ctx context.Context, ns, appID string) schedulerv1pb.SchedulerClient
- func (s *Scheduler) DataDir() string
- func (s *Scheduler) ETCDClient(t *testing.T, ctx context.Context) *clientv3.Client
- func (s *Scheduler) EtcdClientPort() int
- func (s *Scheduler) EtcdJobs(t *testing.T, ctx context.Context) []*mvccpb.KeyValue
- func (s *Scheduler) HealthzPort() int
- func (s *Scheduler) ID() string
- func (s *Scheduler) InitialCluster() string
- func (s *Scheduler) JobNowActor(name, namespace, appID, actorType, actorID string) *schedulerv1pb.ScheduleJobRequest
- func (s *Scheduler) JobNowJob(name, namespace, appID string) *schedulerv1pb.ScheduleJobRequest
- func (s *Scheduler) Kill(t *testing.T)
- func (s *Scheduler) ListAllKeys(t *testing.T, ctx context.Context, prefix string) []string
- func (s *Scheduler) ListJobActors(t *testing.T, ctx context.Context, namespace, appID, actorType, actorID string) *schedulerv1pb.ListJobsResponse
- func (s *Scheduler) ListJobJobs(t *testing.T, ctx context.Context, namespace, appID string) *schedulerv1pb.ListJobsResponse
- func (s *Scheduler) Metrics(t assert.TestingT, ctx context.Context) *metrics.Metrics
- func (s *Scheduler) MetricsAddress() string
- func (s *Scheduler) MetricsPort() int
- func (s *Scheduler) MetricsWithLabels(t *testing.T, ctx context.Context) *metrics.MetricsWithLabels
- func (s *Scheduler) Port() int
- func (s *Scheduler) Run(t *testing.T, ctx context.Context)
- func (s *Scheduler) WaitUntilLeadership(t *testing.T, ctx context.Context, leaders int)
- func (s *Scheduler) WaitUntilRunning(t *testing.T, ctx context.Context)
- func (s *Scheduler) WatchJobs(t *testing.T, ctx context.Context, ...) <-chan string
- func (s *Scheduler) WatchJobsFailed(t *testing.T, ctx context.Context, ...) <-chan string
- func (s *Scheduler) WatchJobsSuccess(t *testing.T, ctx context.Context, ...) <-chan string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*options)
func WithClientEndpoints ¶ added in v1.16.0
func WithClientPassword ¶ added in v1.16.0
func WithClientUsername ¶ added in v1.16.0
func WithDataDir ¶
func WithEtcdClientPort ¶ added in v1.15.0
func WithExecOptions ¶
func WithHealthzPort ¶
func WithInitialCluster ¶
WithInitialCluster adds the initial etcd cluster peers. This should include http:// in the url.
func WithKubeconfig ¶ added in v1.15.0
func WithLogLevel ¶
func WithLogLineStdout ¶ added in v1.16.0
func WithMetricsPort ¶
func WithNamespace ¶
func WithOverrideBroadcastHostPort ¶ added in v1.15.0
func WithSentry ¶
type Scheduler ¶
type Scheduler struct {
// contains filtered or unexported fields
}
func (*Scheduler) Client ¶
func (s *Scheduler) Client(t *testing.T, ctx context.Context) schedulerv1pb.SchedulerClient
func (*Scheduler) ClientMTLS ¶
func (s *Scheduler) ClientMTLS(t *testing.T, ctx context.Context, appID string) schedulerv1pb.SchedulerClient
func (*Scheduler) ClientMTLSNS ¶ added in v1.16.4
func (s *Scheduler) ClientMTLSNS(t *testing.T, ctx context.Context, ns, appID string) schedulerv1pb.SchedulerClient
func (*Scheduler) ETCDClient ¶ added in v1.15.0
func (*Scheduler) EtcdClientPort ¶
func (*Scheduler) HealthzPort ¶
func (*Scheduler) InitialCluster ¶
func (*Scheduler) JobNowActor ¶ added in v1.15.0
func (s *Scheduler) JobNowActor(name, namespace, appID, actorType, actorID string) *schedulerv1pb.ScheduleJobRequest
func (*Scheduler) JobNowJob ¶ added in v1.15.0
func (s *Scheduler) JobNowJob(name, namespace, appID string) *schedulerv1pb.ScheduleJobRequest
func (*Scheduler) ListAllKeys ¶ added in v1.15.0
func (*Scheduler) ListJobActors ¶ added in v1.15.0
func (s *Scheduler) ListJobActors(t *testing.T, ctx context.Context, namespace, appID, actorType, actorID string) *schedulerv1pb.ListJobsResponse
func (*Scheduler) ListJobJobs ¶ added in v1.15.0
func (s *Scheduler) ListJobJobs(t *testing.T, ctx context.Context, namespace, appID string) *schedulerv1pb.ListJobsResponse
func (*Scheduler) Metrics ¶ added in v1.15.0
Metrics returns a subset of metrics scraped from the metrics endpoint
func (*Scheduler) MetricsAddress ¶ added in v1.15.0
func (*Scheduler) MetricsPort ¶
func (*Scheduler) MetricsWithLabels ¶ added in v1.16.0
func (*Scheduler) WaitUntilLeadership ¶ added in v1.15.0
func (*Scheduler) WaitUntilRunning ¶
func (*Scheduler) WatchJobs ¶ added in v1.15.0
func (s *Scheduler) WatchJobs(t *testing.T, ctx context.Context, initial *schedulerv1pb.WatchJobsRequestInitial, respStatus *atomic.Value) <-chan string
func (*Scheduler) WatchJobsFailed ¶ added in v1.15.0
func (s *Scheduler) WatchJobsFailed(t *testing.T, ctx context.Context, initial *schedulerv1pb.WatchJobsRequestInitial) <-chan string
func (*Scheduler) WatchJobsSuccess ¶ added in v1.15.0
func (s *Scheduler) WatchJobsSuccess(t *testing.T, ctx context.Context, initial *schedulerv1pb.WatchJobsRequestInitial) <-chan string
Click to show internal directories.
Click to hide internal directories.