Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func LogDebug ¶
func LogDebug(msg string, a ...interface{})
LogDebug will write a debug message command to stdout.
func LogError ¶
func LogError(msg string, a ...interface{})
LogError will write a error message command to stdout.
func LogErrorAndExit ¶
func LogErrorAndExit(msg string, a ...interface{})
LogErrorAndExit will write a error message command to stdout and exit with a non-zero exit code.
func LogWarning ¶
func LogWarning(msg string, a ...interface{})
LogWarning will write a warning message command to stdout.
Types ¶
type Input ¶
type Input struct { APIKey string `env:"INPUT_METAL_AUTH_TOKEN"` Projects string `env:"INPUT_PROJECT_NAMES"` DryRun bool `env:"INPUT_DRY_RUN"` }
Input represents the input parameters.
type MetalJanitorAction ¶
type MetalJanitorAction interface { // Cleanup is used to cleanup the Equinix Metal projects. Cleanup(projectNames string, dryRun bool) error }
MetalJanitorAction represents the interface for the cleanup action.
func New ¶
func New(authToken string, httpClient *http.Client) (MetalJanitorAction, error)
New will create a new instance of the metal janitor action.
func NewWithURL ¶
func NewWithURL(authToken string, httpClient *http.Client, apiURL string) (MetalJanitorAction, error)
NewWithURL will create a new instance of the metal janitor action using a specific URL for the Equinix api.
Click to show internal directories.
Click to hide internal directories.