{"modulePath":"github.com/TinyStac/tinystack","version":"v0.0.0-20221021101514-ca78c080174d","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package executor\n\n## Functions\n\n```go\nfunc APIServer(ctx context.Context, etcdReady \u003c-chan struct{}, args []string) error\n```\n\n```go\nfunc APIServerHandlers(ctx context.Context) (authenticator.Request, http.Handler, error)\n```\n\n```go\nfunc Bootstrap(ctx context.Context, nodeConfig *daemonconfig.Node, cfg cmds.Agent) error\n```\n\n```go\nfunc CloudControllerManager(ctx context.Context, ccmRBACReady \u003c-chan struct{}, args []string) error\n```\n\n```go\nfunc ControllerManager(ctx context.Context, apiReady \u003c-chan struct{}, args []string) error\n```\n\n```go\nfunc ETCD(ctx context.Context, args ETCDConfig, extraArgs []string) error\n```\n\n```go\nfunc KubeProxy(ctx context.Context, args []string) error\n```\n\n```go\nfunc Kubelet(ctx context.Context, args []string) error\n```\n\n```go\nfunc Scheduler(ctx context.Context, apiReady \u003c-chan struct{}, args []string) error\n```\n\n```go\nfunc Set(driver Executor)\n```\n\n## Types\n\n```go\ntype ETCDConfig struct {\n\tInitialOptions                  `json:\",inline\"`\n\tName                            string      `json:\"name,omitempty\"`\n\tListenClientURLs                string      `json:\"listen-client-urls,omitempty\"`\n\tListenMetricsURLs               string      `json:\"listen-metrics-urls,omitempty\"`\n\tListenPeerURLs                  string      `json:\"listen-peer-urls,omitempty\"`\n\tAdvertiseClientURLs             string      `json:\"advertise-client-urls,omitempty\"`\n\tDataDir                         string      `json:\"data-dir,omitempty\"`\n\tSnapshotCount                   int         `json:\"snapshot-count,omitempty\"`\n\tServerTrust                     ServerTrust `json:\"client-transport-security\"`\n\tPeerTrust                       PeerTrust   `json:\"peer-transport-security\"`\n\tForceNewCluster                 bool        `json:\"force-new-cluster,omitempty\"`\n\tHeartbeatInterval               int         `json:\"heartbeat-interval\"`\n\tElectionTimeout                 int         `json:\"election-timeout\"`\n\tLogger                          string      `json:\"logger\"`\n\tLogOutputs                      []string    `json:\"log-outputs\"`\n\tExperimentalInitialCorruptCheck bool        `json:\"experimental-initial-corrupt-check\"`\n}\n```\n\n```go\nfunc (e ETCDConfig) ToConfigFile(extraArgs []string) (string, error)\n```\n\n```go\ntype Embedded struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (*Embedded) APIServer(ctx context.Context, etcdReady \u003c-chan struct{}, args []string) error\n```\n\n```go\nfunc (*Embedded) APIServerHandlers(ctx context.Context) (authenticator.Request, http.Handler, error)\n```\n\n```go\nfunc (e *Embedded) Bootstrap(ctx context.Context, nodeConfig *daemonconfig.Node, cfg cmds.Agent) error\n```\n\n```go\nfunc (*Embedded) CloudControllerManager(ctx context.Context, ccmRBACReady \u003c-chan struct{}, args []string) error\n```\n\n```go\nfunc (*Embedded) ControllerManager(ctx context.Context, apiReady \u003c-chan struct{}, args []string) error\n```\n\n```go\nfunc (e *Embedded) CurrentETCDOptions() (InitialOptions, error)\n```\n\n```go\nfunc (e *Embedded) ETCD(ctx context.Context, args ETCDConfig, extraArgs []string) error\n```\n\n```go\nfunc (*Embedded) KubeProxy(ctx context.Context, args []string) error\n```\n\n```go\nfunc (e *Embedded) Kubelet(ctx context.Context, args []string) error\n```\n\n```go\nfunc (e *Embedded) Scheduler(ctx context.Context, apiReady \u003c-chan struct{}, args []string) error\n```\n\n```go\ntype Executor interface {\n\tBootstrap(ctx context.Context, nodeConfig *daemonconfig.Node, cfg cmds.Agent) error\n\tKubelet(ctx context.Context, args []string) error\n\tKubeProxy(ctx context.Context, args []string) error\n\tAPIServerHandlers(ctx context.Context) (authenticator.Request, http.Handler, error)\n\tAPIServer(ctx context.Context, etcdReady \u003c-chan struct{}, args []string) error\n\tScheduler(ctx context.Context, apiReady \u003c-chan struct{}, args []string) error\n\tControllerManager(ctx context.Context, apiReady \u003c-chan struct{}, args []string) error\n\tCurrentETCDOptions() (InitialOptions, error)\n\tETCD(ctx context.Context, args ETCDConfig, extraArgs []string) error\n\tCloudControllerManager(ctx context.Context, ccmRBACReady \u003c-chan struct{}, args []string) error\n}\n```\n\n```go\ntype InitialOptions struct {\n\tAdvertisePeerURL string `json:\"initial-advertise-peer-urls,omitempty\"`\n\tCluster          string `json:\"initial-cluster,omitempty\"`\n\tState            string `json:\"initial-cluster-state,omitempty\"`\n}\n```\n\n```go\nfunc CurrentETCDOptions() (InitialOptions, error)\n```\n\n```go\ntype PeerTrust struct {\n\tCertFile       string `json:\"cert-file\"`\n\tKeyFile        string `json:\"key-file\"`\n\tClientCertAuth bool   `json:\"client-cert-auth\"`\n\tTrustedCAFile  string `json:\"trusted-ca-file\"`\n}\n```\n\n```go\ntype ServerTrust struct {\n\tCertFile       string `json:\"cert-file\"`\n\tKeyFile        string `json:\"key-file\"`\n\tClientCertAuth bool   `json:\"client-cert-auth\"`\n\tTrustedCAFile  string `json:\"trusted-ca-file\"`\n}\n```\n\n","path":"github.com/TinyStac/tinystack/pkg/daemons/executor","name":"executor","synopsis":"","isRedistributable":true}
