installers

package
v0.0.0-...-13394e3 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitHubRelease

type GitHubRelease struct {
	pulumi.CustomResourceState

	// The name of the release asset to install. If this is not provided then
	// 				the resource will try and find the correct asset name to install. Supports regex
	AssetName pulumi.StringPtrOutput `pulumi:"assetName"`
	// Sometimes release assets contain a folder containing
	// 				program binaries which can just be copied. If that is the case, then provide the
	// 				location here. This will copy all files in the directory to the bin_location
	BinFolder pulumi.StringPtrOutput `pulumi:"binFolder"`
	// The location to put the program. Defaults to $HOME/.local/bin
	BinLocation pulumi.StringPtrOutput `pulumi:"binLocation"`
	// The URL of the GitHub release asset
	DownloadURL pulumi.StringOutput `pulumi:"downloadURL"`
	// The environment variables to set when running the commands
	Environment pulumi.StringMapOutput `pulumi:"environment"`
	// The name of the executable to create a symlink for. If not provided then the executable name will be the same as the repo name
	Executable pulumi.StringPtrOutput `pulumi:"executable"`
	// The commands to run to install the program
	InstallCommands pulumi.StringArrayOutput `pulumi:"installCommands"`
	// The interpreter to use to run the commands. Defaults to ['/bin/sh', '-c']
	Interpreter pulumi.StringArrayOutput `pulumi:"interpreter"`
	// The locations the program was installed to
	Locations pulumi.StringArrayOutput `pulumi:"locations"`
	// The GitHub organization the repo belongs to
	Org pulumi.StringOutput `pulumi:"org"`
	// The release version to install. If this is not provided then
	// 				the resource will try and find the latest release version to install.
	ReleaseVersion pulumi.StringPtrOutput `pulumi:"releaseVersion"`
	// The GitHub repository name
	Repo pulumi.StringOutput `pulumi:"repo"`
	// Optional Commands to run to uninstall the program
	UninstallCommands pulumi.StringArrayOutput `pulumi:"uninstallCommands"`
	// Optional Commands to run to update the program
	UpdateCommands pulumi.StringArrayOutput `pulumi:"updateCommands"`
}

Install a program from a GitHub release

func GetGitHubRelease

func GetGitHubRelease(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *GitHubReleaseState, opts ...pulumi.ResourceOption) (*GitHubRelease, error)

GetGitHubRelease gets an existing GitHubRelease 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 NewGitHubRelease

func NewGitHubRelease(ctx *pulumi.Context,
	name string, args *GitHubReleaseArgs, opts ...pulumi.ResourceOption) (*GitHubRelease, error)

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

func (*GitHubRelease) ElementType

func (*GitHubRelease) ElementType() reflect.Type

func (*GitHubRelease) ToGitHubReleaseOutput

func (i *GitHubRelease) ToGitHubReleaseOutput() GitHubReleaseOutput

func (*GitHubRelease) ToGitHubReleaseOutputWithContext

func (i *GitHubRelease) ToGitHubReleaseOutputWithContext(ctx context.Context) GitHubReleaseOutput

type GitHubReleaseArgs

type GitHubReleaseArgs struct {
	// The name of the release asset to install. If this is not provided then
	// 				the resource will try and find the correct asset name to install. Supports regex
	AssetName pulumi.StringPtrInput
	// Sometimes release assets contain a folder containing
	// 				program binaries which can just be copied. If that is the case, then provide the
	// 				location here. This will copy all files in the directory to the bin_location
	BinFolder pulumi.StringPtrInput
	// The location to put the program. Defaults to $HOME/.local/bin
	BinLocation pulumi.StringPtrInput
	// The name of the executable to create a symlink for. If not provided then the executable name will be the same as the repo name
	Executable pulumi.StringPtrInput
	// The commands to run to install the program
	InstallCommands pulumi.StringArrayInput
	// The GitHub organization the repo belongs to
	Org pulumi.StringInput
	// The release version to install. If this is not provided then
	// 				the resource will try and find the latest release version to install.
	ReleaseVersion pulumi.StringPtrInput
	// The GitHub repository name
	Repo pulumi.StringInput
	// Optional Commands to run to uninstall the program
	UninstallCommands pulumi.StringArrayInput
	// Optional Commands to run to update the program
	UpdateCommands pulumi.StringArrayInput
}

The set of arguments for constructing a GitHubRelease resource.

func (GitHubReleaseArgs) ElementType

func (GitHubReleaseArgs) ElementType() reflect.Type

type GitHubReleaseArray

type GitHubReleaseArray []GitHubReleaseInput

func (GitHubReleaseArray) ElementType

func (GitHubReleaseArray) ElementType() reflect.Type

func (GitHubReleaseArray) ToGitHubReleaseArrayOutput

func (i GitHubReleaseArray) ToGitHubReleaseArrayOutput() GitHubReleaseArrayOutput

func (GitHubReleaseArray) ToGitHubReleaseArrayOutputWithContext

func (i GitHubReleaseArray) ToGitHubReleaseArrayOutputWithContext(ctx context.Context) GitHubReleaseArrayOutput

type GitHubReleaseArrayInput

type GitHubReleaseArrayInput interface {
	pulumi.Input

	ToGitHubReleaseArrayOutput() GitHubReleaseArrayOutput
	ToGitHubReleaseArrayOutputWithContext(context.Context) GitHubReleaseArrayOutput
}

GitHubReleaseArrayInput is an input type that accepts GitHubReleaseArray and GitHubReleaseArrayOutput values. You can construct a concrete instance of `GitHubReleaseArrayInput` via:

GitHubReleaseArray{ GitHubReleaseArgs{...} }

type GitHubReleaseArrayOutput

type GitHubReleaseArrayOutput struct{ *pulumi.OutputState }

func (GitHubReleaseArrayOutput) ElementType

func (GitHubReleaseArrayOutput) ElementType() reflect.Type

func (GitHubReleaseArrayOutput) Index

func (GitHubReleaseArrayOutput) ToGitHubReleaseArrayOutput

func (o GitHubReleaseArrayOutput) ToGitHubReleaseArrayOutput() GitHubReleaseArrayOutput

func (GitHubReleaseArrayOutput) ToGitHubReleaseArrayOutputWithContext

func (o GitHubReleaseArrayOutput) ToGitHubReleaseArrayOutputWithContext(ctx context.Context) GitHubReleaseArrayOutput

type GitHubReleaseInput

type GitHubReleaseInput interface {
	pulumi.Input

	ToGitHubReleaseOutput() GitHubReleaseOutput
	ToGitHubReleaseOutputWithContext(ctx context.Context) GitHubReleaseOutput
}

type GitHubReleaseMap

type GitHubReleaseMap map[string]GitHubReleaseInput

func (GitHubReleaseMap) ElementType

func (GitHubReleaseMap) ElementType() reflect.Type

func (GitHubReleaseMap) ToGitHubReleaseMapOutput

func (i GitHubReleaseMap) ToGitHubReleaseMapOutput() GitHubReleaseMapOutput

func (GitHubReleaseMap) ToGitHubReleaseMapOutputWithContext

func (i GitHubReleaseMap) ToGitHubReleaseMapOutputWithContext(ctx context.Context) GitHubReleaseMapOutput

type GitHubReleaseMapInput

type GitHubReleaseMapInput interface {
	pulumi.Input

	ToGitHubReleaseMapOutput() GitHubReleaseMapOutput
	ToGitHubReleaseMapOutputWithContext(context.Context) GitHubReleaseMapOutput
}

GitHubReleaseMapInput is an input type that accepts GitHubReleaseMap and GitHubReleaseMapOutput values. You can construct a concrete instance of `GitHubReleaseMapInput` via:

GitHubReleaseMap{ "key": GitHubReleaseArgs{...} }

type GitHubReleaseMapOutput

type GitHubReleaseMapOutput struct{ *pulumi.OutputState }

func (GitHubReleaseMapOutput) ElementType

func (GitHubReleaseMapOutput) ElementType() reflect.Type

func (GitHubReleaseMapOutput) MapIndex

func (GitHubReleaseMapOutput) ToGitHubReleaseMapOutput

func (o GitHubReleaseMapOutput) ToGitHubReleaseMapOutput() GitHubReleaseMapOutput

func (GitHubReleaseMapOutput) ToGitHubReleaseMapOutputWithContext

func (o GitHubReleaseMapOutput) ToGitHubReleaseMapOutputWithContext(ctx context.Context) GitHubReleaseMapOutput

type GitHubReleaseOutput

type GitHubReleaseOutput struct{ *pulumi.OutputState }

func (GitHubReleaseOutput) AssetName

The name of the release asset to install. If this is not provided then

the resource will try and find the correct asset name to install. Supports regex

func (GitHubReleaseOutput) BinFolder

Sometimes release assets contain a folder containing

program binaries which can just be copied. If that is the case, then provide the
location here. This will copy all files in the directory to the bin_location

func (GitHubReleaseOutput) BinLocation

func (o GitHubReleaseOutput) BinLocation() pulumi.StringPtrOutput

The location to put the program. Defaults to $HOME/.local/bin

func (GitHubReleaseOutput) DownloadURL

func (o GitHubReleaseOutput) DownloadURL() pulumi.StringOutput

The URL of the GitHub release asset

func (GitHubReleaseOutput) ElementType

func (GitHubReleaseOutput) ElementType() reflect.Type

func (GitHubReleaseOutput) Environment

func (o GitHubReleaseOutput) Environment() pulumi.StringMapOutput

The environment variables to set when running the commands

func (GitHubReleaseOutput) Executable

The name of the executable to create a symlink for. If not provided then the executable name will be the same as the repo name

func (GitHubReleaseOutput) InstallCommands

func (o GitHubReleaseOutput) InstallCommands() pulumi.StringArrayOutput

The commands to run to install the program

func (GitHubReleaseOutput) Interpreter

The interpreter to use to run the commands. Defaults to ['/bin/sh', '-c']

func (GitHubReleaseOutput) Locations

The locations the program was installed to

func (GitHubReleaseOutput) Org

The GitHub organization the repo belongs to

func (GitHubReleaseOutput) ReleaseVersion

func (o GitHubReleaseOutput) ReleaseVersion() pulumi.StringPtrOutput

The release version to install. If this is not provided then

the resource will try and find the latest release version to install.

func (GitHubReleaseOutput) Repo

The GitHub repository name

func (GitHubReleaseOutput) ToGitHubReleaseOutput

func (o GitHubReleaseOutput) ToGitHubReleaseOutput() GitHubReleaseOutput

func (GitHubReleaseOutput) ToGitHubReleaseOutputWithContext

func (o GitHubReleaseOutput) ToGitHubReleaseOutputWithContext(ctx context.Context) GitHubReleaseOutput

func (GitHubReleaseOutput) UninstallCommands

func (o GitHubReleaseOutput) UninstallCommands() pulumi.StringArrayOutput

Optional Commands to run to uninstall the program

func (GitHubReleaseOutput) UpdateCommands

func (o GitHubReleaseOutput) UpdateCommands() pulumi.StringArrayOutput

Optional Commands to run to update the program

type GitHubReleaseState

type GitHubReleaseState struct {
}

func (GitHubReleaseState) ElementType

func (GitHubReleaseState) ElementType() reflect.Type

type GitHubRepo

type GitHubRepo struct {
	pulumi.CustomResourceState

	// The absolute path to the folder the repo was cloned to
	AbsFolderName pulumi.StringOutput `pulumi:"absFolderName"`
	// The branch to clone from. Default to main
	Branch pulumi.StringPtrOutput `pulumi:"branch"`
	// The environment variables to set when running the commands
	Environment pulumi.StringMapOutput `pulumi:"environment"`
	// The folder to clone the repo to. By default this is will be $HOME/$REPO_NAME
	FolderName pulumi.StringPtrOutput `pulumi:"folderName"`
	// The commands to run to install the program
	InstallCommands pulumi.StringArrayOutput `pulumi:"installCommands"`
	// The interpreter to use to run the commands. Defaults to ['/bin/sh', '-c']
	Interpreter pulumi.StringArrayOutput `pulumi:"interpreter"`
	// The GitHub organization the repo belongs to
	Org pulumi.StringOutput `pulumi:"org"`
	// The GitHub repository name
	Repo pulumi.StringOutput `pulumi:"repo"`
	// Optional Commands to run to uninstall the program
	UninstallCommands pulumi.StringArrayOutput `pulumi:"uninstallCommands"`
	// Optional Commands to run to update the program
	UpdateCommands pulumi.StringArrayOutput `pulumi:"updateCommands"`
	Version        pulumi.StringPtrOutput   `pulumi:"version"`
}

Install a program from a GitHub repository

func GetGitHubRepo

func GetGitHubRepo(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *GitHubRepoState, opts ...pulumi.ResourceOption) (*GitHubRepo, error)

GetGitHubRepo gets an existing GitHubRepo 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 NewGitHubRepo

func NewGitHubRepo(ctx *pulumi.Context,
	name string, args *GitHubRepoArgs, opts ...pulumi.ResourceOption) (*GitHubRepo, error)

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

func (*GitHubRepo) ElementType

func (*GitHubRepo) ElementType() reflect.Type

func (*GitHubRepo) ToGitHubRepoOutput

func (i *GitHubRepo) ToGitHubRepoOutput() GitHubRepoOutput

func (*GitHubRepo) ToGitHubRepoOutputWithContext

func (i *GitHubRepo) ToGitHubRepoOutputWithContext(ctx context.Context) GitHubRepoOutput

type GitHubRepoArgs

type GitHubRepoArgs struct {
	// The branch to clone from. Default to main
	Branch pulumi.StringPtrInput
	// The folder to clone the repo to. By default this is will be $HOME/$REPO_NAME
	FolderName pulumi.StringPtrInput
	// The commands to run to install the program
	InstallCommands pulumi.StringArrayInput
	// The GitHub organization the repo belongs to
	Org pulumi.StringInput
	// The GitHub repository name
	Repo pulumi.StringInput
	// Optional Commands to run to uninstall the program
	UninstallCommands pulumi.StringArrayInput
	// Optional Commands to run to update the program
	UpdateCommands pulumi.StringArrayInput
	Version        pulumi.StringPtrInput
}

The set of arguments for constructing a GitHubRepo resource.

func (GitHubRepoArgs) ElementType

func (GitHubRepoArgs) ElementType() reflect.Type

type GitHubRepoArray

type GitHubRepoArray []GitHubRepoInput

func (GitHubRepoArray) ElementType

func (GitHubRepoArray) ElementType() reflect.Type

func (GitHubRepoArray) ToGitHubRepoArrayOutput

func (i GitHubRepoArray) ToGitHubRepoArrayOutput() GitHubRepoArrayOutput

func (GitHubRepoArray) ToGitHubRepoArrayOutputWithContext

func (i GitHubRepoArray) ToGitHubRepoArrayOutputWithContext(ctx context.Context) GitHubRepoArrayOutput

type GitHubRepoArrayInput

type GitHubRepoArrayInput interface {
	pulumi.Input

	ToGitHubRepoArrayOutput() GitHubRepoArrayOutput
	ToGitHubRepoArrayOutputWithContext(context.Context) GitHubRepoArrayOutput
}

GitHubRepoArrayInput is an input type that accepts GitHubRepoArray and GitHubRepoArrayOutput values. You can construct a concrete instance of `GitHubRepoArrayInput` via:

GitHubRepoArray{ GitHubRepoArgs{...} }

type GitHubRepoArrayOutput

type GitHubRepoArrayOutput struct{ *pulumi.OutputState }

func (GitHubRepoArrayOutput) ElementType

func (GitHubRepoArrayOutput) ElementType() reflect.Type

func (GitHubRepoArrayOutput) Index

func (GitHubRepoArrayOutput) ToGitHubRepoArrayOutput

func (o GitHubRepoArrayOutput) ToGitHubRepoArrayOutput() GitHubRepoArrayOutput

func (GitHubRepoArrayOutput) ToGitHubRepoArrayOutputWithContext

func (o GitHubRepoArrayOutput) ToGitHubRepoArrayOutputWithContext(ctx context.Context) GitHubRepoArrayOutput

type GitHubRepoInput

type GitHubRepoInput interface {
	pulumi.Input

	ToGitHubRepoOutput() GitHubRepoOutput
	ToGitHubRepoOutputWithContext(ctx context.Context) GitHubRepoOutput
}

type GitHubRepoMap

type GitHubRepoMap map[string]GitHubRepoInput

func (GitHubRepoMap) ElementType

func (GitHubRepoMap) ElementType() reflect.Type

func (GitHubRepoMap) ToGitHubRepoMapOutput

func (i GitHubRepoMap) ToGitHubRepoMapOutput() GitHubRepoMapOutput

func (GitHubRepoMap) ToGitHubRepoMapOutputWithContext

func (i GitHubRepoMap) ToGitHubRepoMapOutputWithContext(ctx context.Context) GitHubRepoMapOutput

type GitHubRepoMapInput

type GitHubRepoMapInput interface {
	pulumi.Input

	ToGitHubRepoMapOutput() GitHubRepoMapOutput
	ToGitHubRepoMapOutputWithContext(context.Context) GitHubRepoMapOutput
}

GitHubRepoMapInput is an input type that accepts GitHubRepoMap and GitHubRepoMapOutput values. You can construct a concrete instance of `GitHubRepoMapInput` via:

GitHubRepoMap{ "key": GitHubRepoArgs{...} }

type GitHubRepoMapOutput

type GitHubRepoMapOutput struct{ *pulumi.OutputState }

func (GitHubRepoMapOutput) ElementType

func (GitHubRepoMapOutput) ElementType() reflect.Type

func (GitHubRepoMapOutput) MapIndex

func (GitHubRepoMapOutput) ToGitHubRepoMapOutput

func (o GitHubRepoMapOutput) ToGitHubRepoMapOutput() GitHubRepoMapOutput

func (GitHubRepoMapOutput) ToGitHubRepoMapOutputWithContext

func (o GitHubRepoMapOutput) ToGitHubRepoMapOutputWithContext(ctx context.Context) GitHubRepoMapOutput

type GitHubRepoOutput

type GitHubRepoOutput struct{ *pulumi.OutputState }

func (GitHubRepoOutput) AbsFolderName

func (o GitHubRepoOutput) AbsFolderName() pulumi.StringOutput

The absolute path to the folder the repo was cloned to

func (GitHubRepoOutput) Branch

The branch to clone from. Default to main

func (GitHubRepoOutput) ElementType

func (GitHubRepoOutput) ElementType() reflect.Type

func (GitHubRepoOutput) Environment

func (o GitHubRepoOutput) Environment() pulumi.StringMapOutput

The environment variables to set when running the commands

func (GitHubRepoOutput) FolderName

func (o GitHubRepoOutput) FolderName() pulumi.StringPtrOutput

The folder to clone the repo to. By default this is will be $HOME/$REPO_NAME

func (GitHubRepoOutput) InstallCommands

func (o GitHubRepoOutput) InstallCommands() pulumi.StringArrayOutput

The commands to run to install the program

func (GitHubRepoOutput) Interpreter

func (o GitHubRepoOutput) Interpreter() pulumi.StringArrayOutput

The interpreter to use to run the commands. Defaults to ['/bin/sh', '-c']

func (GitHubRepoOutput) Org

The GitHub organization the repo belongs to

func (GitHubRepoOutput) Repo

The GitHub repository name

func (GitHubRepoOutput) ToGitHubRepoOutput

func (o GitHubRepoOutput) ToGitHubRepoOutput() GitHubRepoOutput

func (GitHubRepoOutput) ToGitHubRepoOutputWithContext

func (o GitHubRepoOutput) ToGitHubRepoOutputWithContext(ctx context.Context) GitHubRepoOutput

func (GitHubRepoOutput) UninstallCommands

func (o GitHubRepoOutput) UninstallCommands() pulumi.StringArrayOutput

Optional Commands to run to uninstall the program

func (GitHubRepoOutput) UpdateCommands

func (o GitHubRepoOutput) UpdateCommands() pulumi.StringArrayOutput

Optional Commands to run to update the program

func (GitHubRepoOutput) Version

type GitHubRepoState

type GitHubRepoState struct {
}

func (GitHubRepoState) ElementType

func (GitHubRepoState) ElementType() reflect.Type

type Npm

type Npm struct {
	pulumi.CustomResourceState

	// The location of the node project
	Location pulumi.StringOutput `pulumi:"location"`
	// The npm package to install
	Package pulumi.StringOutput `pulumi:"package"`
	// The version of the package to install
	Version pulumi.StringPtrOutput `pulumi:"version"`
}

Install global npm packages.

This resource will create a local node project at the location you specify and will then symlink the node_modules/.bin directory so that all the executables are available globally.

func GetNpm

func GetNpm(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *NpmState, opts ...pulumi.ResourceOption) (*Npm, error)

GetNpm gets an existing Npm 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 NewNpm

func NewNpm(ctx *pulumi.Context,
	name string, args *NpmArgs, opts ...pulumi.ResourceOption) (*Npm, error)

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

func (*Npm) ElementType

func (*Npm) ElementType() reflect.Type

func (*Npm) ToNpmOutput

func (i *Npm) ToNpmOutput() NpmOutput

func (*Npm) ToNpmOutputWithContext

func (i *Npm) ToNpmOutputWithContext(ctx context.Context) NpmOutput

type NpmArgs

type NpmArgs struct {
	// The location of the node project
	Location pulumi.StringInput
	// The npm package to install
	Package pulumi.StringInput
	// The version of the package to install
	Version pulumi.StringPtrInput
}

The set of arguments for constructing a Npm resource.

func (NpmArgs) ElementType

func (NpmArgs) ElementType() reflect.Type

type NpmArray

type NpmArray []NpmInput

func (NpmArray) ElementType

func (NpmArray) ElementType() reflect.Type

func (NpmArray) ToNpmArrayOutput

func (i NpmArray) ToNpmArrayOutput() NpmArrayOutput

func (NpmArray) ToNpmArrayOutputWithContext

func (i NpmArray) ToNpmArrayOutputWithContext(ctx context.Context) NpmArrayOutput

type NpmArrayInput

type NpmArrayInput interface {
	pulumi.Input

	ToNpmArrayOutput() NpmArrayOutput
	ToNpmArrayOutputWithContext(context.Context) NpmArrayOutput
}

NpmArrayInput is an input type that accepts NpmArray and NpmArrayOutput values. You can construct a concrete instance of `NpmArrayInput` via:

NpmArray{ NpmArgs{...} }

type NpmArrayOutput

type NpmArrayOutput struct{ *pulumi.OutputState }

func (NpmArrayOutput) ElementType

func (NpmArrayOutput) ElementType() reflect.Type

func (NpmArrayOutput) Index

func (NpmArrayOutput) ToNpmArrayOutput

func (o NpmArrayOutput) ToNpmArrayOutput() NpmArrayOutput

func (NpmArrayOutput) ToNpmArrayOutputWithContext

func (o NpmArrayOutput) ToNpmArrayOutputWithContext(ctx context.Context) NpmArrayOutput

type NpmInput

type NpmInput interface {
	pulumi.Input

	ToNpmOutput() NpmOutput
	ToNpmOutputWithContext(ctx context.Context) NpmOutput
}

type NpmMap

type NpmMap map[string]NpmInput

func (NpmMap) ElementType

func (NpmMap) ElementType() reflect.Type

func (NpmMap) ToNpmMapOutput

func (i NpmMap) ToNpmMapOutput() NpmMapOutput

func (NpmMap) ToNpmMapOutputWithContext

func (i NpmMap) ToNpmMapOutputWithContext(ctx context.Context) NpmMapOutput

type NpmMapInput

type NpmMapInput interface {
	pulumi.Input

	ToNpmMapOutput() NpmMapOutput
	ToNpmMapOutputWithContext(context.Context) NpmMapOutput
}

NpmMapInput is an input type that accepts NpmMap and NpmMapOutput values. You can construct a concrete instance of `NpmMapInput` via:

NpmMap{ "key": NpmArgs{...} }

type NpmMapOutput

type NpmMapOutput struct{ *pulumi.OutputState }

func (NpmMapOutput) ElementType

func (NpmMapOutput) ElementType() reflect.Type

func (NpmMapOutput) MapIndex

func (o NpmMapOutput) MapIndex(k pulumi.StringInput) NpmOutput

func (NpmMapOutput) ToNpmMapOutput

func (o NpmMapOutput) ToNpmMapOutput() NpmMapOutput

func (NpmMapOutput) ToNpmMapOutputWithContext

func (o NpmMapOutput) ToNpmMapOutputWithContext(ctx context.Context) NpmMapOutput

type NpmOutput

type NpmOutput struct{ *pulumi.OutputState }

func (NpmOutput) ElementType

func (NpmOutput) ElementType() reflect.Type

func (NpmOutput) Location

func (o NpmOutput) Location() pulumi.StringOutput

The location of the node project

func (NpmOutput) Package

func (o NpmOutput) Package() pulumi.StringOutput

The npm package to install

func (NpmOutput) ToNpmOutput

func (o NpmOutput) ToNpmOutput() NpmOutput

func (NpmOutput) ToNpmOutputWithContext

func (o NpmOutput) ToNpmOutputWithContext(ctx context.Context) NpmOutput

func (NpmOutput) Version

func (o NpmOutput) Version() pulumi.StringPtrOutput

The version of the package to install

type NpmState

type NpmState struct {
}

func (NpmState) ElementType

func (NpmState) ElementType() reflect.Type

type Shell

type Shell struct {
	pulumi.CustomResourceState

	// The location to put the program. Defaults to $HOME/.local/bin
	BinLocation pulumi.StringPtrOutput `pulumi:"binLocation"`
	// The URL to download the program from
	DownloadURL pulumi.StringOutput `pulumi:"downloadURL"`
	// The environment variables to set when running the commands
	Environment pulumi.StringMapOutput `pulumi:"environment"`
	// Whether the program that is download is an executable
	Executable pulumi.BoolPtrOutput `pulumi:"executable"`
	// The commands to run to install the program
	InstallCommands pulumi.StringArrayOutput `pulumi:"installCommands"`
	// The interpreter to use to run the commands. Defaults to ['/bin/sh', '-c']
	Interpreter pulumi.StringArrayOutput `pulumi:"interpreter"`
	// The location the program was installed to
	Location pulumi.StringPtrOutput `pulumi:"location"`
	// The name of the program. This is the name you would use to execute the program
	ProgramName pulumi.StringOutput `pulumi:"programName"`
	// Optional Commands to run to uninstall the program
	UninstallCommands pulumi.StringArrayOutput `pulumi:"uninstallCommands"`
	// Optional Commands to run to update the program
	UpdateCommands pulumi.StringArrayOutput `pulumi:"updateCommands"`
	// The version of the program
	Version pulumi.StringOutput `pulumi:"version"`
	// The command to run to get the version of the program. This is needed if you want to keep track of the version in state
	VersionCommand pulumi.StringPtrOutput `pulumi:"versionCommand"`
}

Install something from a URL using shell commands

func GetShell

func GetShell(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ShellState, opts ...pulumi.ResourceOption) (*Shell, error)

GetShell gets an existing Shell 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 NewShell

func NewShell(ctx *pulumi.Context,
	name string, args *ShellArgs, opts ...pulumi.ResourceOption) (*Shell, error)

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

func (*Shell) ElementType

func (*Shell) ElementType() reflect.Type

func (*Shell) ToShellOutput

func (i *Shell) ToShellOutput() ShellOutput

func (*Shell) ToShellOutputWithContext

func (i *Shell) ToShellOutputWithContext(ctx context.Context) ShellOutput

type ShellArgs

type ShellArgs struct {
	// The location to put the program. Defaults to $HOME/.local/bin
	BinLocation pulumi.StringPtrInput
	// The URL to download the program from
	DownloadURL pulumi.StringInput
	// The environment variables to set when running the commands
	Environment pulumi.StringMapInput
	// Whether the program that is download is an executable
	Executable pulumi.BoolPtrInput
	// The commands to run to install the program
	InstallCommands pulumi.StringArrayInput
	// The interpreter to use to run the install commands. Defaults to ['/bin/sh', '-c']
	Interpreter pulumi.StringArrayInput
	// The name of the program. This is the name you would use to execute the program
	ProgramName pulumi.StringInput
	// Optional Commands to run to uninstall the program
	UninstallCommands pulumi.StringArrayInput
	// Optional Commands to run to update the program
	UpdateCommands pulumi.StringArrayInput
	// The command to run to get the version of the program. This is needed if you want to keep track of the version in state
	VersionCommand pulumi.StringPtrInput
}

The set of arguments for constructing a Shell resource.

func (ShellArgs) ElementType

func (ShellArgs) ElementType() reflect.Type

type ShellArray

type ShellArray []ShellInput

func (ShellArray) ElementType

func (ShellArray) ElementType() reflect.Type

func (ShellArray) ToShellArrayOutput

func (i ShellArray) ToShellArrayOutput() ShellArrayOutput

func (ShellArray) ToShellArrayOutputWithContext

func (i ShellArray) ToShellArrayOutputWithContext(ctx context.Context) ShellArrayOutput

type ShellArrayInput

type ShellArrayInput interface {
	pulumi.Input

	ToShellArrayOutput() ShellArrayOutput
	ToShellArrayOutputWithContext(context.Context) ShellArrayOutput
}

ShellArrayInput is an input type that accepts ShellArray and ShellArrayOutput values. You can construct a concrete instance of `ShellArrayInput` via:

ShellArray{ ShellArgs{...} }

type ShellArrayOutput

type ShellArrayOutput struct{ *pulumi.OutputState }

func (ShellArrayOutput) ElementType

func (ShellArrayOutput) ElementType() reflect.Type

func (ShellArrayOutput) Index

func (ShellArrayOutput) ToShellArrayOutput

func (o ShellArrayOutput) ToShellArrayOutput() ShellArrayOutput

func (ShellArrayOutput) ToShellArrayOutputWithContext

func (o ShellArrayOutput) ToShellArrayOutputWithContext(ctx context.Context) ShellArrayOutput

type ShellInput

type ShellInput interface {
	pulumi.Input

	ToShellOutput() ShellOutput
	ToShellOutputWithContext(ctx context.Context) ShellOutput
}

type ShellMap

type ShellMap map[string]ShellInput

func (ShellMap) ElementType

func (ShellMap) ElementType() reflect.Type

func (ShellMap) ToShellMapOutput

func (i ShellMap) ToShellMapOutput() ShellMapOutput

func (ShellMap) ToShellMapOutputWithContext

func (i ShellMap) ToShellMapOutputWithContext(ctx context.Context) ShellMapOutput

type ShellMapInput

type ShellMapInput interface {
	pulumi.Input

	ToShellMapOutput() ShellMapOutput
	ToShellMapOutputWithContext(context.Context) ShellMapOutput
}

ShellMapInput is an input type that accepts ShellMap and ShellMapOutput values. You can construct a concrete instance of `ShellMapInput` via:

ShellMap{ "key": ShellArgs{...} }

type ShellMapOutput

type ShellMapOutput struct{ *pulumi.OutputState }

func (ShellMapOutput) ElementType

func (ShellMapOutput) ElementType() reflect.Type

func (ShellMapOutput) MapIndex

func (ShellMapOutput) ToShellMapOutput

func (o ShellMapOutput) ToShellMapOutput() ShellMapOutput

func (ShellMapOutput) ToShellMapOutputWithContext

func (o ShellMapOutput) ToShellMapOutputWithContext(ctx context.Context) ShellMapOutput

type ShellOutput

type ShellOutput struct{ *pulumi.OutputState }

func (ShellOutput) BinLocation

func (o ShellOutput) BinLocation() pulumi.StringPtrOutput

The location to put the program. Defaults to $HOME/.local/bin

func (ShellOutput) DownloadURL

func (o ShellOutput) DownloadURL() pulumi.StringOutput

The URL to download the program from

func (ShellOutput) ElementType

func (ShellOutput) ElementType() reflect.Type

func (ShellOutput) Environment

func (o ShellOutput) Environment() pulumi.StringMapOutput

The environment variables to set when running the commands

func (ShellOutput) Executable

func (o ShellOutput) Executable() pulumi.BoolPtrOutput

Whether the program that is download is an executable

func (ShellOutput) InstallCommands

func (o ShellOutput) InstallCommands() pulumi.StringArrayOutput

The commands to run to install the program

func (ShellOutput) Interpreter

func (o ShellOutput) Interpreter() pulumi.StringArrayOutput

The interpreter to use to run the commands. Defaults to ['/bin/sh', '-c']

func (ShellOutput) Location

func (o ShellOutput) Location() pulumi.StringPtrOutput

The location the program was installed to

func (ShellOutput) ProgramName

func (o ShellOutput) ProgramName() pulumi.StringOutput

The name of the program. This is the name you would use to execute the program

func (ShellOutput) ToShellOutput

func (o ShellOutput) ToShellOutput() ShellOutput

func (ShellOutput) ToShellOutputWithContext

func (o ShellOutput) ToShellOutputWithContext(ctx context.Context) ShellOutput

func (ShellOutput) UninstallCommands

func (o ShellOutput) UninstallCommands() pulumi.StringArrayOutput

Optional Commands to run to uninstall the program

func (ShellOutput) UpdateCommands

func (o ShellOutput) UpdateCommands() pulumi.StringArrayOutput

Optional Commands to run to update the program

func (ShellOutput) Version

func (o ShellOutput) Version() pulumi.StringOutput

The version of the program

func (ShellOutput) VersionCommand

func (o ShellOutput) VersionCommand() pulumi.StringPtrOutput

The command to run to get the version of the program. This is needed if you want to keep track of the version in state

type ShellState

type ShellState struct {
}

func (ShellState) ElementType

func (ShellState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

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