Documentation

Overview

    Package cipd is an internal CIPD tool wrapper.

    Index

    Constants

    This section is empty.

    Variables

    This section is empty.

    Functions

    func DescribePackage

    func DescribePackage(ctx context.Context, pkg, version string) (*cipd.InstanceDescription, error)

      DescribePackage returns information about a package instances.

      func InstalledPackages

      func InstalledPackages(applicationName string) installedPackagesFunc

        InstalledPackages returns information about installed CIPD packages.

        func UpdatePackage

        func UpdatePackage(cipdInstalledPath, refTag string, outWriter io.Writer, errWriter io.Writer) error

          UpdatePackage updates a given package by its cipd path to given tag.

          func UpdatePackageToProd

          func UpdatePackageToProd(cipdInstalledPath string, outWriter io.Writer, errWriter io.Writer) error

            UpdatePackageToProd updates a given package by its cipd path to prod tag.

            Types

            type Package

            type Package struct {
            	Package  string `json:"package"`
            	Pin      Pin    `json:"pin"`
            	Tracking string `json:"tracking"`
            }

              Package contains information about an installed package.

              func FindPackage

              func FindPackage(packageName, cipdInstalledPath string) (*Package, error)

                FindPackage find the package by a given package name.

                type Pin

                type Pin struct {
                	Package    string `json:"package"`
                	InstanceID string `json:"instance_id"`
                }

                  Pin contains information about an installed package instance.

                  Source Files