Documentation
¶
Index ¶
- func AddNamespace(p *types.Project, username string) error
- func AddRelease(namespace, metadataJson string) (*core.ReleaseMetadata, error)
- func AddReleaseByUser(namespace, metadataJson, uploadUser string) (*core.ReleaseMetadata, error)
- func CallWebHook(namespace, unit, version, releaseId, username, url string)
- func Diff(namespace, name, version, diffWith string) (map[string]map[string]core.Changes, error)
- func GetApplicationHooks(namespace, name string) (types.Hooks, error)
- func GetApplicationVersions(namespace, name string) ([]string, error)
- func GetApplications(namespace string) (map[string]*types.Application, error)
- func GetDownloadReadSeeker(namespace, application, versionQuery string) (io.Reader, error)
- func GetDownstreamDependencies(namespace, name, version string) ([]*types.Dependency, error)
- func GetDownstreamDependenciesFilteredBy(namespace, name, version string, f *types.DownstreamDependenciesFilter) ([]*types.Dependency, error)
- func GetNamespaceHooks(namespace string) (types.Hooks, error)
- func GetNextVersion(namespace, app, prefix string) (string, error)
- func GetPreviousReleaseMetadata(namespace, name, version string) (*core.ReleaseMetadata, error)
- func GetPreviousVersion(namespace, app, version string) (string, error)
- func GetReleaseMetadata(namespace, name, version string) (*core.ReleaseMetadata, error)
- func IsUserError(err error) bool
- func NewUserError(err error) error
- func ProcessDependencies(release *Release) error
- func ProcessUnprocessedReleases() error
- func ResolveReleaseId(namespace, application, versionQuery string) (*Release, error)
- func TagRelease(namespace, application, releaseId, tag string) error
- func UpdateApplicationHooks(namespace, name string, hooks types.Hooks) error
- func UpdateNamespace(p *types.Project) error
- func UpdateNamespaceHooks(namespace string, hooks types.Hooks) error
- func UploadPackage(namespace, releaseId string, pkg io.ReadSeeker) error
- type ApplicationPayload
- type DependencyGraph
- type DependencyGraphEdge
- type DependencyGraphNode
- type DownstreamDependenciesResolver
- type NamespacePayload
- type ReleasePayload
- type UserError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddRelease ¶
func AddReleaseByUser ¶
func CallWebHook ¶
func CallWebHook(namespace, unit, version, releaseId, username, url string)
func GetApplicationVersions ¶
func GetApplications ¶
func GetApplications(namespace string) (map[string]*types.Application, error)
func GetDownloadReadSeeker ¶
func GetDownstreamDependencies ¶
func GetDownstreamDependencies(namespace, name, version string) ([]*types.Dependency, error)
func GetDownstreamDependenciesFilteredBy ¶
func GetDownstreamDependenciesFilteredBy(namespace, name, version string, f *types.DownstreamDependenciesFilter) ([]*types.Dependency, error)
func GetNextVersion ¶
func GetPreviousReleaseMetadata ¶
func GetPreviousReleaseMetadata(namespace, name, version string) (*core.ReleaseMetadata, error)
func GetPreviousVersion ¶
func GetReleaseMetadata ¶
func IsUserError ¶
func NewUserError ¶
func ProcessDependencies ¶
func ProcessDependencies(release *Release) error
func ProcessUnprocessedReleases ¶
func ProcessUnprocessedReleases() error
func ResolveReleaseId ¶
func TagRelease ¶
func UpdateApplicationHooks ¶
func UpdateNamespace ¶
func UploadPackage ¶
func UploadPackage(namespace, releaseId string, pkg io.ReadSeeker) error
Types ¶
type ApplicationPayload ¶
type ApplicationPayload struct { *types.Application Versions []string `json:"versions",omitempty` }
func GetApplication ¶
func GetApplication(namespace, name string) (*ApplicationPayload, error)
type DependencyGraph ¶
type DependencyGraph struct { Nodes []*DependencyGraphNode `json:"nodes"` Edges []*DependencyGraphEdge `json:"edges"` }
func GetDependencyGraph ¶
func GetDependencyGraph(namespace, name, version string, downstreamFunc DownstreamDependenciesResolver) (*DependencyGraph, error)
func (*DependencyGraph) AddEdge ¶
func (d *DependencyGraph) AddEdge(from, to, typ string)
func (*DependencyGraph) AddNode ¶
func (d *DependencyGraph) AddNode(id, typ string)
type DependencyGraphEdge ¶
type DependencyGraphNode ¶
type DownstreamDependenciesResolver ¶
type DownstreamDependenciesResolver func(*types.Release) ([]*types.Dependency, error)
type NamespacePayload ¶
type NamespacePayload struct { *types.Project Units map[string]*types.Application `json:"units"` }
func GetNamespace ¶
func GetNamespace(namespace string) (*NamespacePayload, error)
type ReleasePayload ¶
type ReleasePayload struct { Release *core.ReleaseMetadata `json:"release"` Versions []string `json:"versions"` IsLatest bool `json:"is_latest"` Downloads int `json:"downloads"` UploadedBy string `json:"uploaded_by"` UploadedAt time.Time `json:"uploaded_at"` }
func GetRelease ¶
func GetRelease(namespace, name, version string) (*ReleasePayload, error)
Click to show internal directories.
Click to hide internal directories.