mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-10-19 05:39:51 +00:00
91774fc936
Uses github.com/libopenstorage/secrets to communicate with Vault. This removes the need for maintaining our own limited Vault APIs. By adding the new dependency, several other packages got updated in the process. Unused indirect dependencies have been removed from go.mod. Signed-off-by: Niels de Vos <ndevos@redhat.com>
20 lines
627 B
Go
20 lines
627 B
Go
package sockaddr
|
|
|
|
// RouteInterface specifies an interface for obtaining memoized route table and
|
|
// network information from a given OS.
|
|
type RouteInterface interface {
|
|
// GetDefaultInterfaceName returns the name of the interface that has a
|
|
// default route or an error and an empty string if a problem was
|
|
// encountered.
|
|
GetDefaultInterfaceName() (string, error)
|
|
}
|
|
|
|
// VisitCommands visits each command used by the platform-specific RouteInfo
|
|
// implementation.
|
|
func (ri routeInfo) VisitCommands(fn func(name string, cmd []string)) {
|
|
for k, v := range ri.cmds {
|
|
cmds := append([]string(nil), v...)
|
|
fn(k, cmds)
|
|
}
|
|
}
|