const clusterIPRange … const ecdsaPrivateKey … type APIServer … // NewAPIServer creates an apiserver. func NewAPIServer(storageConfig storagebackend.Config) *APIServer { … } // Start starts the apiserver, returns when apiserver is ready. // The background goroutine runs until the context is canceled // or Stop is called, whether happens first. func (a *APIServer) Start(ctx context.Context) error { … } // Stop stops the apiserver. Does not block. func (a *APIServer) Stop() error { … } const apiserverName … // Name returns the name of APIServer. func (a *APIServer) Name() string { … } func getAPIServerClientURL() string { … } func getAPIServerHealthCheckURL() string { … } func generateTokenFile(tokenFilePath string) error { … }