/
config.go
37 lines (29 loc) · 1.18 KB
/
config.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
package config
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
"github.com/pulumiverse/pulumi-buildkite/sdk/v2/go/buildkite/internal"
)
var _ = internal.GetEnvOrDefault
// API token with GraphQL access and `write_pipelines, read_pipelines` and `write_suites` REST API scopes
func GetApiToken(ctx *pulumi.Context) string {
return config.Get(ctx, "buildkite:apiToken")
}
// Archive pipelines when destroying instead of completely deleting.
func GetArchivePipelineOnDelete(ctx *pulumi.Context) bool {
return config.GetBool(ctx, "buildkite:archivePipelineOnDelete")
}
// Base URL for the GraphQL API to use
func GetGraphqlUrl(ctx *pulumi.Context) string {
return config.Get(ctx, "buildkite:graphqlUrl")
}
// The Buildkite organization slug
func GetOrganization(ctx *pulumi.Context) string {
return config.Get(ctx, "buildkite:organization")
}
// Base URL for the REST API to use
func GetRestUrl(ctx *pulumi.Context) string {
return config.Get(ctx, "buildkite:restUrl")
}