Documentation ¶
Index ¶
- type CocoapodsBuilder
- func (builder *CocoapodsBuilder) Analyze(m module.Module, allowUnresolved bool) ([]module.Dependency, error)
- func (builder *CocoapodsBuilder) Build(m module.Module, force bool) error
- func (builder *CocoapodsBuilder) DiscoverModules(dir string) ([]module.Config, error)
- func (builder *CocoapodsBuilder) Initialize() error
- func (builder *CocoapodsBuilder) IsBuilt(m module.Module, allowUnresolved bool) (bool, error)
- func (builder *CocoapodsBuilder) IsModule(target string) (bool, error)
- type CocoapodsModule
- type PodFileLock
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CocoapodsBuilder ¶
CocoapodsBuilder implements Builder for Cocoapods (podfile & podfile.lock) builds
func (*CocoapodsBuilder) Analyze ¶
func (builder *CocoapodsBuilder) Analyze(m module.Module, allowUnresolved bool) ([]module.Dependency, error)
Analyze parses the `podfile.lock` YAML file and analyzes
func (*CocoapodsBuilder) Build ¶
func (builder *CocoapodsBuilder) Build(m module.Module, force bool) error
Build runs `pod install`
func (*CocoapodsBuilder) DiscoverModules ¶
func (builder *CocoapodsBuilder) DiscoverModules(dir string) ([]module.Config, error)
DiscoverModules returns ModuleConfigs that match Podfile(.lock) in the directory
func (*CocoapodsBuilder) Initialize ¶
func (builder *CocoapodsBuilder) Initialize() error
Initialize collects metadata on Cocoapods
type CocoapodsModule ¶
CocoapodsModule implements Dependency for Cocoapods builds
func (CocoapodsModule) Fetcher ¶
func (m CocoapodsModule) Fetcher() string
Fetcher always returns pod for CocoapodsModule
func (CocoapodsModule) Package ¶
func (m CocoapodsModule) Package() string
Package returns the package spec for CocoapodsModule
func (CocoapodsModule) Revision ¶
func (m CocoapodsModule) Revision() string
Revision returns the version spec for CocoapodsModule
type PodFileLock ¶
type PodFileLock struct { Pods []interface{} `yaml:"PODS,omitempty"` // transitive deps + path Dependencies []string `yaml:"DEPENDENCIES,omitempty"` // top level deps CheckoutOptions map[string]map[string]string `yaml:"CHECKOUT OPTIONS,omitempty"` }
PodFileLock models Podfile.lock yaml file
Note: we set Pods to `[]interface{}` because Golang doesn't support ADT's. The PODS section of Podfile.lock is actually [](map[string][]string | string)
Click to show internal directories.
Click to hide internal directories.