agent

package
v2.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentToken

type AgentToken struct {
	pulumi.CustomResourceState

	// This is the description of the agent token.
	//
	// > Changing `description` will cause the resource to be destroyed and re-created.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// The value of the created agent token.
	Token pulumi.StringOutput `pulumi:"token"`
	// The UUID of the token.
	Uuid pulumi.StringOutput `pulumi:"uuid"`
}

## # Resource: agentToken

This resource allows you to create and manage agent tokens.

Buildkite Documentation: https://buildkite.com/docs/agent/v3/tokens

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-buildkite/sdk/v2/go/buildkite/Agent"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Agent.NewAgentToken(ctx, "fleet", &Agent.AgentTokenArgs{
			Description: pulumi.String("token used by build fleet"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetAgentToken

func GetAgentToken(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *AgentTokenState, opts ...pulumi.ResourceOption) (*AgentToken, error)

GetAgentToken gets an existing AgentToken resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewAgentToken

func NewAgentToken(ctx *pulumi.Context,
	name string, args *AgentTokenArgs, opts ...pulumi.ResourceOption) (*AgentToken, error)

NewAgentToken registers a new resource with the given unique name, arguments, and options.

func (*AgentToken) ElementType

func (*AgentToken) ElementType() reflect.Type

func (*AgentToken) ToAgentTokenOutput

func (i *AgentToken) ToAgentTokenOutput() AgentTokenOutput

func (*AgentToken) ToAgentTokenOutputWithContext

func (i *AgentToken) ToAgentTokenOutputWithContext(ctx context.Context) AgentTokenOutput

type AgentTokenArgs

type AgentTokenArgs struct {
	// This is the description of the agent token.
	//
	// > Changing `description` will cause the resource to be destroyed and re-created.
	Description pulumi.StringPtrInput
}

The set of arguments for constructing a AgentToken resource.

func (AgentTokenArgs) ElementType

func (AgentTokenArgs) ElementType() reflect.Type

type AgentTokenArray

type AgentTokenArray []AgentTokenInput

func (AgentTokenArray) ElementType

func (AgentTokenArray) ElementType() reflect.Type

func (AgentTokenArray) ToAgentTokenArrayOutput

func (i AgentTokenArray) ToAgentTokenArrayOutput() AgentTokenArrayOutput

func (AgentTokenArray) ToAgentTokenArrayOutputWithContext

func (i AgentTokenArray) ToAgentTokenArrayOutputWithContext(ctx context.Context) AgentTokenArrayOutput

type AgentTokenArrayInput

type AgentTokenArrayInput interface {
	pulumi.Input

	ToAgentTokenArrayOutput() AgentTokenArrayOutput
	ToAgentTokenArrayOutputWithContext(context.Context) AgentTokenArrayOutput
}

AgentTokenArrayInput is an input type that accepts AgentTokenArray and AgentTokenArrayOutput values. You can construct a concrete instance of `AgentTokenArrayInput` via:

AgentTokenArray{ AgentTokenArgs{...} }

type AgentTokenArrayOutput

type AgentTokenArrayOutput struct{ *pulumi.OutputState }

func (AgentTokenArrayOutput) ElementType

func (AgentTokenArrayOutput) ElementType() reflect.Type

func (AgentTokenArrayOutput) Index

func (AgentTokenArrayOutput) ToAgentTokenArrayOutput

func (o AgentTokenArrayOutput) ToAgentTokenArrayOutput() AgentTokenArrayOutput

func (AgentTokenArrayOutput) ToAgentTokenArrayOutputWithContext

func (o AgentTokenArrayOutput) ToAgentTokenArrayOutputWithContext(ctx context.Context) AgentTokenArrayOutput

type AgentTokenInput

type AgentTokenInput interface {
	pulumi.Input

	ToAgentTokenOutput() AgentTokenOutput
	ToAgentTokenOutputWithContext(ctx context.Context) AgentTokenOutput
}

type AgentTokenMap

type AgentTokenMap map[string]AgentTokenInput

func (AgentTokenMap) ElementType

func (AgentTokenMap) ElementType() reflect.Type

func (AgentTokenMap) ToAgentTokenMapOutput

func (i AgentTokenMap) ToAgentTokenMapOutput() AgentTokenMapOutput

func (AgentTokenMap) ToAgentTokenMapOutputWithContext

func (i AgentTokenMap) ToAgentTokenMapOutputWithContext(ctx context.Context) AgentTokenMapOutput

type AgentTokenMapInput

type AgentTokenMapInput interface {
	pulumi.Input

	ToAgentTokenMapOutput() AgentTokenMapOutput
	ToAgentTokenMapOutputWithContext(context.Context) AgentTokenMapOutput
}

AgentTokenMapInput is an input type that accepts AgentTokenMap and AgentTokenMapOutput values. You can construct a concrete instance of `AgentTokenMapInput` via:

AgentTokenMap{ "key": AgentTokenArgs{...} }

type AgentTokenMapOutput

type AgentTokenMapOutput struct{ *pulumi.OutputState }

func (AgentTokenMapOutput) ElementType

func (AgentTokenMapOutput) ElementType() reflect.Type

func (AgentTokenMapOutput) MapIndex

func (AgentTokenMapOutput) ToAgentTokenMapOutput

func (o AgentTokenMapOutput) ToAgentTokenMapOutput() AgentTokenMapOutput

func (AgentTokenMapOutput) ToAgentTokenMapOutputWithContext

func (o AgentTokenMapOutput) ToAgentTokenMapOutputWithContext(ctx context.Context) AgentTokenMapOutput

type AgentTokenOutput

type AgentTokenOutput struct{ *pulumi.OutputState }

func (AgentTokenOutput) Description

func (o AgentTokenOutput) Description() pulumi.StringPtrOutput

This is the description of the agent token.

> Changing `description` will cause the resource to be destroyed and re-created.

func (AgentTokenOutput) ElementType

func (AgentTokenOutput) ElementType() reflect.Type

func (AgentTokenOutput) ToAgentTokenOutput

func (o AgentTokenOutput) ToAgentTokenOutput() AgentTokenOutput

func (AgentTokenOutput) ToAgentTokenOutputWithContext

func (o AgentTokenOutput) ToAgentTokenOutputWithContext(ctx context.Context) AgentTokenOutput

func (AgentTokenOutput) Token

The value of the created agent token.

func (AgentTokenOutput) Uuid

The UUID of the token.

type AgentTokenState

type AgentTokenState struct {
	// This is the description of the agent token.
	//
	// > Changing `description` will cause the resource to be destroyed and re-created.
	Description pulumi.StringPtrInput
	// The value of the created agent token.
	Token pulumi.StringPtrInput
	// The UUID of the token.
	Uuid pulumi.StringPtrInput
}

func (AgentTokenState) ElementType

func (AgentTokenState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

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