containerregistry

package
v0.0.0-...-c33e12d Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 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 GetImageArgs

type GetImageArgs struct {
	// The image ID.
	// Only one of `name` and `imageId` should be specified.
	ImageId *string `pulumi:"imageId"`
	// The image name.
	// Only one of `name` and `imageId` should be specified.
	Name *string `pulumi:"name"`
	// The namespace ID in which the image is.
	NamespaceId *string `pulumi:"namespaceId"`
	// `projectId`) The ID of the project the image is associated with.
	ProjectId *string `pulumi:"projectId"`
	// `region`) The region in which the image exists.
	Region *string `pulumi:"region"`
	// The tags associated with the registry image
	Tags []string `pulumi:"tags"`
}

A collection of arguments for invoking getImage.

type GetImageOutputArgs

type GetImageOutputArgs struct {
	// The image ID.
	// Only one of `name` and `imageId` should be specified.
	ImageId pulumi.StringPtrInput `pulumi:"imageId"`
	// The image name.
	// Only one of `name` and `imageId` should be specified.
	Name pulumi.StringPtrInput `pulumi:"name"`
	// The namespace ID in which the image is.
	NamespaceId pulumi.StringPtrInput `pulumi:"namespaceId"`
	// `projectId`) The ID of the project the image is associated with.
	ProjectId pulumi.StringPtrInput `pulumi:"projectId"`
	// `region`) The region in which the image exists.
	Region pulumi.StringPtrInput `pulumi:"region"`
	// The tags associated with the registry image
	Tags pulumi.StringArrayInput `pulumi:"tags"`
}

A collection of arguments for invoking getImage.

func (GetImageOutputArgs) ElementType

func (GetImageOutputArgs) ElementType() reflect.Type

type GetImageResult

type GetImageResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id          string  `pulumi:"id"`
	ImageId     *string `pulumi:"imageId"`
	Name        *string `pulumi:"name"`
	NamespaceId string  `pulumi:"namespaceId"`
	// The organization ID the image is associated with.
	OrganizationId string `pulumi:"organizationId"`
	ProjectId      string `pulumi:"projectId"`
	Region         string `pulumi:"region"`
	// The size of the registry image.
	Size int `pulumi:"size"`
	// The tags associated with the registry image
	Tags []string `pulumi:"tags"`
	// The date the image of the last update
	UpdatedAt string `pulumi:"updatedAt"`
	// The privacy policy of the registry image.
	Visibility string `pulumi:"visibility"`
}

A collection of values returned by getImage.

func GetImage

func GetImage(ctx *pulumi.Context, args *GetImageArgs, opts ...pulumi.InvokeOption) (*GetImageResult, error)

Gets information about a registry image.

## Example Usage

<!--Start PulumiCodeChooser --> ```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/raeumlich/pulumi-scaleway/sdk/go/scaleway/containerregistry"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := containerregistry.GetImage(ctx, &containerregistry.GetImageArgs{
			ImageId:     pulumi.StringRef("11111111-1111-1111-1111-111111111111"),
			NamespaceId: pulumi.StringRef("11111111-1111-1111-1111-111111111111"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

type GetImageResultOutput

type GetImageResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getImage.

func (GetImageResultOutput) ElementType

func (GetImageResultOutput) ElementType() reflect.Type

func (GetImageResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetImageResultOutput) ImageId

func (GetImageResultOutput) Name

func (GetImageResultOutput) NamespaceId

func (o GetImageResultOutput) NamespaceId() pulumi.StringOutput

func (GetImageResultOutput) OrganizationId

func (o GetImageResultOutput) OrganizationId() pulumi.StringOutput

The organization ID the image is associated with.

func (GetImageResultOutput) ProjectId

func (GetImageResultOutput) Region

func (GetImageResultOutput) Size

The size of the registry image.

func (GetImageResultOutput) Tags

The tags associated with the registry image

func (GetImageResultOutput) ToGetImageResultOutput

func (o GetImageResultOutput) ToGetImageResultOutput() GetImageResultOutput

func (GetImageResultOutput) ToGetImageResultOutputWithContext

func (o GetImageResultOutput) ToGetImageResultOutputWithContext(ctx context.Context) GetImageResultOutput

func (GetImageResultOutput) UpdatedAt

The date the image of the last update

func (GetImageResultOutput) Visibility

func (o GetImageResultOutput) Visibility() pulumi.StringOutput

The privacy policy of the registry image.

type LookupNamespaceArgs

type LookupNamespaceArgs struct {
	// The namespace name.
	// Only one of `name` and `namespaceId` should be specified.
	Name *string `pulumi:"name"`
	// The namespace id.
	// Only one of `name` and `namespaceId` should be specified.
	NamespaceId *string `pulumi:"namespaceId"`
	// `projectId`) The ID of the project the namespace is associated with.
	ProjectId *string `pulumi:"projectId"`
	// `region`) The region in which the namespace exists.
	Region *string `pulumi:"region"`
}

A collection of arguments for invoking getNamespace.

type LookupNamespaceOutputArgs

type LookupNamespaceOutputArgs struct {
	// The namespace name.
	// Only one of `name` and `namespaceId` should be specified.
	Name pulumi.StringPtrInput `pulumi:"name"`
	// The namespace id.
	// Only one of `name` and `namespaceId` should be specified.
	NamespaceId pulumi.StringPtrInput `pulumi:"namespaceId"`
	// `projectId`) The ID of the project the namespace is associated with.
	ProjectId pulumi.StringPtrInput `pulumi:"projectId"`
	// `region`) The region in which the namespace exists.
	Region pulumi.StringPtrInput `pulumi:"region"`
}

A collection of arguments for invoking getNamespace.

func (LookupNamespaceOutputArgs) ElementType

func (LookupNamespaceOutputArgs) ElementType() reflect.Type

type LookupNamespaceResult

type LookupNamespaceResult struct {
	Description string `pulumi:"description"`
	// The endpoint of the Registry Namespace.
	Endpoint string `pulumi:"endpoint"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The Namespace Privacy Policy: whether or not the images are public.
	IsPublic    bool    `pulumi:"isPublic"`
	Name        *string `pulumi:"name"`
	NamespaceId *string `pulumi:"namespaceId"`
	// The organization ID the namespace is associated with.
	OrganizationId string  `pulumi:"organizationId"`
	ProjectId      *string `pulumi:"projectId"`
	Region         *string `pulumi:"region"`
}

A collection of values returned by getNamespace.

func LookupNamespace

func LookupNamespace(ctx *pulumi.Context, args *LookupNamespaceArgs, opts ...pulumi.InvokeOption) (*LookupNamespaceResult, error)

Gets information about a registry namespace.

## Example Usage

<!--Start PulumiCodeChooser --> ```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/raeumlich/pulumi-scaleway/sdk/go/scaleway/containerregistry"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := containerregistry.LookupNamespace(ctx, &containerregistry.LookupNamespaceArgs{
			NamespaceId: pulumi.StringRef("11111111-1111-1111-1111-111111111111"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

type LookupNamespaceResultOutput

type LookupNamespaceResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getNamespace.

func (LookupNamespaceResultOutput) Description

func (LookupNamespaceResultOutput) ElementType

func (LookupNamespaceResultOutput) Endpoint

The endpoint of the Registry Namespace.

func (LookupNamespaceResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (LookupNamespaceResultOutput) IsPublic

The Namespace Privacy Policy: whether or not the images are public.

func (LookupNamespaceResultOutput) Name

func (LookupNamespaceResultOutput) NamespaceId

func (LookupNamespaceResultOutput) OrganizationId

func (o LookupNamespaceResultOutput) OrganizationId() pulumi.StringOutput

The organization ID the namespace is associated with.

func (LookupNamespaceResultOutput) ProjectId

func (LookupNamespaceResultOutput) Region

func (LookupNamespaceResultOutput) ToLookupNamespaceResultOutput

func (o LookupNamespaceResultOutput) ToLookupNamespaceResultOutput() LookupNamespaceResultOutput

func (LookupNamespaceResultOutput) ToLookupNamespaceResultOutputWithContext

func (o LookupNamespaceResultOutput) ToLookupNamespaceResultOutputWithContext(ctx context.Context) LookupNamespaceResultOutput

type Namespace

type Namespace struct {
	pulumi.CustomResourceState

	// The description of the namespace.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// Endpoint reachable by Docker.
	Endpoint pulumi.StringOutput `pulumi:"endpoint"`
	// Whether the images stored in the namespace should be downloadable publicly (docker pull).
	IsPublic pulumi.BoolPtrOutput `pulumi:"isPublic"`
	// The unique name of the namespace.
	//
	// > **Important** Updates to `name` will recreate the namespace.
	Name pulumi.StringOutput `pulumi:"name"`
	// The organization ID the namespace is associated with.
	OrganizationId pulumi.StringOutput `pulumi:"organizationId"`
	// `projectId`) The ID of the project the namespace is associated with.
	ProjectId pulumi.StringOutput `pulumi:"projectId"`
	// `region`). The region in which the namespace should be created.
	Region pulumi.StringOutput `pulumi:"region"`
}

Creates and manages Scaleway Container Registry. For more information see [the documentation](https://developers.scaleway.com/en/products/registry/api/).

## Example Usage

### Basic

<!--Start PulumiCodeChooser --> ```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/raeumlich/pulumi-scaleway/sdk/go/scaleway/containerregistry"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := containerregistry.NewNamespace(ctx, "main", &containerregistry.NamespaceArgs{
			Description: pulumi.String("Main container registry"),
			IsPublic:    pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` <!--End PulumiCodeChooser -->

## Import

Namespaces can be imported using the `{region}/{id}`, e.g.

bash

```sh $ pulumi import scaleway:containerregistry/namespace:Namespace main fr-par/11111111-1111-1111-1111-111111111111 ```

func GetNamespace

func GetNamespace(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *NamespaceState, opts ...pulumi.ResourceOption) (*Namespace, error)

GetNamespace gets an existing Namespace 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 NewNamespace

func NewNamespace(ctx *pulumi.Context,
	name string, args *NamespaceArgs, opts ...pulumi.ResourceOption) (*Namespace, error)

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

func (*Namespace) ElementType

func (*Namespace) ElementType() reflect.Type

func (*Namespace) ToNamespaceOutput

func (i *Namespace) ToNamespaceOutput() NamespaceOutput

func (*Namespace) ToNamespaceOutputWithContext

func (i *Namespace) ToNamespaceOutputWithContext(ctx context.Context) NamespaceOutput

type NamespaceArgs

type NamespaceArgs struct {
	// The description of the namespace.
	Description pulumi.StringPtrInput
	// Whether the images stored in the namespace should be downloadable publicly (docker pull).
	IsPublic pulumi.BoolPtrInput
	// The unique name of the namespace.
	//
	// > **Important** Updates to `name` will recreate the namespace.
	Name pulumi.StringPtrInput
	// `projectId`) The ID of the project the namespace is associated with.
	ProjectId pulumi.StringPtrInput
	// `region`). The region in which the namespace should be created.
	Region pulumi.StringPtrInput
}

The set of arguments for constructing a Namespace resource.

func (NamespaceArgs) ElementType

func (NamespaceArgs) ElementType() reflect.Type

type NamespaceArray

type NamespaceArray []NamespaceInput

func (NamespaceArray) ElementType

func (NamespaceArray) ElementType() reflect.Type

func (NamespaceArray) ToNamespaceArrayOutput

func (i NamespaceArray) ToNamespaceArrayOutput() NamespaceArrayOutput

func (NamespaceArray) ToNamespaceArrayOutputWithContext

func (i NamespaceArray) ToNamespaceArrayOutputWithContext(ctx context.Context) NamespaceArrayOutput

type NamespaceArrayInput

type NamespaceArrayInput interface {
	pulumi.Input

	ToNamespaceArrayOutput() NamespaceArrayOutput
	ToNamespaceArrayOutputWithContext(context.Context) NamespaceArrayOutput
}

NamespaceArrayInput is an input type that accepts NamespaceArray and NamespaceArrayOutput values. You can construct a concrete instance of `NamespaceArrayInput` via:

NamespaceArray{ NamespaceArgs{...} }

type NamespaceArrayOutput

type NamespaceArrayOutput struct{ *pulumi.OutputState }

func (NamespaceArrayOutput) ElementType

func (NamespaceArrayOutput) ElementType() reflect.Type

func (NamespaceArrayOutput) Index

func (NamespaceArrayOutput) ToNamespaceArrayOutput

func (o NamespaceArrayOutput) ToNamespaceArrayOutput() NamespaceArrayOutput

func (NamespaceArrayOutput) ToNamespaceArrayOutputWithContext

func (o NamespaceArrayOutput) ToNamespaceArrayOutputWithContext(ctx context.Context) NamespaceArrayOutput

type NamespaceInput

type NamespaceInput interface {
	pulumi.Input

	ToNamespaceOutput() NamespaceOutput
	ToNamespaceOutputWithContext(ctx context.Context) NamespaceOutput
}

type NamespaceMap

type NamespaceMap map[string]NamespaceInput

func (NamespaceMap) ElementType

func (NamespaceMap) ElementType() reflect.Type

func (NamespaceMap) ToNamespaceMapOutput

func (i NamespaceMap) ToNamespaceMapOutput() NamespaceMapOutput

func (NamespaceMap) ToNamespaceMapOutputWithContext

func (i NamespaceMap) ToNamespaceMapOutputWithContext(ctx context.Context) NamespaceMapOutput

type NamespaceMapInput

type NamespaceMapInput interface {
	pulumi.Input

	ToNamespaceMapOutput() NamespaceMapOutput
	ToNamespaceMapOutputWithContext(context.Context) NamespaceMapOutput
}

NamespaceMapInput is an input type that accepts NamespaceMap and NamespaceMapOutput values. You can construct a concrete instance of `NamespaceMapInput` via:

NamespaceMap{ "key": NamespaceArgs{...} }

type NamespaceMapOutput

type NamespaceMapOutput struct{ *pulumi.OutputState }

func (NamespaceMapOutput) ElementType

func (NamespaceMapOutput) ElementType() reflect.Type

func (NamespaceMapOutput) MapIndex

func (NamespaceMapOutput) ToNamespaceMapOutput

func (o NamespaceMapOutput) ToNamespaceMapOutput() NamespaceMapOutput

func (NamespaceMapOutput) ToNamespaceMapOutputWithContext

func (o NamespaceMapOutput) ToNamespaceMapOutputWithContext(ctx context.Context) NamespaceMapOutput

type NamespaceOutput

type NamespaceOutput struct{ *pulumi.OutputState }

func (NamespaceOutput) Description

func (o NamespaceOutput) Description() pulumi.StringPtrOutput

The description of the namespace.

func (NamespaceOutput) ElementType

func (NamespaceOutput) ElementType() reflect.Type

func (NamespaceOutput) Endpoint

func (o NamespaceOutput) Endpoint() pulumi.StringOutput

Endpoint reachable by Docker.

func (NamespaceOutput) IsPublic

func (o NamespaceOutput) IsPublic() pulumi.BoolPtrOutput

Whether the images stored in the namespace should be downloadable publicly (docker pull).

func (NamespaceOutput) Name

The unique name of the namespace.

> **Important** Updates to `name` will recreate the namespace.

func (NamespaceOutput) OrganizationId

func (o NamespaceOutput) OrganizationId() pulumi.StringOutput

The organization ID the namespace is associated with.

func (NamespaceOutput) ProjectId

func (o NamespaceOutput) ProjectId() pulumi.StringOutput

`projectId`) The ID of the project the namespace is associated with.

func (NamespaceOutput) Region

func (o NamespaceOutput) Region() pulumi.StringOutput

`region`). The region in which the namespace should be created.

func (NamespaceOutput) ToNamespaceOutput

func (o NamespaceOutput) ToNamespaceOutput() NamespaceOutput

func (NamespaceOutput) ToNamespaceOutputWithContext

func (o NamespaceOutput) ToNamespaceOutputWithContext(ctx context.Context) NamespaceOutput

type NamespaceState

type NamespaceState struct {
	// The description of the namespace.
	Description pulumi.StringPtrInput
	// Endpoint reachable by Docker.
	Endpoint pulumi.StringPtrInput
	// Whether the images stored in the namespace should be downloadable publicly (docker pull).
	IsPublic pulumi.BoolPtrInput
	// The unique name of the namespace.
	//
	// > **Important** Updates to `name` will recreate the namespace.
	Name pulumi.StringPtrInput
	// The organization ID the namespace is associated with.
	OrganizationId pulumi.StringPtrInput
	// `projectId`) The ID of the project the namespace is associated with.
	ProjectId pulumi.StringPtrInput
	// `region`). The region in which the namespace should be created.
	Region pulumi.StringPtrInput
}

func (NamespaceState) ElementType

func (NamespaceState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

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