droneutil

package
v0.0.1-test Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2022 License: AGPL-3.0 Imports: 3 Imported by: 2

Documentation

Overview

Package droneutil provides utility functions for working with Drone.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDroneEvent

func GetDroneEvent(env []string) (string, error)

GetDroneEvent looks for the "DRONE_BUILD_EVENT" in the provided env list and returns the value. if it was not found, then an error is returned.

func GetDroneEventFromEnv

func GetDroneEventFromEnv() (string, error)

GetDroneEventFromEnv returns the value of DRONE_BUILD_EVENT from os.Environ()

func Lookup

func Lookup(values []string, val string) (string, bool)

Lookup is the equivalent of os.LookupEnv, but also accepts a list of strings rather than only checking os.Environ()

Types

This section is empty.

Jump to

Keyboard shortcuts

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