targetproviders

package
v1.0.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

SPDX-FileCopyrightText: 2024 Paulo Almeida <almeidapaulopt@gmail.com> SPDX-License-Identifier: MIT

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionType

type ActionType int
const (
	ActionStart ActionType = iota
	ActionStop
)

type TargetEvent

type TargetEvent struct {
	TargetProvider TargetProvider
	ID             string
	Action         ActionType
}

type TargetProvider

type TargetProvider interface {
	GetAllProxies() (map[string]*proxyconfig.Config, error)
	WatchEvents(ctx context.Context, eventsChan chan TargetEvent, errChan chan error)
	GetDefaultProxyProviderName() string
	Close()
	AddTarget(id string) (*proxyconfig.Config, error)
	DeleteProxy(id string) error
}

TargetProvider interface to be implemented by all target providers

Directories

Path Synopsis
SPDX-FileCopyrightText: 2024 Paulo Almeida <almeidapaulopt@gmail.com> SPDX-License-Identifier: MIT
SPDX-FileCopyrightText: 2024 Paulo Almeida <almeidapaulopt@gmail.com> SPDX-License-Identifier: MIT

Jump to

Keyboard shortcuts

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