containerregistry

package
v6.6.4 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: MPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRegistryDataCreate

func GetRegistryDataCreate(d *schema.ResourceData) (*cr.PostRegistryInput, error)

GetRegistryDataCreate get registry data for create

func GetRegistryDataUpdate

func GetRegistryDataUpdate(d *schema.ResourceData) (*cr.PatchRegistryInput, error)

GetRegistryDataUpdate get registry data for update

func GetRegistryFeatures added in v6.4.13

func GetRegistryFeatures(d *schema.ResourceData) (*cr.RegistryFeatures, diag.Diagnostics)

GetRegistryFeatures returns the container registry features retrieved from the configuration It will also return a list of warnings related to attributes which should be set explicitly

func GetScopes

func GetScopes(d *schema.ResourceData) *[]cr.Scope

func GetTokenDataCreate

func GetTokenDataCreate(d *schema.ResourceData) (*cr.PostTokenInput, error)

func GetTokenDataUpdate

func GetTokenDataUpdate(d *schema.ResourceData) (*cr.PatchTokenInput, error)

func GetWeeklySchedule

func GetWeeklySchedule(d *schema.ResourceData, property string) *cr.WeeklySchedule

func SetCRLocationsData

func SetCRLocationsData(d *schema.ResourceData, locations cr.LocationsResponse) diag.Diagnostics

func SetCredentials

func SetCredentials(credentials cr.Credentials) map[string]interface{}

func SetRegistryData

func SetRegistryData(d *schema.ResourceData, registry cr.RegistryResponse) error

func SetScopes

func SetScopes(scopes []cr.Scope) []interface{}

func SetStorageUsage

func SetStorageUsage(storageUsage cr.StorageUsage) map[string]interface{}

func SetTokenData

func SetTokenData(d *schema.ResourceData, tokenProps cr.TokenProperties) error

func SetWeeklySchedule

func SetWeeklySchedule(weeklySchedule cr.WeeklySchedule) map[string]interface{}

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(username, password, token, url, version, terraformVersion string, insecure bool) *Client

func (*Client) CreateRegistry

func (c *Client) CreateRegistry(ctx context.Context, registryInput cr.PostRegistryInput) (cr.PostRegistryOutput, *cr.APIResponse, error)

func (*Client) CreateTokens

func (c *Client) CreateTokens(ctx context.Context, registryId string, tokenInput cr.PostTokenInput) (cr.PostTokenOutput, *cr.APIResponse, error)

func (*Client) DeleteRegistry

func (c *Client) DeleteRegistry(ctx context.Context, registryId string) (*cr.APIResponse, error)

func (*Client) DeleteRepositories

func (c *Client) DeleteRepositories(ctx context.Context, registryId, repositoryId string) (*cr.APIResponse, error)

func (*Client) DeleteToken

func (c *Client) DeleteToken(ctx context.Context, registryId, tokenId string) (*cr.APIResponse, error)

func (*Client) GetAllLocations

func (c *Client) GetAllLocations(ctx context.Context) (cr.LocationsResponse, *cr.APIResponse, error)

func (*Client) GetRegistry

func (c *Client) GetRegistry(ctx context.Context, registryId string) (cr.RegistryResponse, *cr.APIResponse, error)

func (*Client) GetToken

func (c *Client) GetToken(ctx context.Context, registryId, tokenId string) (cr.TokenResponse, *cr.APIResponse, error)

func (*Client) IsRegistryDeleted added in v6.4.19

func (c *Client) IsRegistryDeleted(ctx context.Context, d *schema.ResourceData) (bool, error)

IsRegistryDeleted checks whether the container registry is deleted or not

func (*Client) IsRegistryReady added in v6.4.19

func (c *Client) IsRegistryReady(ctx context.Context, d *schema.ResourceData) (bool, error)

IsRegistryReady checks whether the container registry is in a ready state or not

func (*Client) ListRegistries

func (c *Client) ListRegistries(ctx context.Context) (cr.RegistriesResponse, *cr.APIResponse, error)

func (*Client) ListTokens

func (c *Client) ListTokens(ctx context.Context, registryId string) (cr.TokensResponse, *cr.APIResponse, error)

func (*Client) PatchRegistry

func (c *Client) PatchRegistry(ctx context.Context, registryId string, registryInput cr.PatchRegistryInput) (cr.RegistryResponse, *cr.APIResponse, error)

func (*Client) PatchToken

func (c *Client) PatchToken(ctx context.Context, registryId, tokenId string, tokenInput cr.PatchTokenInput) (cr.TokenResponse, *cr.APIResponse, error)

func (*Client) PutRegistry

func (c *Client) PutRegistry(ctx context.Context, registryId string, registryInput cr.PutRegistryInput) (cr.PutRegistryOutput, *cr.APIResponse, error)

func (*Client) PutToken

func (c *Client) PutToken(ctx context.Context, registryId, tokenId string, tokenInput cr.PutTokenInput) (cr.PutTokenOutput, *cr.APIResponse, error)

Jump to

Keyboard shortcuts

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