Documentation ¶
Index ¶
- func GenerateConf(w io.Writer, mylrn int, lrns []int) error
- func GenerateService(w io.Writer, rt neco.ContainerRuntime) error
- func InitLocal(ctx context.Context, vc *api.Client) error
- func InstallBashCompletion(ctx context.Context) error
- func InstallTools(ctx context.Context, rt neco.ContainerRuntime) error
- func UploadContents(ctx context.Context, sabakanHTTP *http.Client, proxyHTTP *http.Client, ...) error
- func UploadDHCPJSON(ctx context.Context, sabakanHTTP *http.Client) error
- func UploadIgnitions(ctx context.Context, c *http.Client, id string, st storage.Storage) error
- func UploadImageAssets(ctx context.Context, img neco.ContainerImage, c *sabac.Client, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateConf ¶
GenerateConf generates sabakan config file
func GenerateService ¶
func GenerateService(w io.Writer, rt neco.ContainerRuntime) error
GenerateService generate systemd service unit contents.
func InstallBashCompletion ¶
InstallBashCompletion installs bash completion for sabactl
func InstallTools ¶
func InstallTools(ctx context.Context, rt neco.ContainerRuntime) error
InstallTools installs sabactl and sabakan-cryptsetup under /usr/local/bin
func UploadContents ¶
func UploadContents(ctx context.Context, sabakanHTTP *http.Client, proxyHTTP *http.Client, version string, fetcher neco.ImageFetcher, st storage.Storage) error
UploadContents upload contents to sabakan
func UploadDHCPJSON ¶
UploadDHCPJSON uploads dhcp.json
func UploadIgnitions ¶
UploadIgnitions updates ignitions from local file
func UploadImageAssets ¶
func UploadImageAssets(ctx context.Context, img neco.ContainerImage, c *sabac.Client, fetcher neco.ImageFetcher) error
UploadImageAssets upload docker container image as sabakan assets.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.