cipd

package
v0.0.0-...-e560ebb Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: BSD-3-Clause Imports: 12 Imported by: 0

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.

Jump to

Keyboard shortcuts

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