ko

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

A Pulumi package for creating and managing ko cloud resources.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PkgVersion

func PkgVersion() (semver.Version, error)

PkgVersion uses reflection to determine the version of the current package. If a version cannot be determined, v1 will be assumed. The second return value is always nil.

Types

type KoImage

type KoImage struct {
	pulumi.CustomResourceState

	// base image to use
	BaseImage pulumi.StringPtrOutput `pulumi:"baseImage"`
	// built image reference by digest
	ImageRef pulumi.StringOutput `pulumi:"imageRef"`
	// import path to build
	Importpath pulumi.StringOutput `pulumi:"importpath"`
	// platforms to build
	Platforms pulumi.StringPtrOutput `pulumi:"platforms"`
	// working directory for the build
	WorkingDir pulumi.StringPtrOutput `pulumi:"workingDir"`
}

func GetKoImage

func GetKoImage(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *KoImageState, opts ...pulumi.ResourceOption) (*KoImage, error)

GetKoImage gets an existing KoImage 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 NewKoImage

func NewKoImage(ctx *pulumi.Context,
	name string, args *KoImageArgs, opts ...pulumi.ResourceOption) (*KoImage, error)

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

func (*KoImage) ElementType

func (*KoImage) ElementType() reflect.Type

func (*KoImage) ToKoImageOutput

func (i *KoImage) ToKoImageOutput() KoImageOutput

func (*KoImage) ToKoImageOutputWithContext

func (i *KoImage) ToKoImageOutputWithContext(ctx context.Context) KoImageOutput

type KoImageArgs

type KoImageArgs struct {
	// base image to use
	BaseImage pulumi.StringPtrInput
	// import path to build
	Importpath pulumi.StringInput
	// platforms to build
	Platforms pulumi.StringPtrInput
	// working directory for the build
	WorkingDir pulumi.StringPtrInput
}

The set of arguments for constructing a KoImage resource.

func (KoImageArgs) ElementType

func (KoImageArgs) ElementType() reflect.Type

type KoImageArray

type KoImageArray []KoImageInput

func (KoImageArray) ElementType

func (KoImageArray) ElementType() reflect.Type

func (KoImageArray) ToKoImageArrayOutput

func (i KoImageArray) ToKoImageArrayOutput() KoImageArrayOutput

func (KoImageArray) ToKoImageArrayOutputWithContext

func (i KoImageArray) ToKoImageArrayOutputWithContext(ctx context.Context) KoImageArrayOutput

type KoImageArrayInput

type KoImageArrayInput interface {
	pulumi.Input

	ToKoImageArrayOutput() KoImageArrayOutput
	ToKoImageArrayOutputWithContext(context.Context) KoImageArrayOutput
}

KoImageArrayInput is an input type that accepts KoImageArray and KoImageArrayOutput values. You can construct a concrete instance of `KoImageArrayInput` via:

KoImageArray{ KoImageArgs{...} }

type KoImageArrayOutput

type KoImageArrayOutput struct{ *pulumi.OutputState }

func (KoImageArrayOutput) ElementType

func (KoImageArrayOutput) ElementType() reflect.Type

func (KoImageArrayOutput) Index

func (KoImageArrayOutput) ToKoImageArrayOutput

func (o KoImageArrayOutput) ToKoImageArrayOutput() KoImageArrayOutput

func (KoImageArrayOutput) ToKoImageArrayOutputWithContext

func (o KoImageArrayOutput) ToKoImageArrayOutputWithContext(ctx context.Context) KoImageArrayOutput

type KoImageInput

type KoImageInput interface {
	pulumi.Input

	ToKoImageOutput() KoImageOutput
	ToKoImageOutputWithContext(ctx context.Context) KoImageOutput
}

type KoImageMap

type KoImageMap map[string]KoImageInput

func (KoImageMap) ElementType

func (KoImageMap) ElementType() reflect.Type

func (KoImageMap) ToKoImageMapOutput

func (i KoImageMap) ToKoImageMapOutput() KoImageMapOutput

func (KoImageMap) ToKoImageMapOutputWithContext

func (i KoImageMap) ToKoImageMapOutputWithContext(ctx context.Context) KoImageMapOutput

type KoImageMapInput

type KoImageMapInput interface {
	pulumi.Input

	ToKoImageMapOutput() KoImageMapOutput
	ToKoImageMapOutputWithContext(context.Context) KoImageMapOutput
}

KoImageMapInput is an input type that accepts KoImageMap and KoImageMapOutput values. You can construct a concrete instance of `KoImageMapInput` via:

KoImageMap{ "key": KoImageArgs{...} }

type KoImageMapOutput

type KoImageMapOutput struct{ *pulumi.OutputState }

func (KoImageMapOutput) ElementType

func (KoImageMapOutput) ElementType() reflect.Type

func (KoImageMapOutput) MapIndex

func (KoImageMapOutput) ToKoImageMapOutput

func (o KoImageMapOutput) ToKoImageMapOutput() KoImageMapOutput

func (KoImageMapOutput) ToKoImageMapOutputWithContext

func (o KoImageMapOutput) ToKoImageMapOutputWithContext(ctx context.Context) KoImageMapOutput

type KoImageOutput

type KoImageOutput struct{ *pulumi.OutputState }

func (KoImageOutput) BaseImage

func (o KoImageOutput) BaseImage() pulumi.StringPtrOutput

base image to use

func (KoImageOutput) ElementType

func (KoImageOutput) ElementType() reflect.Type

func (KoImageOutput) ImageRef

func (o KoImageOutput) ImageRef() pulumi.StringOutput

built image reference by digest

func (KoImageOutput) Importpath

func (o KoImageOutput) Importpath() pulumi.StringOutput

import path to build

func (KoImageOutput) Platforms

func (o KoImageOutput) Platforms() pulumi.StringPtrOutput

platforms to build

func (KoImageOutput) ToKoImageOutput

func (o KoImageOutput) ToKoImageOutput() KoImageOutput

func (KoImageOutput) ToKoImageOutputWithContext

func (o KoImageOutput) ToKoImageOutputWithContext(ctx context.Context) KoImageOutput

func (KoImageOutput) WorkingDir

func (o KoImageOutput) WorkingDir() pulumi.StringPtrOutput

working directory for the build

type KoImageState

type KoImageState struct {
	// base image to use
	BaseImage pulumi.StringPtrInput
	// built image reference by digest
	ImageRef pulumi.StringPtrInput
	// import path to build
	Importpath pulumi.StringPtrInput
	// platforms to build
	Platforms pulumi.StringPtrInput
	// working directory for the build
	WorkingDir pulumi.StringPtrInput
}

func (KoImageState) ElementType

func (KoImageState) ElementType() reflect.Type

type Provider

type Provider struct {
	pulumi.ProviderResourceState

	// Container repositor to publish images to. Defaults to `KO_DOCKER_REPO` env var
	DockerRepo pulumi.StringPtrOutput `pulumi:"dockerRepo"`
}

The provider type for the ko package. By default, resources use package-wide configuration settings, however an explicit `Provider` instance may be created and passed during resource construction to achieve fine-grained programmatic control over provider settings. See the [documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.

func NewProvider

func NewProvider(ctx *pulumi.Context,
	name string, args *ProviderArgs, opts ...pulumi.ResourceOption) (*Provider, error)

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

func (*Provider) ElementType

func (*Provider) ElementType() reflect.Type

func (*Provider) ToProviderOutput

func (i *Provider) ToProviderOutput() ProviderOutput

func (*Provider) ToProviderOutputWithContext

func (i *Provider) ToProviderOutputWithContext(ctx context.Context) ProviderOutput

type ProviderArgs

type ProviderArgs struct {
	// Container repositor to publish images to. Defaults to `KO_DOCKER_REPO` env var
	DockerRepo pulumi.StringPtrInput
}

The set of arguments for constructing a Provider resource.

func (ProviderArgs) ElementType

func (ProviderArgs) ElementType() reflect.Type

type ProviderInput

type ProviderInput interface {
	pulumi.Input

	ToProviderOutput() ProviderOutput
	ToProviderOutputWithContext(ctx context.Context) ProviderOutput
}

type ProviderOutput

type ProviderOutput struct{ *pulumi.OutputState }

func (ProviderOutput) DockerRepo

func (o ProviderOutput) DockerRepo() pulumi.StringPtrOutput

Container repositor to publish images to. Defaults to `KO_DOCKER_REPO` env var

func (ProviderOutput) ElementType

func (ProviderOutput) ElementType() reflect.Type

func (ProviderOutput) ToProviderOutput

func (o ProviderOutput) ToProviderOutput() ProviderOutput

func (ProviderOutput) ToProviderOutputWithContext

func (o ProviderOutput) ToProviderOutputWithContext(ctx context.Context) ProviderOutput

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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