Documentation ¶
Index ¶
- type Client
- func (c *Client) Fetch(d *Distribution) error
- func (c *Client) Install(name string) error
- func (c *Client) InstallDependency(d *Dependency) error
- func (c *Client) Logf(format string, args ...interface{})
- func (c *Client) ProcessDependency(r *Request)
- func (c *Client) ProcessQueue()
- func (c *Client) ResolveDistributionName(name string) (distfile string, err error)
- func (c *Client) SetLocalLib(l string)
- func (c *Client) SetLocalLibContained(l string)
- func (c *Client) SetNotest(b bool)
- func (c *Client) SetVerbose(b bool)
- type Dependency
- type Distmeta
- type Distribution
- type Prerequisites
- type Request
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Queue chan *Request Dependencies map[string]*sync.WaitGroup DistributionNames map[string]string WorkDir string // contains filtered or unexported fields }
func (*Client) Fetch ¶
func (c *Client) Fetch(d *Distribution) error
func (*Client) InstallDependency ¶
func (c *Client) InstallDependency(d *Dependency) error
func (*Client) ProcessDependency ¶
func (*Client) ProcessQueue ¶
func (c *Client) ProcessQueue()
func (*Client) ResolveDistributionName ¶
func (*Client) SetLocalLib ¶
func (*Client) SetLocalLibContained ¶
func (*Client) SetVerbose ¶
type Distmeta ¶
type Distmeta struct { Abstract string Author []string BuildRequires *Prerequisites ConfigureRequires *Prerequisites DistributionType string DynamicConfig bool GeneratedBy string License string MetaSpec map[string]string ModuleName string Name string NoIndex map[string]map[string]string Requires *Prerequisites Resources map[string]string Version string }
func LoadDistmetaFromFile ¶
type Distribution ¶
func NewDistribution ¶
func NewDistribution(path string) *Distribution
func (*Distribution) Cleanup ¶
func (d *Distribution) Cleanup()
func (*Distribution) Install ¶
func (d *Distribution) Install(c *Client) error
func (*Distribution) ParseMeta ¶
func (d *Distribution) ParseMeta() error
func (*Distribution) Unpack ¶
func (d *Distribution) Unpack() error
type Prerequisites ¶
type Prerequisites struct {
List []*Dependency
}
func (*Prerequisites) FulfillRequirements ¶
func (p *Prerequisites) FulfillRequirements() error
func (*Prerequisites) SetYAML ¶
func (p *Prerequisites) SetYAML(tag string, value interface{}) bool
type Request ¶
type Request struct { *Dependency Wait *sync.WaitGroup }
Click to show internal directories.
Click to hide internal directories.