cr

package
v2.39.1 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2021 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 GetNamespacesArgs

type GetNamespacesArgs struct {
	// A regex string to filter results by namespace name.
	NameRegex  *string `pulumi:"nameRegex"`
	OutputFile *string `pulumi:"outputFile"`
}

A collection of arguments for invoking getNamespaces.

type GetNamespacesNamespace

type GetNamespacesNamespace struct {
	// Boolean, when it set to true, repositories are automatically created when pushing new images. If it set to false, you create repository for images before pushing.
	AutoCreate bool `pulumi:"autoCreate"`
	// `PUBLIC` or `PRIVATE`, default repository visibility in this namespace.
	DefaultVisibility string `pulumi:"defaultVisibility"`
	// Name of Container Registry namespace.
	Name string `pulumi:"name"`
}

type GetNamespacesNamespaceArgs

type GetNamespacesNamespaceArgs struct {
	// Boolean, when it set to true, repositories are automatically created when pushing new images. If it set to false, you create repository for images before pushing.
	AutoCreate pulumi.BoolInput `pulumi:"autoCreate"`
	// `PUBLIC` or `PRIVATE`, default repository visibility in this namespace.
	DefaultVisibility pulumi.StringInput `pulumi:"defaultVisibility"`
	// Name of Container Registry namespace.
	Name pulumi.StringInput `pulumi:"name"`
}

func (GetNamespacesNamespaceArgs) ElementType

func (GetNamespacesNamespaceArgs) ElementType() reflect.Type

func (GetNamespacesNamespaceArgs) ToGetNamespacesNamespaceOutput

func (i GetNamespacesNamespaceArgs) ToGetNamespacesNamespaceOutput() GetNamespacesNamespaceOutput

func (GetNamespacesNamespaceArgs) ToGetNamespacesNamespaceOutputWithContext

func (i GetNamespacesNamespaceArgs) ToGetNamespacesNamespaceOutputWithContext(ctx context.Context) GetNamespacesNamespaceOutput

type GetNamespacesNamespaceArray

type GetNamespacesNamespaceArray []GetNamespacesNamespaceInput

func (GetNamespacesNamespaceArray) ElementType

func (GetNamespacesNamespaceArray) ToGetNamespacesNamespaceArrayOutput

func (i GetNamespacesNamespaceArray) ToGetNamespacesNamespaceArrayOutput() GetNamespacesNamespaceArrayOutput

func (GetNamespacesNamespaceArray) ToGetNamespacesNamespaceArrayOutputWithContext

func (i GetNamespacesNamespaceArray) ToGetNamespacesNamespaceArrayOutputWithContext(ctx context.Context) GetNamespacesNamespaceArrayOutput

type GetNamespacesNamespaceArrayInput

type GetNamespacesNamespaceArrayInput interface {
	pulumi.Input

	ToGetNamespacesNamespaceArrayOutput() GetNamespacesNamespaceArrayOutput
	ToGetNamespacesNamespaceArrayOutputWithContext(context.Context) GetNamespacesNamespaceArrayOutput
}

GetNamespacesNamespaceArrayInput is an input type that accepts GetNamespacesNamespaceArray and GetNamespacesNamespaceArrayOutput values. You can construct a concrete instance of `GetNamespacesNamespaceArrayInput` via:

GetNamespacesNamespaceArray{ GetNamespacesNamespaceArgs{...} }

type GetNamespacesNamespaceArrayOutput

type GetNamespacesNamespaceArrayOutput struct{ *pulumi.OutputState }

func (GetNamespacesNamespaceArrayOutput) ElementType

func (GetNamespacesNamespaceArrayOutput) Index

func (GetNamespacesNamespaceArrayOutput) ToGetNamespacesNamespaceArrayOutput

func (o GetNamespacesNamespaceArrayOutput) ToGetNamespacesNamespaceArrayOutput() GetNamespacesNamespaceArrayOutput

func (GetNamespacesNamespaceArrayOutput) ToGetNamespacesNamespaceArrayOutputWithContext

func (o GetNamespacesNamespaceArrayOutput) ToGetNamespacesNamespaceArrayOutputWithContext(ctx context.Context) GetNamespacesNamespaceArrayOutput

type GetNamespacesNamespaceInput

type GetNamespacesNamespaceInput interface {
	pulumi.Input

	ToGetNamespacesNamespaceOutput() GetNamespacesNamespaceOutput
	ToGetNamespacesNamespaceOutputWithContext(context.Context) GetNamespacesNamespaceOutput
}

GetNamespacesNamespaceInput is an input type that accepts GetNamespacesNamespaceArgs and GetNamespacesNamespaceOutput values. You can construct a concrete instance of `GetNamespacesNamespaceInput` via:

GetNamespacesNamespaceArgs{...}

type GetNamespacesNamespaceOutput

type GetNamespacesNamespaceOutput struct{ *pulumi.OutputState }

func (GetNamespacesNamespaceOutput) AutoCreate

Boolean, when it set to true, repositories are automatically created when pushing new images. If it set to false, you create repository for images before pushing.

func (GetNamespacesNamespaceOutput) DefaultVisibility

func (o GetNamespacesNamespaceOutput) DefaultVisibility() pulumi.StringOutput

`PUBLIC` or `PRIVATE`, default repository visibility in this namespace.

func (GetNamespacesNamespaceOutput) ElementType

func (GetNamespacesNamespaceOutput) Name

Name of Container Registry namespace.

func (GetNamespacesNamespaceOutput) ToGetNamespacesNamespaceOutput

func (o GetNamespacesNamespaceOutput) ToGetNamespacesNamespaceOutput() GetNamespacesNamespaceOutput

func (GetNamespacesNamespaceOutput) ToGetNamespacesNamespaceOutputWithContext

func (o GetNamespacesNamespaceOutput) ToGetNamespacesNamespaceOutputWithContext(ctx context.Context) GetNamespacesNamespaceOutput

type GetNamespacesResult

type GetNamespacesResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// A list of matched Container Registry namespaces. Its element is a namespace name.
	Ids       []string `pulumi:"ids"`
	NameRegex *string  `pulumi:"nameRegex"`
	// A list of namespace names.
	Names []string `pulumi:"names"`
	// A list of matched Container Registry namespaces. Each element contains the following attributes:
	Namespaces []GetNamespacesNamespace `pulumi:"namespaces"`
	OutputFile *string                  `pulumi:"outputFile"`
}

A collection of values returned by getNamespaces.

func GetNamespaces

func GetNamespaces(ctx *pulumi.Context, args *GetNamespacesArgs, opts ...pulumi.InvokeOption) (*GetNamespacesResult, error)

This data source provides a list Container Registry namespaces on Alibaba Cloud.

> **NOTE:** Available in v1.35.0+

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/cr"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		opt0 := "my-namespace"
		opt1 := "my-namespace-json"
		myNamespaces, err := cr.GetNamespaces(ctx, &cr.GetNamespacesArgs{
			NameRegex:  &opt0,
			OutputFile: &opt1,
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("output", myNamespaces.Namespaces)
		return nil
	})
}

```

type GetReposArgs

type GetReposArgs struct {
	// Boolean, false by default, only repository attributes are exported. Set to true if domain list and tags belong to this repository are needed. See `tags` in attributes.
	EnableDetails *bool `pulumi:"enableDetails"`
	// A regex string to filter results by repository name.
	NameRegex *string `pulumi:"nameRegex"`
	// Name of container registry namespace where the repositories are located in.
	Namespace  *string `pulumi:"namespace"`
	OutputFile *string `pulumi:"outputFile"`
}

A collection of arguments for invoking getRepos.

type GetReposRepo

type GetReposRepo struct {
	// The repository domain list.
	DomainList GetReposRepoDomainList `pulumi:"domainList"`
	// Name of container registry namespace.
	Name string `pulumi:"name"`
	// Name of container registry namespace where the repositories are located in.
	Namespace string `pulumi:"namespace"`
	// `PUBLIC` or `PRIVATE`, repository's visibility.
	RepoType string `pulumi:"repoType"`
	// The repository general information.
	Summary string `pulumi:"summary"`
	// A list of image tags belong to this repository. Each contains several attributes, see `Block Tag`.
	Tags []GetReposRepoTag `pulumi:"tags"`
}

type GetReposRepoArgs

type GetReposRepoArgs struct {
	// The repository domain list.
	DomainList GetReposRepoDomainListInput `pulumi:"domainList"`
	// Name of container registry namespace.
	Name pulumi.StringInput `pulumi:"name"`
	// Name of container registry namespace where the repositories are located in.
	Namespace pulumi.StringInput `pulumi:"namespace"`
	// `PUBLIC` or `PRIVATE`, repository's visibility.
	RepoType pulumi.StringInput `pulumi:"repoType"`
	// The repository general information.
	Summary pulumi.StringInput `pulumi:"summary"`
	// A list of image tags belong to this repository. Each contains several attributes, see `Block Tag`.
	Tags GetReposRepoTagArrayInput `pulumi:"tags"`
}

func (GetReposRepoArgs) ElementType

func (GetReposRepoArgs) ElementType() reflect.Type

func (GetReposRepoArgs) ToGetReposRepoOutput

func (i GetReposRepoArgs) ToGetReposRepoOutput() GetReposRepoOutput

func (GetReposRepoArgs) ToGetReposRepoOutputWithContext

func (i GetReposRepoArgs) ToGetReposRepoOutputWithContext(ctx context.Context) GetReposRepoOutput

type GetReposRepoArray

type GetReposRepoArray []GetReposRepoInput

func (GetReposRepoArray) ElementType

func (GetReposRepoArray) ElementType() reflect.Type

func (GetReposRepoArray) ToGetReposRepoArrayOutput

func (i GetReposRepoArray) ToGetReposRepoArrayOutput() GetReposRepoArrayOutput

func (GetReposRepoArray) ToGetReposRepoArrayOutputWithContext

func (i GetReposRepoArray) ToGetReposRepoArrayOutputWithContext(ctx context.Context) GetReposRepoArrayOutput

type GetReposRepoArrayInput

type GetReposRepoArrayInput interface {
	pulumi.Input

	ToGetReposRepoArrayOutput() GetReposRepoArrayOutput
	ToGetReposRepoArrayOutputWithContext(context.Context) GetReposRepoArrayOutput
}

GetReposRepoArrayInput is an input type that accepts GetReposRepoArray and GetReposRepoArrayOutput values. You can construct a concrete instance of `GetReposRepoArrayInput` via:

GetReposRepoArray{ GetReposRepoArgs{...} }

type GetReposRepoArrayOutput

type GetReposRepoArrayOutput struct{ *pulumi.OutputState }

func (GetReposRepoArrayOutput) ElementType

func (GetReposRepoArrayOutput) ElementType() reflect.Type

func (GetReposRepoArrayOutput) Index

func (GetReposRepoArrayOutput) ToGetReposRepoArrayOutput

func (o GetReposRepoArrayOutput) ToGetReposRepoArrayOutput() GetReposRepoArrayOutput

func (GetReposRepoArrayOutput) ToGetReposRepoArrayOutputWithContext

func (o GetReposRepoArrayOutput) ToGetReposRepoArrayOutputWithContext(ctx context.Context) GetReposRepoArrayOutput

type GetReposRepoDomainList

type GetReposRepoDomainList struct {
	// Domain of internal endpoint, only in some regions.
	Internal string `pulumi:"internal"`
	// Domain of public endpoint.
	Public string `pulumi:"public"`
	// Domain of vpc endpoint.
	Vpc string `pulumi:"vpc"`
}

type GetReposRepoDomainListArgs

type GetReposRepoDomainListArgs struct {
	// Domain of internal endpoint, only in some regions.
	Internal pulumi.StringInput `pulumi:"internal"`
	// Domain of public endpoint.
	Public pulumi.StringInput `pulumi:"public"`
	// Domain of vpc endpoint.
	Vpc pulumi.StringInput `pulumi:"vpc"`
}

func (GetReposRepoDomainListArgs) ElementType

func (GetReposRepoDomainListArgs) ElementType() reflect.Type

func (GetReposRepoDomainListArgs) ToGetReposRepoDomainListOutput

func (i GetReposRepoDomainListArgs) ToGetReposRepoDomainListOutput() GetReposRepoDomainListOutput

func (GetReposRepoDomainListArgs) ToGetReposRepoDomainListOutputWithContext

func (i GetReposRepoDomainListArgs) ToGetReposRepoDomainListOutputWithContext(ctx context.Context) GetReposRepoDomainListOutput

type GetReposRepoDomainListInput

type GetReposRepoDomainListInput interface {
	pulumi.Input

	ToGetReposRepoDomainListOutput() GetReposRepoDomainListOutput
	ToGetReposRepoDomainListOutputWithContext(context.Context) GetReposRepoDomainListOutput
}

GetReposRepoDomainListInput is an input type that accepts GetReposRepoDomainListArgs and GetReposRepoDomainListOutput values. You can construct a concrete instance of `GetReposRepoDomainListInput` via:

GetReposRepoDomainListArgs{...}

type GetReposRepoDomainListOutput

type GetReposRepoDomainListOutput struct{ *pulumi.OutputState }

func (GetReposRepoDomainListOutput) ElementType

func (GetReposRepoDomainListOutput) Internal

Domain of internal endpoint, only in some regions.

func (GetReposRepoDomainListOutput) Public

Domain of public endpoint.

func (GetReposRepoDomainListOutput) ToGetReposRepoDomainListOutput

func (o GetReposRepoDomainListOutput) ToGetReposRepoDomainListOutput() GetReposRepoDomainListOutput

func (GetReposRepoDomainListOutput) ToGetReposRepoDomainListOutputWithContext

func (o GetReposRepoDomainListOutput) ToGetReposRepoDomainListOutputWithContext(ctx context.Context) GetReposRepoDomainListOutput

func (GetReposRepoDomainListOutput) Vpc

Domain of vpc endpoint.

type GetReposRepoInput

type GetReposRepoInput interface {
	pulumi.Input

	ToGetReposRepoOutput() GetReposRepoOutput
	ToGetReposRepoOutputWithContext(context.Context) GetReposRepoOutput
}

GetReposRepoInput is an input type that accepts GetReposRepoArgs and GetReposRepoOutput values. You can construct a concrete instance of `GetReposRepoInput` via:

GetReposRepoArgs{...}

type GetReposRepoOutput

type GetReposRepoOutput struct{ *pulumi.OutputState }

func (GetReposRepoOutput) DomainList

The repository domain list.

func (GetReposRepoOutput) ElementType

func (GetReposRepoOutput) ElementType() reflect.Type

func (GetReposRepoOutput) Name

Name of container registry namespace.

func (GetReposRepoOutput) Namespace

func (o GetReposRepoOutput) Namespace() pulumi.StringOutput

Name of container registry namespace where the repositories are located in.

func (GetReposRepoOutput) RepoType

func (o GetReposRepoOutput) RepoType() pulumi.StringOutput

`PUBLIC` or `PRIVATE`, repository's visibility.

func (GetReposRepoOutput) Summary

The repository general information.

func (GetReposRepoOutput) Tags

A list of image tags belong to this repository. Each contains several attributes, see `Block Tag`.

func (GetReposRepoOutput) ToGetReposRepoOutput

func (o GetReposRepoOutput) ToGetReposRepoOutput() GetReposRepoOutput

func (GetReposRepoOutput) ToGetReposRepoOutputWithContext

func (o GetReposRepoOutput) ToGetReposRepoOutputWithContext(ctx context.Context) GetReposRepoOutput

type GetReposRepoTag

type GetReposRepoTag struct {
	// Digest of this image.
	Digest string `pulumi:"digest"`
	// Create time of this image, unix time in nanoseconds.
	ImageCreate int `pulumi:"imageCreate"`
	// Id of this image.
	ImageId string `pulumi:"imageId"`
	// Status of this image, in bytes.
	ImageSize int `pulumi:"imageSize"`
	// Last update time of this image, unix time in nanoseconds.
	ImageUpdate int `pulumi:"imageUpdate"`
	// Status of this image.
	Status string `pulumi:"status"`
	// Tag of this image.
	Tag string `pulumi:"tag"`
}

type GetReposRepoTagArgs

type GetReposRepoTagArgs struct {
	// Digest of this image.
	Digest pulumi.StringInput `pulumi:"digest"`
	// Create time of this image, unix time in nanoseconds.
	ImageCreate pulumi.IntInput `pulumi:"imageCreate"`
	// Id of this image.
	ImageId pulumi.StringInput `pulumi:"imageId"`
	// Status of this image, in bytes.
	ImageSize pulumi.IntInput `pulumi:"imageSize"`
	// Last update time of this image, unix time in nanoseconds.
	ImageUpdate pulumi.IntInput `pulumi:"imageUpdate"`
	// Status of this image.
	Status pulumi.StringInput `pulumi:"status"`
	// Tag of this image.
	Tag pulumi.StringInput `pulumi:"tag"`
}

func (GetReposRepoTagArgs) ElementType

func (GetReposRepoTagArgs) ElementType() reflect.Type

func (GetReposRepoTagArgs) ToGetReposRepoTagOutput

func (i GetReposRepoTagArgs) ToGetReposRepoTagOutput() GetReposRepoTagOutput

func (GetReposRepoTagArgs) ToGetReposRepoTagOutputWithContext

func (i GetReposRepoTagArgs) ToGetReposRepoTagOutputWithContext(ctx context.Context) GetReposRepoTagOutput

type GetReposRepoTagArray

type GetReposRepoTagArray []GetReposRepoTagInput

func (GetReposRepoTagArray) ElementType

func (GetReposRepoTagArray) ElementType() reflect.Type

func (GetReposRepoTagArray) ToGetReposRepoTagArrayOutput

func (i GetReposRepoTagArray) ToGetReposRepoTagArrayOutput() GetReposRepoTagArrayOutput

func (GetReposRepoTagArray) ToGetReposRepoTagArrayOutputWithContext

func (i GetReposRepoTagArray) ToGetReposRepoTagArrayOutputWithContext(ctx context.Context) GetReposRepoTagArrayOutput

type GetReposRepoTagArrayInput

type GetReposRepoTagArrayInput interface {
	pulumi.Input

	ToGetReposRepoTagArrayOutput() GetReposRepoTagArrayOutput
	ToGetReposRepoTagArrayOutputWithContext(context.Context) GetReposRepoTagArrayOutput
}

GetReposRepoTagArrayInput is an input type that accepts GetReposRepoTagArray and GetReposRepoTagArrayOutput values. You can construct a concrete instance of `GetReposRepoTagArrayInput` via:

GetReposRepoTagArray{ GetReposRepoTagArgs{...} }

type GetReposRepoTagArrayOutput

type GetReposRepoTagArrayOutput struct{ *pulumi.OutputState }

func (GetReposRepoTagArrayOutput) ElementType

func (GetReposRepoTagArrayOutput) ElementType() reflect.Type

func (GetReposRepoTagArrayOutput) Index

func (GetReposRepoTagArrayOutput) ToGetReposRepoTagArrayOutput

func (o GetReposRepoTagArrayOutput) ToGetReposRepoTagArrayOutput() GetReposRepoTagArrayOutput

func (GetReposRepoTagArrayOutput) ToGetReposRepoTagArrayOutputWithContext

func (o GetReposRepoTagArrayOutput) ToGetReposRepoTagArrayOutputWithContext(ctx context.Context) GetReposRepoTagArrayOutput

type GetReposRepoTagInput

type GetReposRepoTagInput interface {
	pulumi.Input

	ToGetReposRepoTagOutput() GetReposRepoTagOutput
	ToGetReposRepoTagOutputWithContext(context.Context) GetReposRepoTagOutput
}

GetReposRepoTagInput is an input type that accepts GetReposRepoTagArgs and GetReposRepoTagOutput values. You can construct a concrete instance of `GetReposRepoTagInput` via:

GetReposRepoTagArgs{...}

type GetReposRepoTagOutput

type GetReposRepoTagOutput struct{ *pulumi.OutputState }

func (GetReposRepoTagOutput) Digest

Digest of this image.

func (GetReposRepoTagOutput) ElementType

func (GetReposRepoTagOutput) ElementType() reflect.Type

func (GetReposRepoTagOutput) ImageCreate

func (o GetReposRepoTagOutput) ImageCreate() pulumi.IntOutput

Create time of this image, unix time in nanoseconds.

func (GetReposRepoTagOutput) ImageId

Id of this image.

func (GetReposRepoTagOutput) ImageSize

func (o GetReposRepoTagOutput) ImageSize() pulumi.IntOutput

Status of this image, in bytes.

func (GetReposRepoTagOutput) ImageUpdate

func (o GetReposRepoTagOutput) ImageUpdate() pulumi.IntOutput

Last update time of this image, unix time in nanoseconds.

func (GetReposRepoTagOutput) Status

Status of this image.

func (GetReposRepoTagOutput) Tag

Tag of this image.

func (GetReposRepoTagOutput) ToGetReposRepoTagOutput

func (o GetReposRepoTagOutput) ToGetReposRepoTagOutput() GetReposRepoTagOutput

func (GetReposRepoTagOutput) ToGetReposRepoTagOutputWithContext

func (o GetReposRepoTagOutput) ToGetReposRepoTagOutputWithContext(ctx context.Context) GetReposRepoTagOutput

type GetReposResult

type GetReposResult struct {
	EnableDetails *bool `pulumi:"enableDetails"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// A list of matched Container Registry Repositories. Its element is set to `names`.
	Ids       []string `pulumi:"ids"`
	NameRegex *string  `pulumi:"nameRegex"`
	// A list of repository names.
	Names []string `pulumi:"names"`
	// Name of container registry namespace where repo is located.
	Namespace  *string `pulumi:"namespace"`
	OutputFile *string `pulumi:"outputFile"`
	// A list of matched Container Registry Namespaces. Each element contains the following attributes:
	Repos []GetReposRepo `pulumi:"repos"`
}

A collection of values returned by getRepos.

func GetRepos

func GetRepos(ctx *pulumi.Context, args *GetReposArgs, opts ...pulumi.InvokeOption) (*GetReposResult, error)

This data source provides a list Container Registry repositories on Alibaba Cloud.

> **NOTE:** Available in v1.35.0+

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/cr"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		opt0 := "my-repos"
		opt1 := "my-repo-json"
		myRepos, err := cr.GetRepos(ctx, &cr.GetReposArgs{
			NameRegex:  &opt0,
			OutputFile: &opt1,
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("output", myRepos.Repos)
		return nil
	})
}

```

type GetServiceArgs added in v2.36.0

type GetServiceArgs struct {
	// Setting the value to `On` to enable the service. If has been enabled, return the result. Valid values: `On` or `Off`. Default to `Off`.
	Enable *string `pulumi:"enable"`
	// The user password. The password must be 8 to 32 characters in length, and must contain at least two of the following character types: letters, special characters, and digits.
	Password string `pulumi:"password"`
}

A collection of arguments for invoking getService.

type GetServiceResult added in v2.36.0

type GetServiceResult struct {
	Enable *string `pulumi:"enable"`
	// The provider-assigned unique ID for this managed resource.
	Id       string `pulumi:"id"`
	Password string `pulumi:"password"`
	// The current service enable status.
	Status string `pulumi:"status"`
}

A collection of values returned by getService.

func GetService added in v2.36.0

func GetService(ctx *pulumi.Context, args *GetServiceArgs, opts ...pulumi.InvokeOption) (*GetServiceResult, error)

Using this data source can open Container Registry (CR) service automatically. If the service has been opened, it will return opened.

For information about Container Registry (CR) and how to use it, see [What is Container Registry (CR)](https://www.alibabacloud.com/help/en/doc-detail/142759.htm).

> **NOTE:** Available in v1.116.0+

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/cr"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		opt0 := "On"
		_, err := cr.GetService(ctx, &cr.GetServiceArgs{
			Enable:   &opt0,
			Password: "1111aaaa",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type Namespace

type Namespace struct {
	pulumi.CustomResourceState

	// Boolean, when it set to true, repositories are automatically created when pushing new images. If it set to false, you create repository for images before pushing.
	AutoCreate pulumi.BoolOutput `pulumi:"autoCreate"`
	// `PUBLIC` or `PRIVATE`, default repository visibility in this namespace.
	DefaultVisibility pulumi.StringOutput `pulumi:"defaultVisibility"`
	// Name of Container Registry namespace.
	Name pulumi.StringOutput `pulumi:"name"`
}

This resource will help you to manager Container Registry namespaces.

> **NOTE:** Available in v1.34.0+.

> **NOTE:** You need to set your registry password in Container Registry console before use this resource.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/cr"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cr.NewNamespace(ctx, "my_namespace", &cr.NamespaceArgs{
			AutoCreate:        pulumi.Bool(false),
			DefaultVisibility: pulumi.String("PUBLIC"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Container Registry namespace can be imported using the namespace, e.g.

```sh

$ pulumi import alicloud:cr/namespace:Namespace default my-namespace

```

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 added in v2.25.1

func (*Namespace) ElementType() reflect.Type

func (*Namespace) ToNamespaceOutput added in v2.25.1

func (i *Namespace) ToNamespaceOutput() NamespaceOutput

func (*Namespace) ToNamespaceOutputWithContext added in v2.25.1

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

func (*Namespace) ToNamespacePtrOutput added in v2.35.1

func (i *Namespace) ToNamespacePtrOutput() NamespacePtrOutput

func (*Namespace) ToNamespacePtrOutputWithContext added in v2.35.1

func (i *Namespace) ToNamespacePtrOutputWithContext(ctx context.Context) NamespacePtrOutput

type NamespaceArgs

type NamespaceArgs struct {
	// Boolean, when it set to true, repositories are automatically created when pushing new images. If it set to false, you create repository for images before pushing.
	AutoCreate pulumi.BoolInput
	// `PUBLIC` or `PRIVATE`, default repository visibility in this namespace.
	DefaultVisibility pulumi.StringInput
	// Name of Container Registry namespace.
	Name pulumi.StringPtrInput
}

The set of arguments for constructing a Namespace resource.

func (NamespaceArgs) ElementType

func (NamespaceArgs) ElementType() reflect.Type

type NamespaceArray added in v2.35.1

type NamespaceArray []NamespaceInput

func (NamespaceArray) ElementType added in v2.35.1

func (NamespaceArray) ElementType() reflect.Type

func (NamespaceArray) ToNamespaceArrayOutput added in v2.35.1

func (i NamespaceArray) ToNamespaceArrayOutput() NamespaceArrayOutput

func (NamespaceArray) ToNamespaceArrayOutputWithContext added in v2.35.1

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

type NamespaceArrayInput added in v2.35.1

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 added in v2.35.1

type NamespaceArrayOutput struct{ *pulumi.OutputState }

func (NamespaceArrayOutput) ElementType added in v2.35.1

func (NamespaceArrayOutput) ElementType() reflect.Type

func (NamespaceArrayOutput) Index added in v2.35.1

func (NamespaceArrayOutput) ToNamespaceArrayOutput added in v2.35.1

func (o NamespaceArrayOutput) ToNamespaceArrayOutput() NamespaceArrayOutput

func (NamespaceArrayOutput) ToNamespaceArrayOutputWithContext added in v2.35.1

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

type NamespaceInput added in v2.25.1

type NamespaceInput interface {
	pulumi.Input

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

type NamespaceMap added in v2.35.1

type NamespaceMap map[string]NamespaceInput

func (NamespaceMap) ElementType added in v2.35.1

func (NamespaceMap) ElementType() reflect.Type

func (NamespaceMap) ToNamespaceMapOutput added in v2.35.1

func (i NamespaceMap) ToNamespaceMapOutput() NamespaceMapOutput

func (NamespaceMap) ToNamespaceMapOutputWithContext added in v2.35.1

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

type NamespaceMapInput added in v2.35.1

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 added in v2.35.1

type NamespaceMapOutput struct{ *pulumi.OutputState }

func (NamespaceMapOutput) ElementType added in v2.35.1

func (NamespaceMapOutput) ElementType() reflect.Type

func (NamespaceMapOutput) MapIndex added in v2.35.1

func (NamespaceMapOutput) ToNamespaceMapOutput added in v2.35.1

func (o NamespaceMapOutput) ToNamespaceMapOutput() NamespaceMapOutput

func (NamespaceMapOutput) ToNamespaceMapOutputWithContext added in v2.35.1

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

type NamespaceOutput added in v2.25.1

type NamespaceOutput struct {
	*pulumi.OutputState
}

func (NamespaceOutput) ElementType added in v2.25.1

func (NamespaceOutput) ElementType() reflect.Type

func (NamespaceOutput) ToNamespaceOutput added in v2.25.1

func (o NamespaceOutput) ToNamespaceOutput() NamespaceOutput

func (NamespaceOutput) ToNamespaceOutputWithContext added in v2.25.1

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

func (NamespaceOutput) ToNamespacePtrOutput added in v2.35.1

func (o NamespaceOutput) ToNamespacePtrOutput() NamespacePtrOutput

func (NamespaceOutput) ToNamespacePtrOutputWithContext added in v2.35.1

func (o NamespaceOutput) ToNamespacePtrOutputWithContext(ctx context.Context) NamespacePtrOutput

type NamespacePtrInput added in v2.35.1

type NamespacePtrInput interface {
	pulumi.Input

	ToNamespacePtrOutput() NamespacePtrOutput
	ToNamespacePtrOutputWithContext(ctx context.Context) NamespacePtrOutput
}

type NamespacePtrOutput added in v2.35.1

type NamespacePtrOutput struct {
	*pulumi.OutputState
}

func (NamespacePtrOutput) ElementType added in v2.35.1

func (NamespacePtrOutput) ElementType() reflect.Type

func (NamespacePtrOutput) ToNamespacePtrOutput added in v2.35.1

func (o NamespacePtrOutput) ToNamespacePtrOutput() NamespacePtrOutput

func (NamespacePtrOutput) ToNamespacePtrOutputWithContext added in v2.35.1

func (o NamespacePtrOutput) ToNamespacePtrOutputWithContext(ctx context.Context) NamespacePtrOutput

type NamespaceState

type NamespaceState struct {
	// Boolean, when it set to true, repositories are automatically created when pushing new images. If it set to false, you create repository for images before pushing.
	AutoCreate pulumi.BoolPtrInput
	// `PUBLIC` or `PRIVATE`, default repository visibility in this namespace.
	DefaultVisibility pulumi.StringPtrInput
	// Name of Container Registry namespace.
	Name pulumi.StringPtrInput
}

func (NamespaceState) ElementType

func (NamespaceState) ElementType() reflect.Type

type Repo

type Repo struct {
	pulumi.CustomResourceState

	// The repository specific information. MarkDown format is supported, and the length limit is 2000.
	Detail pulumi.StringPtrOutput `pulumi:"detail"`
	// The repository domain list.
	DomainList RepoDomainListOutput `pulumi:"domainList"`
	// Name of container registry repository.
	Name pulumi.StringOutput `pulumi:"name"`
	// Name of container registry namespace where repository is located.
	Namespace pulumi.StringOutput `pulumi:"namespace"`
	// `PUBLIC` or `PRIVATE`, repo's visibility.
	RepoType pulumi.StringOutput `pulumi:"repoType"`
	// The repository general information. It can contain 1 to 80 characters.
	Summary pulumi.StringOutput `pulumi:"summary"`
}

This resource will help you to manager Container Registry repositories.

> **NOTE:** Available in v1.35.0+.

> **NOTE:** You need to set your registry password in Container Registry console before use this resource.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/cr"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cr.NewNamespace(ctx, "my_namespace", &cr.NamespaceArgs{
			AutoCreate:        pulumi.Bool(false),
			DefaultVisibility: pulumi.String("PUBLIC"),
		})
		if err != nil {
			return err
		}
		_, err = cr.NewRepo(ctx, "my_repo", &cr.RepoArgs{
			Namespace: my_namespace.Name,
			Summary:   pulumi.String("this is summary of my new repo"),
			RepoType:  pulumi.String("PUBLIC"),
			Detail:    pulumi.String("this is a public repo"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Container Registry repository can be imported using the `namespace/repository`, e.g.

```sh

$ pulumi import alicloud:cr/repo:Repo default `my-namespace/my-repo`

```

func GetRepo

func GetRepo(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *RepoState, opts ...pulumi.ResourceOption) (*Repo, error)

GetRepo gets an existing Repo 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 NewRepo

func NewRepo(ctx *pulumi.Context,
	name string, args *RepoArgs, opts ...pulumi.ResourceOption) (*Repo, error)

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

func (*Repo) ElementType added in v2.25.1

func (*Repo) ElementType() reflect.Type

func (*Repo) ToRepoOutput added in v2.25.1

func (i *Repo) ToRepoOutput() RepoOutput

func (*Repo) ToRepoOutputWithContext added in v2.25.1

func (i *Repo) ToRepoOutputWithContext(ctx context.Context) RepoOutput

func (*Repo) ToRepoPtrOutput added in v2.35.1

func (i *Repo) ToRepoPtrOutput() RepoPtrOutput

func (*Repo) ToRepoPtrOutputWithContext added in v2.35.1

func (i *Repo) ToRepoPtrOutputWithContext(ctx context.Context) RepoPtrOutput

type RepoArgs

type RepoArgs struct {
	// The repository specific information. MarkDown format is supported, and the length limit is 2000.
	Detail pulumi.StringPtrInput
	// Name of container registry repository.
	Name pulumi.StringPtrInput
	// Name of container registry namespace where repository is located.
	Namespace pulumi.StringInput
	// `PUBLIC` or `PRIVATE`, repo's visibility.
	RepoType pulumi.StringInput
	// The repository general information. It can contain 1 to 80 characters.
	Summary pulumi.StringInput
}

The set of arguments for constructing a Repo resource.

func (RepoArgs) ElementType

func (RepoArgs) ElementType() reflect.Type

type RepoArray added in v2.35.1

type RepoArray []RepoInput

func (RepoArray) ElementType added in v2.35.1

func (RepoArray) ElementType() reflect.Type

func (RepoArray) ToRepoArrayOutput added in v2.35.1

func (i RepoArray) ToRepoArrayOutput() RepoArrayOutput

func (RepoArray) ToRepoArrayOutputWithContext added in v2.35.1

func (i RepoArray) ToRepoArrayOutputWithContext(ctx context.Context) RepoArrayOutput

type RepoArrayInput added in v2.35.1

type RepoArrayInput interface {
	pulumi.Input

	ToRepoArrayOutput() RepoArrayOutput
	ToRepoArrayOutputWithContext(context.Context) RepoArrayOutput
}

RepoArrayInput is an input type that accepts RepoArray and RepoArrayOutput values. You can construct a concrete instance of `RepoArrayInput` via:

RepoArray{ RepoArgs{...} }

type RepoArrayOutput added in v2.35.1

type RepoArrayOutput struct{ *pulumi.OutputState }

func (RepoArrayOutput) ElementType added in v2.35.1

func (RepoArrayOutput) ElementType() reflect.Type

func (RepoArrayOutput) Index added in v2.35.1

func (RepoArrayOutput) ToRepoArrayOutput added in v2.35.1

func (o RepoArrayOutput) ToRepoArrayOutput() RepoArrayOutput

func (RepoArrayOutput) ToRepoArrayOutputWithContext added in v2.35.1

func (o RepoArrayOutput) ToRepoArrayOutputWithContext(ctx context.Context) RepoArrayOutput

type RepoDomainList

type RepoDomainList struct {
	// Domain of internal endpoint, only in some regions.
	Internal *string `pulumi:"internal"`
	// Domain of public endpoint.
	Public *string `pulumi:"public"`
	// Domain of vpc endpoint.
	Vpc *string `pulumi:"vpc"`
}

type RepoDomainListArgs

type RepoDomainListArgs struct {
	// Domain of internal endpoint, only in some regions.
	Internal pulumi.StringPtrInput `pulumi:"internal"`
	// Domain of public endpoint.
	Public pulumi.StringPtrInput `pulumi:"public"`
	// Domain of vpc endpoint.
	Vpc pulumi.StringPtrInput `pulumi:"vpc"`
}

func (RepoDomainListArgs) ElementType

func (RepoDomainListArgs) ElementType() reflect.Type

func (RepoDomainListArgs) ToRepoDomainListOutput

func (i RepoDomainListArgs) ToRepoDomainListOutput() RepoDomainListOutput

func (RepoDomainListArgs) ToRepoDomainListOutputWithContext

func (i RepoDomainListArgs) ToRepoDomainListOutputWithContext(ctx context.Context) RepoDomainListOutput

func (RepoDomainListArgs) ToRepoDomainListPtrOutput

func (i RepoDomainListArgs) ToRepoDomainListPtrOutput() RepoDomainListPtrOutput

func (RepoDomainListArgs) ToRepoDomainListPtrOutputWithContext

func (i RepoDomainListArgs) ToRepoDomainListPtrOutputWithContext(ctx context.Context) RepoDomainListPtrOutput

type RepoDomainListInput

type RepoDomainListInput interface {
	pulumi.Input

	ToRepoDomainListOutput() RepoDomainListOutput
	ToRepoDomainListOutputWithContext(context.Context) RepoDomainListOutput
}

RepoDomainListInput is an input type that accepts RepoDomainListArgs and RepoDomainListOutput values. You can construct a concrete instance of `RepoDomainListInput` via:

RepoDomainListArgs{...}

type RepoDomainListOutput

type RepoDomainListOutput struct{ *pulumi.OutputState }

func (RepoDomainListOutput) ElementType

func (RepoDomainListOutput) ElementType() reflect.Type

func (RepoDomainListOutput) Internal

Domain of internal endpoint, only in some regions.

func (RepoDomainListOutput) Public

Domain of public endpoint.

func (RepoDomainListOutput) ToRepoDomainListOutput

func (o RepoDomainListOutput) ToRepoDomainListOutput() RepoDomainListOutput

func (RepoDomainListOutput) ToRepoDomainListOutputWithContext

func (o RepoDomainListOutput) ToRepoDomainListOutputWithContext(ctx context.Context) RepoDomainListOutput

func (RepoDomainListOutput) ToRepoDomainListPtrOutput

func (o RepoDomainListOutput) ToRepoDomainListPtrOutput() RepoDomainListPtrOutput

func (RepoDomainListOutput) ToRepoDomainListPtrOutputWithContext

func (o RepoDomainListOutput) ToRepoDomainListPtrOutputWithContext(ctx context.Context) RepoDomainListPtrOutput

func (RepoDomainListOutput) Vpc

Domain of vpc endpoint.

type RepoDomainListPtrInput

type RepoDomainListPtrInput interface {
	pulumi.Input

	ToRepoDomainListPtrOutput() RepoDomainListPtrOutput
	ToRepoDomainListPtrOutputWithContext(context.Context) RepoDomainListPtrOutput
}

RepoDomainListPtrInput is an input type that accepts RepoDomainListArgs, RepoDomainListPtr and RepoDomainListPtrOutput values. You can construct a concrete instance of `RepoDomainListPtrInput` via:

        RepoDomainListArgs{...}

or:

        nil

type RepoDomainListPtrOutput

type RepoDomainListPtrOutput struct{ *pulumi.OutputState }

func (RepoDomainListPtrOutput) Elem

func (RepoDomainListPtrOutput) ElementType

func (RepoDomainListPtrOutput) ElementType() reflect.Type

func (RepoDomainListPtrOutput) Internal

Domain of internal endpoint, only in some regions.

func (RepoDomainListPtrOutput) Public

Domain of public endpoint.

func (RepoDomainListPtrOutput) ToRepoDomainListPtrOutput

func (o RepoDomainListPtrOutput) ToRepoDomainListPtrOutput() RepoDomainListPtrOutput

func (RepoDomainListPtrOutput) ToRepoDomainListPtrOutputWithContext

func (o RepoDomainListPtrOutput) ToRepoDomainListPtrOutputWithContext(ctx context.Context) RepoDomainListPtrOutput

func (RepoDomainListPtrOutput) Vpc

Domain of vpc endpoint.

type RepoInput added in v2.25.1

type RepoInput interface {
	pulumi.Input

	ToRepoOutput() RepoOutput
	ToRepoOutputWithContext(ctx context.Context) RepoOutput
}

type RepoMap added in v2.35.1

type RepoMap map[string]RepoInput

func (RepoMap) ElementType added in v2.35.1

func (RepoMap) ElementType() reflect.Type

func (RepoMap) ToRepoMapOutput added in v2.35.1

func (i RepoMap) ToRepoMapOutput() RepoMapOutput

func (RepoMap) ToRepoMapOutputWithContext added in v2.35.1

func (i RepoMap) ToRepoMapOutputWithContext(ctx context.Context) RepoMapOutput

type RepoMapInput added in v2.35.1

type RepoMapInput interface {
	pulumi.Input

	ToRepoMapOutput() RepoMapOutput
	ToRepoMapOutputWithContext(context.Context) RepoMapOutput
}

RepoMapInput is an input type that accepts RepoMap and RepoMapOutput values. You can construct a concrete instance of `RepoMapInput` via:

RepoMap{ "key": RepoArgs{...} }

type RepoMapOutput added in v2.35.1

type RepoMapOutput struct{ *pulumi.OutputState }

func (RepoMapOutput) ElementType added in v2.35.1

func (RepoMapOutput) ElementType() reflect.Type

func (RepoMapOutput) MapIndex added in v2.35.1

func (RepoMapOutput) ToRepoMapOutput added in v2.35.1

func (o RepoMapOutput) ToRepoMapOutput() RepoMapOutput

func (RepoMapOutput) ToRepoMapOutputWithContext added in v2.35.1

func (o RepoMapOutput) ToRepoMapOutputWithContext(ctx context.Context) RepoMapOutput

type RepoOutput added in v2.25.1

type RepoOutput struct {
	*pulumi.OutputState
}

func (RepoOutput) ElementType added in v2.25.1

func (RepoOutput) ElementType() reflect.Type

func (RepoOutput) ToRepoOutput added in v2.25.1

func (o RepoOutput) ToRepoOutput() RepoOutput

func (RepoOutput) ToRepoOutputWithContext added in v2.25.1

func (o RepoOutput) ToRepoOutputWithContext(ctx context.Context) RepoOutput

func (RepoOutput) ToRepoPtrOutput added in v2.35.1

func (o RepoOutput) ToRepoPtrOutput() RepoPtrOutput

func (RepoOutput) ToRepoPtrOutputWithContext added in v2.35.1

func (o RepoOutput) ToRepoPtrOutputWithContext(ctx context.Context) RepoPtrOutput

type RepoPtrInput added in v2.35.1

type RepoPtrInput interface {
	pulumi.Input

	ToRepoPtrOutput() RepoPtrOutput
	ToRepoPtrOutputWithContext(ctx context.Context) RepoPtrOutput
}

type RepoPtrOutput added in v2.35.1

type RepoPtrOutput struct {
	*pulumi.OutputState
}

func (RepoPtrOutput) ElementType added in v2.35.1

func (RepoPtrOutput) ElementType() reflect.Type

func (RepoPtrOutput) ToRepoPtrOutput added in v2.35.1

func (o RepoPtrOutput) ToRepoPtrOutput() RepoPtrOutput

func (RepoPtrOutput) ToRepoPtrOutputWithContext added in v2.35.1

func (o RepoPtrOutput) ToRepoPtrOutputWithContext(ctx context.Context) RepoPtrOutput

type RepoState

type RepoState struct {
	// The repository specific information. MarkDown format is supported, and the length limit is 2000.
	Detail pulumi.StringPtrInput
	// The repository domain list.
	DomainList RepoDomainListPtrInput
	// Name of container registry repository.
	Name pulumi.StringPtrInput
	// Name of container registry namespace where repository is located.
	Namespace pulumi.StringPtrInput
	// `PUBLIC` or `PRIVATE`, repo's visibility.
	RepoType pulumi.StringPtrInput
	// The repository general information. It can contain 1 to 80 characters.
	Summary pulumi.StringPtrInput
}

func (RepoState) ElementType

func (RepoState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

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