Documentation ¶
Index ¶
- type Option
- func WithDataDir(dataDir string) Option
- func WithEtcdClientPorts(ports []string) Option
- func WithExecOptions(execOptions ...exec.Option) Option
- func WithHealthzPort(port int) Option
- func WithID(id string) Option
- func WithInitialCluster(initialCluster string) Option
- func WithInitialClusterPorts(ports ...int) Option
- func WithListenAddress(address string) Option
- func WithLogLevel(level string) Option
- func WithMetricsPort(port int) Option
- func WithNamespace(namespace string) Option
- func WithPort(port int) Option
- func WithReplicaCount(count uint32) 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) DataDir() string
- func (s *Scheduler) EtcdClientPort() string
- func (s *Scheduler) HealthzPort() int
- func (s *Scheduler) ID() string
- func (s *Scheduler) InitialCluster() string
- func (s *Scheduler) MetricsPort() int
- func (s *Scheduler) Port() int
- func (s *Scheduler) Run(t *testing.T, ctx context.Context)
- func (s *Scheduler) WaitUntilRunning(t *testing.T, ctx context.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*options)
func WithDataDir ¶
func WithEtcdClientPorts ¶
func WithExecOptions ¶
func WithHealthzPort ¶
func WithInitialCluster ¶
WithInitialCluster adds the initial etcd cluster peers. This should include http:// in the url.
func WithInitialClusterPorts ¶
func WithListenAddress ¶
func WithLogLevel ¶
func WithMetricsPort ¶
func WithNamespace ¶
func WithReplicaCount ¶
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) EtcdClientPort ¶
func (*Scheduler) HealthzPort ¶
func (*Scheduler) InitialCluster ¶
func (*Scheduler) MetricsPort ¶
Click to show internal directories.
Click to hide internal directories.