gcmain

package
v0.0.0-...-f7150f6 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2022 License: GPL-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const Version = "0.1.16"

Variables

View Source
var Revision = "HEAD"

Functions

func CreateHttpClient

func CreateHttpClient(conf *cfg.RetrieveConfig) (*http.Client, error)

func MakeContext

func MakeContext(timeout int) (context.Context, context.CancelFunc)

func SetHostIpLookupTransport

func SetHostIpLookupTransport() error

Types

type ConfigInitializer

type ConfigInitializer struct {
	Base   *cfg.ExportBase
	Common *cfg.CommonConfig
}

func NewConfigInitializer

func NewConfigInitializer(base *cfg.ExportBase, common *cfg.CommonConfig) *ConfigInitializer

func (*ConfigInitializer) CreateConfig

func (c *ConfigInitializer) CreateConfig() error

func (*ConfigInitializer) Validate

func (c *ConfigInitializer) Validate() error

type InventoryExecuter

type InventoryExecuter struct {
	Base   *cfg.ExportBase
	Common *cfg.CommonConfig
	Env    *cfg.RunEnv
}

func NewInventoryExecuter

func NewInventoryExecuter(base *cfg.ExportBase, common *cfg.CommonConfig, env *cfg.RunEnv) *InventoryExecuter

func (*InventoryExecuter) Run

func (c *InventoryExecuter) Run() error

func (*InventoryExecuter) Validate

func (c *InventoryExecuter) Validate() error

type InventoryRetriever

type InventoryRetriever struct {
	Base          *cfg.ExportBase
	Common        *cfg.CommonConfig
	Env           *cfg.RunEnv
	WorkDir       string
	DatastoreSets []agent.DatastoreSet
	HttpClient    *http.Client
}

func NewInventoryRetriever

func NewInventoryRetriever(base *cfg.ExportBase, common *cfg.CommonConfig, env *cfg.RunEnv) *InventoryRetriever

func (*InventoryRetriever) GetDatastoreSets

func (c *InventoryRetriever) GetDatastoreSets() error

func (*InventoryRetriever) RetrieveDatastore

func (c *InventoryRetriever) RetrieveDatastore(dsSet agent.DatastoreSet) error

func (*InventoryRetriever) Run

func (c *InventoryRetriever) Run() error

func (*InventoryRetriever) UnzipDatastore

func (c *InventoryRetriever) UnzipDatastore(dsSet agent.DatastoreSet) error

func (*InventoryRetriever) Validate

func (c *InventoryRetriever) Validate() error

type Sender

type Sender struct {
	AgentHome string
	CurrTime  time.Time
	Datastore string
	Platform  string
}

func NewSender

func NewSender(platform string, env *cfg.RunEnv) *Sender

func (*Sender) NewAgentConfig

func (c *Sender) NewAgentConfig(hostName string) *agent.Config

func (*Sender) NewAgentDatastore

func (c *Sender) NewAgentDatastore(hostName string) *agent.Datastore

func (*Sender) Run

func (c *Sender) Run() error

Jump to

Keyboard shortcuts

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