base

package
v0.0.0-...-683b059 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2022 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package base provides a Config type for open network.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct{}

Config implements security.Config interface for open network, i.e., no security.

func (*Config) Class

func (*Config) Class() string

Class returns the security class of open network.

func (*Config) HostapdConfig

func (*Config) HostapdConfig() (map[string]string, error)

HostapdConfig returns hostapd config of open network.

func (*Config) InstallClientCredentials

func (*Config) InstallClientCredentials(context.Context, *netcertstore.Store) error

InstallClientCredentials installs the necessary credentials onto DUT.

func (*Config) InstallRouterCredentials

func (*Config) InstallRouterCredentials(context.Context, *ssh.Conn, string) error

InstallRouterCredentials installs the necessary credentials onto router.

func (*Config) NeedsNetCertStore

func (*Config) NeedsNetCertStore() bool

NeedsNetCertStore tells that netcert store is not necessary for this configuration.

func (*Config) ShillServiceProperties

func (*Config) ShillServiceProperties() (map[string]interface{}, error)

ShillServiceProperties returns shill properties of open network.

type ConfigFactory

type ConfigFactory struct{}

ConfigFactory provides Gen method to build a new Config.

func NewConfigFactory

func NewConfigFactory() *ConfigFactory

NewConfigFactory builds a ConfigFactory.

func (*ConfigFactory) Gen

func (*ConfigFactory) Gen() (security.Config, error)

Gen builds a Config.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL