Documentation ¶
Index ¶
- type GetImageArgs
- type GetImageOutputArgs
- type GetImageResult
- type GetImageResultOutput
- func (GetImageResultOutput) ElementType() reflect.Type
- func (o GetImageResultOutput) Id() pulumi.StringOutput
- func (o GetImageResultOutput) ImageId() pulumi.StringPtrOutput
- func (o GetImageResultOutput) Name() pulumi.StringPtrOutput
- func (o GetImageResultOutput) NamespaceId() pulumi.StringOutput
- func (o GetImageResultOutput) OrganizationId() pulumi.StringOutput
- func (o GetImageResultOutput) ProjectId() pulumi.StringOutput
- func (o GetImageResultOutput) Region() pulumi.StringOutput
- func (o GetImageResultOutput) Size() pulumi.IntOutput
- func (o GetImageResultOutput) Tags() pulumi.StringArrayOutput
- func (o GetImageResultOutput) ToGetImageResultOutput() GetImageResultOutput
- func (o GetImageResultOutput) ToGetImageResultOutputWithContext(ctx context.Context) GetImageResultOutput
- func (o GetImageResultOutput) UpdatedAt() pulumi.StringOutput
- func (o GetImageResultOutput) Visibility() pulumi.StringOutput
- type LookupNamespaceArgs
- type LookupNamespaceOutputArgs
- type LookupNamespaceResult
- type LookupNamespaceResultOutput
- func (o LookupNamespaceResultOutput) Description() pulumi.StringOutput
- func (LookupNamespaceResultOutput) ElementType() reflect.Type
- func (o LookupNamespaceResultOutput) Endpoint() pulumi.StringOutput
- func (o LookupNamespaceResultOutput) Id() pulumi.StringOutput
- func (o LookupNamespaceResultOutput) IsPublic() pulumi.BoolOutput
- func (o LookupNamespaceResultOutput) Name() pulumi.StringPtrOutput
- func (o LookupNamespaceResultOutput) NamespaceId() pulumi.StringPtrOutput
- func (o LookupNamespaceResultOutput) OrganizationId() pulumi.StringOutput
- func (o LookupNamespaceResultOutput) ProjectId() pulumi.StringPtrOutput
- func (o LookupNamespaceResultOutput) Region() pulumi.StringPtrOutput
- func (o LookupNamespaceResultOutput) ToLookupNamespaceResultOutput() LookupNamespaceResultOutput
- func (o LookupNamespaceResultOutput) ToLookupNamespaceResultOutputWithContext(ctx context.Context) LookupNamespaceResultOutput
- type Namespace
- type NamespaceArgs
- type NamespaceArray
- type NamespaceArrayInput
- type NamespaceArrayOutput
- func (NamespaceArrayOutput) ElementType() reflect.Type
- func (o NamespaceArrayOutput) Index(i pulumi.IntInput) NamespaceOutput
- func (o NamespaceArrayOutput) ToNamespaceArrayOutput() NamespaceArrayOutput
- func (o NamespaceArrayOutput) ToNamespaceArrayOutputWithContext(ctx context.Context) NamespaceArrayOutput
- type NamespaceInput
- type NamespaceMap
- type NamespaceMapInput
- type NamespaceMapOutput
- type NamespaceOutput
- func (o NamespaceOutput) Description() pulumi.StringPtrOutput
- func (NamespaceOutput) ElementType() reflect.Type
- func (o NamespaceOutput) Endpoint() pulumi.StringOutput
- func (o NamespaceOutput) IsPublic() pulumi.BoolPtrOutput
- func (o NamespaceOutput) Name() pulumi.StringOutput
- func (o NamespaceOutput) OrganizationId() pulumi.StringOutput
- func (o NamespaceOutput) ProjectId() pulumi.StringOutput
- func (o NamespaceOutput) Region() pulumi.StringOutput
- func (o NamespaceOutput) ToNamespaceOutput() NamespaceOutput
- func (o NamespaceOutput) ToNamespaceOutputWithContext(ctx context.Context) NamespaceOutput
- type NamespaceState
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 GetImageOutput ¶
func GetImageOutput(ctx *pulumi.Context, args GetImageOutputArgs, opts ...pulumi.InvokeOption) GetImageResultOutput
func (GetImageResultOutput) ElementType ¶
func (GetImageResultOutput) ElementType() reflect.Type
func (GetImageResultOutput) Id ¶
func (o GetImageResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetImageResultOutput) ImageId ¶
func (o GetImageResultOutput) ImageId() pulumi.StringPtrOutput
func (GetImageResultOutput) Name ¶
func (o GetImageResultOutput) Name() pulumi.StringPtrOutput
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 (o GetImageResultOutput) ProjectId() pulumi.StringOutput
func (GetImageResultOutput) Region ¶
func (o GetImageResultOutput) Region() pulumi.StringOutput
func (GetImageResultOutput) Size ¶
func (o GetImageResultOutput) Size() pulumi.IntOutput
The size of the registry image.
func (GetImageResultOutput) Tags ¶
func (o GetImageResultOutput) Tags() pulumi.StringArrayOutput
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 ¶
func (o GetImageResultOutput) UpdatedAt() pulumi.StringOutput
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 LookupNamespaceOutput ¶
func LookupNamespaceOutput(ctx *pulumi.Context, args LookupNamespaceOutputArgs, opts ...pulumi.InvokeOption) LookupNamespaceResultOutput
func (LookupNamespaceResultOutput) Description ¶
func (o LookupNamespaceResultOutput) Description() pulumi.StringOutput
func (LookupNamespaceResultOutput) ElementType ¶
func (LookupNamespaceResultOutput) ElementType() reflect.Type
func (LookupNamespaceResultOutput) Endpoint ¶
func (o LookupNamespaceResultOutput) Endpoint() pulumi.StringOutput
The endpoint of the Registry Namespace.
func (LookupNamespaceResultOutput) Id ¶
func (o LookupNamespaceResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (LookupNamespaceResultOutput) IsPublic ¶
func (o LookupNamespaceResultOutput) IsPublic() pulumi.BoolOutput
The Namespace Privacy Policy: whether or not the images are public.
func (LookupNamespaceResultOutput) Name ¶
func (o LookupNamespaceResultOutput) Name() pulumi.StringPtrOutput
func (LookupNamespaceResultOutput) NamespaceId ¶
func (o LookupNamespaceResultOutput) NamespaceId() pulumi.StringPtrOutput
func (LookupNamespaceResultOutput) OrganizationId ¶
func (o LookupNamespaceResultOutput) OrganizationId() pulumi.StringOutput
The organization ID the namespace is associated with.
func (LookupNamespaceResultOutput) ProjectId ¶
func (o LookupNamespaceResultOutput) ProjectId() pulumi.StringPtrOutput
func (LookupNamespaceResultOutput) Region ¶
func (o LookupNamespaceResultOutput) Region() pulumi.StringPtrOutput
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) 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 (o NamespaceArrayOutput) Index(i pulumi.IntInput) NamespaceOutput
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 (o NamespaceMapOutput) MapIndex(k pulumi.StringInput) NamespaceOutput
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 ¶
func (o NamespaceOutput) Name() pulumi.StringOutput
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