Documentation ¶
Index ¶
- func ContainerConfigGenerator(locationURL string, locationName string, uploadIdentifier string, ...) *container.Config
- func CreateContainer(containerConfig *container.Config) string
- func PullImage(image string)
- func ReleaseProxyContainer(containerID string)
- func RemoveContainer(containerID string)
- func Scrape(uploadIdentifier string, targetName string, containerID string)
- func TailLog(containerID string) io.Reader
- type Container
- type ProxyContainer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainerConfigGenerator ¶
func ContainerConfigGenerator( locationURL string, locationName string, uploadIdentifier string, proxyAddress string, vpnRegion string) *container.Config
ContainerConfigGenerator generates the container config depending on the scrape target
func CreateContainer ¶
CreateContainer creates a container then returns the container ID
func ReleaseProxyContainer ¶
func ReleaseProxyContainer(containerID string)
ReleaseProxyContainer releases the lock on a proxy container
func RemoveContainer ¶
func RemoveContainer(containerID string)
RemoveContainer removes the container with the given ID
Types ¶
type Container ¶
type Container struct { ContainerID *string TaskOwner *string TargetName *string URL *string IPAddress *string VPNRegion *string ProxySOCKSPort *string ProxyHTTPPort *string }
Container information
func ListContainersByType ¶
ListContainersByType lists all containers of the given type. Available container types:
- "scraper": Lists all scraper containers.
- "proxy": Lists all proxy containers.
Example:
scraperContainers := ListContainersByType("scraper") proxyContainers := ListContainersByType("proxy")
type ProxyContainer ¶
ProxyContainer information
func AcquireProxyContainer ¶
func AcquireProxyContainer() ProxyContainer
AcquireProxyContainer acquires a lock on a proxy container and returns its ID
Click to show internal directories.
Click to hide internal directories.