func WithStateForBootstrap(state State) BootstrapOption {
	return func(options *bootstrapOptions) {
		options.state = state
	}
}
WithStateForBootstrap sets the state on the options
package membership
import (
	"path/filepath"
	"github.com/pkg/errors"
	"github.com/spoke-d/thermionic/internal/cert"
	"github.com/spoke-d/thermionic/internal/config"
	"github.com/spoke-d/thermionic/internal/db"
	"github.com/spoke-d/thermionic/internal/fsys"
	"github.com/spoke-d/thermionic/internal/node"
)
type BootstrapOption func(*bootstrapOptions)
type bootstrapOptions struct {
	certInfo         *cert.Info
	nodeConfigSchema config.Schema
	state            State
	gateway          Gateway
	config           NodeConfigProvider
	fileSystem       fsys.FileSystem
}
func WithCertForBootstrap(certInfo *cert.Info) BootstrapOption {
	return func(options *bootstrapOptions) {
		options.certInfo = certInfo
	}
}