apt

package
v6.18.1 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 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 LookupRepositoryArgs

type LookupRepositoryArgs struct {
	// The absolute path of the source list file that contains this repository.
	FilePath string `pulumi:"filePath"`
	// The index within the defining source list file.
	Index int `pulumi:"index"`
	// The name of the target Proxmox VE node.
	Node string `pulumi:"node"`
}

A collection of arguments for invoking getRepository.

type LookupRepositoryOutputArgs

type LookupRepositoryOutputArgs struct {
	// The absolute path of the source list file that contains this repository.
	FilePath pulumi.StringInput `pulumi:"filePath"`
	// The index within the defining source list file.
	Index pulumi.IntInput `pulumi:"index"`
	// The name of the target Proxmox VE node.
	Node pulumi.StringInput `pulumi:"node"`
}

A collection of arguments for invoking getRepository.

func (LookupRepositoryOutputArgs) ElementType

func (LookupRepositoryOutputArgs) ElementType() reflect.Type

type LookupRepositoryResult

type LookupRepositoryResult struct {
	// The associated comment.
	Comment string `pulumi:"comment"`
	// The list of components.
	Components []string `pulumi:"components"`
	// Indicates the activation status.
	Enabled bool `pulumi:"enabled"`
	// The absolute path of the source list file that contains this repository.
	FilePath string `pulumi:"filePath"`
	// The format of the defining source list file.
	FileType string `pulumi:"fileType"`
	// The unique identifier of this APT repository data source.
	Id string `pulumi:"id"`
	// The index within the defining source list file.
	Index int `pulumi:"index"`
	// The name of the target Proxmox VE node.
	Node string `pulumi:"node"`
	// The list of package types.
	PackageTypes []string `pulumi:"packageTypes"`
	// The list of package distributions.
	Suites []string `pulumi:"suites"`
	// The list of repository URIs.
	Uris []string `pulumi:"uris"`
}

A collection of values returned by getRepository.

func LookupRepository

func LookupRepository(ctx *pulumi.Context, args *LookupRepositoryArgs, opts ...pulumi.InvokeOption) (*LookupRepositoryResult, error)

Retrieves an APT repository from a Proxmox VE cluster.

## Example Usage

```go package main

import (

"github.com/muhlba91/pulumi-proxmoxve/sdk/v6/go/proxmoxve/Apt"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := Apt.GetRepository(ctx, &apt.GetRepositoryArgs{
			FilePath: "/etc/apt/sources.list",
			Index:    0,
			Node:     "pve",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("proxmoxVirtualEnvironmentAptRepository", example)
		return nil
	})
}

```

type LookupRepositoryResultOutput

type LookupRepositoryResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getRepository.

func (LookupRepositoryResultOutput) Comment

The associated comment.

func (LookupRepositoryResultOutput) Components

The list of components.

func (LookupRepositoryResultOutput) ElementType

func (LookupRepositoryResultOutput) Enabled

Indicates the activation status.

func (LookupRepositoryResultOutput) FilePath

The absolute path of the source list file that contains this repository.

func (LookupRepositoryResultOutput) FileType

The format of the defining source list file.

func (LookupRepositoryResultOutput) Id

The unique identifier of this APT repository data source.

func (LookupRepositoryResultOutput) Index

The index within the defining source list file.

func (LookupRepositoryResultOutput) Node

The name of the target Proxmox VE node.

func (LookupRepositoryResultOutput) PackageTypes

The list of package types.

func (LookupRepositoryResultOutput) Suites

The list of package distributions.

func (LookupRepositoryResultOutput) ToLookupRepositoryResultOutput

func (o LookupRepositoryResultOutput) ToLookupRepositoryResultOutput() LookupRepositoryResultOutput

func (LookupRepositoryResultOutput) ToLookupRepositoryResultOutputWithContext

func (o LookupRepositoryResultOutput) ToLookupRepositoryResultOutputWithContext(ctx context.Context) LookupRepositoryResultOutput

func (LookupRepositoryResultOutput) Uris

The list of repository URIs.

type Repository

type Repository struct {
	pulumi.CustomResourceState

	// The associated comment.
	Comment pulumi.StringOutput `pulumi:"comment"`
	// The list of components.
	Components pulumi.StringArrayOutput `pulumi:"components"`
	// Indicates the activation status.
	Enabled pulumi.BoolOutput `pulumi:"enabled"`
	// The absolute path of the source list file that contains this repository.
	FilePath pulumi.StringOutput `pulumi:"filePath"`
	// The format of the defining source list file.
	FileType pulumi.StringOutput `pulumi:"fileType"`
	// The index within the defining source list file.
	Index pulumi.IntOutput `pulumi:"index"`
	// The name of the target Proxmox VE node.
	Node pulumi.StringOutput `pulumi:"node"`
	// The list of package types.
	PackageTypes pulumi.StringArrayOutput `pulumi:"packageTypes"`
	// The list of package distributions.
	Suites pulumi.StringArrayOutput `pulumi:"suites"`
	// The list of repository URIs.
	Uris pulumi.StringArrayOutput `pulumi:"uris"`
}

Manages an APT repository of a Proxmox VE node.

## Example Usage

```go package main

import (

"github.com/muhlba91/pulumi-proxmoxve/sdk/v6/go/proxmoxve/Apt"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Apt.NewRepository(ctx, "example", &Apt.RepositoryArgs{
			Enabled:  pulumi.Bool(true),
			FilePath: pulumi.String("/etc/apt/sources.list"),
			Index:    pulumi.Int(0),
			Node:     pulumi.String("pve"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

#!/usr/bin/env sh

An APT repository can be imported using a comma-separated list consisting of the name of the Proxmox VE node,

the absolute source list file path, and the index in the exact same order, e.g.:

```sh $ pulumi import proxmoxve:Apt/repository:Repository example pve,/etc/apt/sources.list,0 ```

func GetRepository

func GetRepository(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *RepositoryState, opts ...pulumi.ResourceOption) (*Repository, error)

GetRepository gets an existing Repository 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 NewRepository

func NewRepository(ctx *pulumi.Context,
	name string, args *RepositoryArgs, opts ...pulumi.ResourceOption) (*Repository, error)

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

func (*Repository) ElementType

func (*Repository) ElementType() reflect.Type

func (*Repository) ToRepositoryOutput

func (i *Repository) ToRepositoryOutput() RepositoryOutput

func (*Repository) ToRepositoryOutputWithContext

func (i *Repository) ToRepositoryOutputWithContext(ctx context.Context) RepositoryOutput

type RepositoryArgs

type RepositoryArgs struct {
	// Indicates the activation status.
	Enabled pulumi.BoolPtrInput
	// The absolute path of the source list file that contains this repository.
	FilePath pulumi.StringInput
	// The index within the defining source list file.
	Index pulumi.IntInput
	// The name of the target Proxmox VE node.
	Node pulumi.StringInput
}

The set of arguments for constructing a Repository resource.

func (RepositoryArgs) ElementType

func (RepositoryArgs) ElementType() reflect.Type

type RepositoryArray

type RepositoryArray []RepositoryInput

func (RepositoryArray) ElementType

func (RepositoryArray) ElementType() reflect.Type

func (RepositoryArray) ToRepositoryArrayOutput

func (i RepositoryArray) ToRepositoryArrayOutput() RepositoryArrayOutput

func (RepositoryArray) ToRepositoryArrayOutputWithContext

func (i RepositoryArray) ToRepositoryArrayOutputWithContext(ctx context.Context) RepositoryArrayOutput

type RepositoryArrayInput

type RepositoryArrayInput interface {
	pulumi.Input

	ToRepositoryArrayOutput() RepositoryArrayOutput
	ToRepositoryArrayOutputWithContext(context.Context) RepositoryArrayOutput
}

RepositoryArrayInput is an input type that accepts RepositoryArray and RepositoryArrayOutput values. You can construct a concrete instance of `RepositoryArrayInput` via:

RepositoryArray{ RepositoryArgs{...} }

type RepositoryArrayOutput

type RepositoryArrayOutput struct{ *pulumi.OutputState }

func (RepositoryArrayOutput) ElementType

func (RepositoryArrayOutput) ElementType() reflect.Type

func (RepositoryArrayOutput) Index

func (RepositoryArrayOutput) ToRepositoryArrayOutput

func (o RepositoryArrayOutput) ToRepositoryArrayOutput() RepositoryArrayOutput

func (RepositoryArrayOutput) ToRepositoryArrayOutputWithContext

func (o RepositoryArrayOutput) ToRepositoryArrayOutputWithContext(ctx context.Context) RepositoryArrayOutput

type RepositoryInput

type RepositoryInput interface {
	pulumi.Input

	ToRepositoryOutput() RepositoryOutput
	ToRepositoryOutputWithContext(ctx context.Context) RepositoryOutput
}

type RepositoryMap

type RepositoryMap map[string]RepositoryInput

func (RepositoryMap) ElementType

func (RepositoryMap) ElementType() reflect.Type

func (RepositoryMap) ToRepositoryMapOutput

func (i RepositoryMap) ToRepositoryMapOutput() RepositoryMapOutput

func (RepositoryMap) ToRepositoryMapOutputWithContext

func (i RepositoryMap) ToRepositoryMapOutputWithContext(ctx context.Context) RepositoryMapOutput

type RepositoryMapInput

type RepositoryMapInput interface {
	pulumi.Input

	ToRepositoryMapOutput() RepositoryMapOutput
	ToRepositoryMapOutputWithContext(context.Context) RepositoryMapOutput
}

RepositoryMapInput is an input type that accepts RepositoryMap and RepositoryMapOutput values. You can construct a concrete instance of `RepositoryMapInput` via:

RepositoryMap{ "key": RepositoryArgs{...} }

type RepositoryMapOutput

type RepositoryMapOutput struct{ *pulumi.OutputState }

func (RepositoryMapOutput) ElementType

func (RepositoryMapOutput) ElementType() reflect.Type

func (RepositoryMapOutput) MapIndex

func (RepositoryMapOutput) ToRepositoryMapOutput

func (o RepositoryMapOutput) ToRepositoryMapOutput() RepositoryMapOutput

func (RepositoryMapOutput) ToRepositoryMapOutputWithContext

func (o RepositoryMapOutput) ToRepositoryMapOutputWithContext(ctx context.Context) RepositoryMapOutput

type RepositoryOutput

type RepositoryOutput struct{ *pulumi.OutputState }

func (RepositoryOutput) Comment

func (o RepositoryOutput) Comment() pulumi.StringOutput

The associated comment.

func (RepositoryOutput) Components

func (o RepositoryOutput) Components() pulumi.StringArrayOutput

The list of components.

func (RepositoryOutput) ElementType

func (RepositoryOutput) ElementType() reflect.Type

func (RepositoryOutput) Enabled

func (o RepositoryOutput) Enabled() pulumi.BoolOutput

Indicates the activation status.

func (RepositoryOutput) FilePath

func (o RepositoryOutput) FilePath() pulumi.StringOutput

The absolute path of the source list file that contains this repository.

func (RepositoryOutput) FileType

func (o RepositoryOutput) FileType() pulumi.StringOutput

The format of the defining source list file.

func (RepositoryOutput) Index

func (o RepositoryOutput) Index() pulumi.IntOutput

The index within the defining source list file.

func (RepositoryOutput) Node

The name of the target Proxmox VE node.

func (RepositoryOutput) PackageTypes

func (o RepositoryOutput) PackageTypes() pulumi.StringArrayOutput

The list of package types.

func (RepositoryOutput) Suites

The list of package distributions.

func (RepositoryOutput) ToRepositoryOutput

func (o RepositoryOutput) ToRepositoryOutput() RepositoryOutput

func (RepositoryOutput) ToRepositoryOutputWithContext

func (o RepositoryOutput) ToRepositoryOutputWithContext(ctx context.Context) RepositoryOutput

func (RepositoryOutput) Uris

The list of repository URIs.

type RepositoryState

type RepositoryState struct {
	// The associated comment.
	Comment pulumi.StringPtrInput
	// The list of components.
	Components pulumi.StringArrayInput
	// Indicates the activation status.
	Enabled pulumi.BoolPtrInput
	// The absolute path of the source list file that contains this repository.
	FilePath pulumi.StringPtrInput
	// The format of the defining source list file.
	FileType pulumi.StringPtrInput
	// The index within the defining source list file.
	Index pulumi.IntPtrInput
	// The name of the target Proxmox VE node.
	Node pulumi.StringPtrInput
	// The list of package types.
	PackageTypes pulumi.StringArrayInput
	// The list of package distributions.
	Suites pulumi.StringArrayInput
	// The list of repository URIs.
	Uris pulumi.StringArrayInput
}

func (RepositoryState) ElementType

func (RepositoryState) ElementType() reflect.Type

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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