Documentation ¶
Index ¶
- func GetRegistryDataCreate(d *schema.ResourceData) (*cr.PostRegistryInput, error)
- func GetRegistryDataUpdate(d *schema.ResourceData) (*cr.PatchRegistryInput, error)
- func GetRegistryFeatures(d *schema.ResourceData) (*cr.RegistryFeatures, diag.Diagnostics)
- func GetScopes(d *schema.ResourceData) *[]cr.Scope
- func GetTokenDataCreate(d *schema.ResourceData) (*cr.PostTokenInput, error)
- func GetTokenDataUpdate(d *schema.ResourceData) (*cr.PatchTokenInput, error)
- func GetWeeklySchedule(d *schema.ResourceData, property string) *cr.WeeklySchedule
- func SetCRLocationsData(d *schema.ResourceData, locations cr.LocationsResponse) diag.Diagnostics
- func SetCredentials(credentials cr.Credentials) map[string]interface{}
- func SetRegistryData(d *schema.ResourceData, registry cr.RegistryResponse) error
- func SetScopes(scopes []cr.Scope) []interface{}
- func SetStorageUsage(storageUsage cr.StorageUsage) map[string]interface{}
- func SetTokenData(d *schema.ResourceData, tokenProps cr.TokenProperties) error
- func SetWeeklySchedule(weeklySchedule cr.WeeklySchedule) map[string]interface{}
- type Client
- func (c *Client) CreateRegistry(ctx context.Context, registryInput cr.PostRegistryInput) (cr.PostRegistryOutput, *cr.APIResponse, error)
- func (c *Client) CreateTokens(ctx context.Context, registryId string, tokenInput cr.PostTokenInput) (cr.PostTokenOutput, *cr.APIResponse, error)
- func (c *Client) DeleteRegistry(ctx context.Context, registryId string) (*cr.APIResponse, error)
- func (c *Client) DeleteRepositories(ctx context.Context, registryId, repositoryId string) (*cr.APIResponse, error)
- func (c *Client) DeleteToken(ctx context.Context, registryId, tokenId string) (*cr.APIResponse, error)
- func (c *Client) GetAllLocations(ctx context.Context) (cr.LocationsResponse, *cr.APIResponse, error)
- func (c *Client) GetRegistry(ctx context.Context, registryId string) (cr.RegistryResponse, *cr.APIResponse, error)
- func (c *Client) GetToken(ctx context.Context, registryId, tokenId string) (cr.TokenResponse, *cr.APIResponse, error)
- func (c *Client) IsRegistryDeleted(ctx context.Context, d *schema.ResourceData) (bool, error)
- func (c *Client) IsRegistryReady(ctx context.Context, d *schema.ResourceData) (bool, error)
- func (c *Client) ListRegistries(ctx context.Context) (cr.RegistriesResponse, *cr.APIResponse, error)
- func (c *Client) ListTokens(ctx context.Context, registryId string) (cr.TokensResponse, *cr.APIResponse, error)
- func (c *Client) PatchRegistry(ctx context.Context, registryId string, registryInput cr.PatchRegistryInput) (cr.RegistryResponse, *cr.APIResponse, error)
- func (c *Client) PatchToken(ctx context.Context, registryId, tokenId string, tokenInput cr.PatchTokenInput) (cr.TokenResponse, *cr.APIResponse, error)
- func (c *Client) PutRegistry(ctx context.Context, registryId string, registryInput cr.PutRegistryInput) (cr.PutRegistryOutput, *cr.APIResponse, error)
- func (c *Client) PutToken(ctx context.Context, registryId, tokenId string, tokenInput cr.PutTokenInput) (cr.PutTokenOutput, *cr.APIResponse, error)
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 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 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 (*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 (*Client) DeleteRepositories ¶
func (*Client) DeleteToken ¶
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
IsRegistryDeleted checks whether the container registry is deleted or not
func (*Client) IsRegistryReady ¶ added in v6.4.19
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)
Click to show internal directories.
Click to hide internal directories.