target

package
v6.4.1 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2026 License: MIT Imports: 12 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package target implements the `target` commands.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AttributeKeys

func AttributeKeys(ctx context.Context, c *platform.Client, o AttributeOptions) error

func AttributeValues

func AttributeValues(ctx context.Context, c *platform.Client, o AttributeOptions) error

func Query

func Query(ctx context.Context, c *platform.Client, o QueryOptions) error

func Stats added in v6.1.0

func Stats(ctx context.Context, c *platform.Client, o StatsOptions) error

Stats prints how many targets of each type the platform knows. The platform counts over the whole tenant: it takes a query but no environment.

Types

type AttributeOptions

type AttributeOptions struct {
	Environment, TargetType, Action string
	// The attribute whose values to list; empty lists the keys.
	Key  string
	Type string
}

type QueryOptions

type QueryOptions struct {
	Environment, TargetType, Query string
	Attributes                     []string
	// At most this many targets; 0 is all of them.
	Limit int
	Type  string
}

type StatsOptions added in v6.1.0

type StatsOptions struct {
	Query string
	Type  string
}

Jump to

Keyboard shortcuts

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