Documentation
¶
Overview ¶
Copyright 2023 The Chromium Authors Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
Copyright 2023 The Chromium Authors Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
Copyright 2023 The Chromium Authors Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var DeleteDNSCmd = &subcommands.Command{ UsageLine: "dns -host <hostname>", ShortDesc: "delete DNS entry in local satlab network", LongDesc: "Delete DNS entry in local satlab network", CommandRun: func() subcommands.CommandRun { c := &deleteDNSRun{} c.Flags.StringVar(&c.host, "host", "", "hostname to delete") return c }, }
DeleteDNSCmd is the command to delete a hostname from the hostsfile of the DNS container
var GetDNSCmd = &subcommands.Command{ UsageLine: "dns", ShortDesc: "get DNS entries for local satlab network", LongDesc: "Get DNS entries for local satlab network", CommandRun: func() subcommands.CommandRun { c := &getDNSRun{} return c }, }
GetDNSCmd is the command to print the current DNS entries for local satlab network
var UpdateDNSCmd = &subcommands.Command{ UsageLine: "dns -host <hostname> -address <address>", ShortDesc: "upsert DNS entry in local satlab network", LongDesc: "Upsert DNS entry in local satlab network", CommandRun: func() subcommands.CommandRun { c := &updateDNSRun{} c.Flags.StringVar(&c.host, "host", "", "hostname to update") c.Flags.StringVar(&c.address, "address", "", "address to associate with hostname") return c }, }
UpdateDNSCmd is the command to upsert a hostname-ip pairing in /etc/dut_hosts/hosts used in DNS container
Functions ¶
This section is empty.
Types ¶
type DockerHostBoxIdentifierGetter ¶
DockerHostBoxIdentifierGetter is a function type fulfilled by satlabcommands.GetDockerHostBoxIdentifier we do this because the function assumes we are in a real Satlab env and we can't unit test using this func