Documentation ¶
Index ¶
- type Backend
- func (b *Backend) Close() error
- func (b *Backend) ForgetAllNetworks(ctx context.Context, r *api.ForgetAllNetworksRequest) (*api.ForgetAllNetworksReply, error)
- func (b *Backend) ForgetNetwork(ctx context.Context, r *api.ForgetNetworkRequest) (*api.ForgetNetworkReply, error)
- func (b *Backend) GetSavedBearerConfs(ctx context.Context, r *api.GetSavedBearerConfsRequest) (*api.GetSavedBearerConfsReply, error)
- func (b *Backend) GetSavedNetworks(ctx context.Context, r *api.GetSavedNetworksRequest) (*api.GetSavedNetworksReply, error)
- func (b *Backend) GetSavedWired8021XConfs(ctx context.Context, r *api.GetSavedWired8021XConfsRequest) (*api.GetSavedWired8021XConfsReply, error)
- func (b *Backend) SaveBearerConf(ctx context.Context, r *api.SaveBearerConfRequest) (*api.SaveBearerConfReply, error)
- func (b *Backend) SaveNetwork(ctx context.Context, r *api.SaveNetworkRequest) (*api.SaveNetworkReply, error)
- func (b *Backend) SaveWired8021XConf(ctx context.Context, r *api.SaveWired8021XConfRequest) (*api.SaveWired8021XConfReply, error)
- func (b *Backend) Serve() error
- type ServerOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend struct { // This is now required by protoc-gen-go-grpc, in order // to guarantee forward compatibility when an RPC is added. api.UnimplementedNetctlBackServer // contains filtered or unexported fields }
Backend implements a netctl_back service.
func NewBackend ¶
func NewBackend(addr string, opts ...ServerOption) (*Backend, error)
NewBackend returns a new netctl_back service.
func (*Backend) ForgetAllNetworks ¶
func (b *Backend) ForgetAllNetworks(ctx context.Context, r *api.ForgetAllNetworksRequest) (*api.ForgetAllNetworksReply, error)
ForgetAllNetworks deletes all saved networks for a given frontend.
func (*Backend) ForgetNetwork ¶
func (b *Backend) ForgetNetwork(ctx context.Context, r *api.ForgetNetworkRequest) (*api.ForgetNetworkReply, error)
ForgetNetwork deletes a network from the list of saved networks for a given frontend.
func (*Backend) GetSavedBearerConfs ¶
func (b *Backend) GetSavedBearerConfs(ctx context.Context, r *api.GetSavedBearerConfsRequest) (*api.GetSavedBearerConfsReply, error)
GetSavedBearerConfs returns a list of cached bearer configs for a given frontend.
func (*Backend) GetSavedNetworks ¶
func (b *Backend) GetSavedNetworks(ctx context.Context, r *api.GetSavedNetworksRequest) (*api.GetSavedNetworksReply, error)
GetSavedNetworks returns a list of cached network for a given frontend..
func (*Backend) GetSavedWired8021XConfs ¶
func (b *Backend) GetSavedWired8021XConfs(ctx context.Context, r *api.GetSavedWired8021XConfsRequest) (*api.GetSavedWired8021XConfsReply, error)
GetSavedWired8021XConfs returns a list of cached wired 802.1x configs for a given frontend.
func (*Backend) SaveBearerConf ¶
func (b *Backend) SaveBearerConf(ctx context.Context, r *api.SaveBearerConfRequest) (*api.SaveBearerConfReply, error)
SaveBearerConf caches a bearer config provided by a frontend.
func (*Backend) SaveNetwork ¶
func (b *Backend) SaveNetwork(ctx context.Context, r *api.SaveNetworkRequest) (*api.SaveNetworkReply, error)
SaveNetwork caches a network provided by a frontend.
func (*Backend) SaveWired8021XConf ¶
func (b *Backend) SaveWired8021XConf(ctx context.Context, r *api.SaveWired8021XConfRequest) (*api.SaveWired8021XConfReply, error)
SaveWired8021XConf caches a wired 802.1x config provided by a frontend.
type ServerOption ¶
type ServerOption interface {
// contains filtered or unexported methods
}
ServerOption is used to configure a netctl backend.
func WithDBusProxies ¶
func WithDBusProxies() ServerOption
WithDBusProxies tells the backend to use DBus for UI proxies.
func WithDatabasePath ¶
func WithDatabasePath(path string) ServerOption
WithDatabasePath specifies the database path to use. If this is not specified, a default path is used.
func WithLocalListener ¶
func WithLocalListener(addr string) ServerOption
WithLocalListener tells the backend to listen on a local address to provide a convenient default for local clients like the netctl CLI.
func WithNoDatabase ¶
func WithNoDatabase() ServerOption
WithNoDatabase tells the backend to start without a database.