ArtifactsClient a client for Artifacts
type ArtifactsClient struct { common.BaseClient // contains filtered or unexported fields }
func NewArtifactsClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client ArtifactsClient, err error)
NewArtifactsClientWithConfigurationProvider Creates a new default Artifacts client with the given configuration provider. the configuration provider will be used for the default signer as well as reading the region
func NewArtifactsClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client ArtifactsClient, err error)
NewArtifactsClientWithOboToken Creates a new default Artifacts client with the given configuration provider. The obotoken will be added to default headers and signed; the configuration provider will be used for the signer
as well as reading the region
func (client ArtifactsClient) ChangeContainerRepositoryCompartment(ctx context.Context, request ChangeContainerRepositoryCompartmentRequest) (response ChangeContainerRepositoryCompartmentResponse, err error)
ChangeContainerRepositoryCompartment Moves a container repository into a different compartment within the same tenancy. For information about moving resources between compartments, see Moving Resources to a Different Compartment (https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes).
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/artifacts/ChangeContainerRepositoryCompartment.go.html to see an example of how to use ChangeContainerRepositoryCompartment API.
func (client *ArtifactsClient) ConfigurationProvider() *common.ConfigurationProvider
ConfigurationProvider the ConfigurationProvider used in this client, or null if none set
func (client ArtifactsClient) CreateContainerRepository(ctx context.Context, request CreateContainerRepositoryRequest) (response CreateContainerRepositoryResponse, err error)
CreateContainerRepository Create a new empty container repository. Avoid entering confidential information.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/artifacts/CreateContainerRepository.go.html to see an example of how to use CreateContainerRepository API.
func (client ArtifactsClient) DeleteContainerImage(ctx context.Context, request DeleteContainerImageRequest) (response DeleteContainerImageResponse, err error)
DeleteContainerImage Delete a container image.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/artifacts/DeleteContainerImage.go.html to see an example of how to use DeleteContainerImage API.
func (client ArtifactsClient) DeleteContainerRepository(ctx context.Context, request DeleteContainerRepositoryRequest) (response DeleteContainerRepositoryResponse, err error)
DeleteContainerRepository Delete container repository.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/artifacts/DeleteContainerRepository.go.html to see an example of how to use DeleteContainerRepository API.
func (client ArtifactsClient) GetContainerConfiguration(ctx context.Context, request GetContainerConfigurationRequest) (response GetContainerConfigurationResponse, err error)
GetContainerConfiguration Get container configuration.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/artifacts/GetContainerConfiguration.go.html to see an example of how to use GetContainerConfiguration API.
func (client ArtifactsClient) GetContainerImage(ctx context.Context, request GetContainerImageRequest) (response GetContainerImageResponse, err error)
GetContainerImage Get container image metadata.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/artifacts/GetContainerImage.go.html to see an example of how to use GetContainerImage API.
func (client ArtifactsClient) GetContainerRepository(ctx context.Context, request GetContainerRepositoryRequest) (response GetContainerRepositoryResponse, err error)
GetContainerRepository Get container repository.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/artifacts/GetContainerRepository.go.html to see an example of how to use GetContainerRepository API.
func (client ArtifactsClient) ListContainerImages(ctx context.Context, request ListContainerImagesRequest) (response ListContainerImagesResponse, err error)
ListContainerImages List container images in a compartment.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/artifacts/ListContainerImages.go.html to see an example of how to use ListContainerImages API.
func (client ArtifactsClient) ListContainerRepositories(ctx context.Context, request ListContainerRepositoriesRequest) (response ListContainerRepositoriesResponse, err error)
ListContainerRepositories List container repositories in a compartment.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/artifacts/ListContainerRepositories.go.html to see an example of how to use ListContainerRepositories API.
func (client ArtifactsClient) RemoveContainerVersion(ctx context.Context, request RemoveContainerVersionRequest) (response RemoveContainerVersionResponse, err error)
RemoveContainerVersion Remove version from container image.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/artifacts/RemoveContainerVersion.go.html to see an example of how to use RemoveContainerVersion API.
func (client ArtifactsClient) RestoreContainerImage(ctx context.Context, request RestoreContainerImageRequest) (response RestoreContainerImageResponse, err error)
RestoreContainerImage Restore a container image.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/artifacts/RestoreContainerImage.go.html to see an example of how to use RestoreContainerImage API.
func (client *ArtifactsClient) SetRegion(region string)
SetRegion overrides the region of this client.
func (client ArtifactsClient) UpdateContainerConfiguration(ctx context.Context, request UpdateContainerConfigurationRequest) (response UpdateContainerConfigurationResponse, err error)
UpdateContainerConfiguration Update container configuration.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/artifacts/UpdateContainerConfiguration.go.html to see an example of how to use UpdateContainerConfiguration API.
func (client ArtifactsClient) UpdateContainerRepository(ctx context.Context, request UpdateContainerRepositoryRequest) (response UpdateContainerRepositoryResponse, err error)
UpdateContainerRepository Modify the properties of a container repository. Avoid entering confidential information.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/artifacts/UpdateContainerRepository.go.html to see an example of how to use UpdateContainerRepository API.
ChangeContainerRepositoryCompartmentDetails Change container repository compartment details.
type ChangeContainerRepositoryCompartmentDetails struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment into which to move the resource. CompartmentId *string `mandatory:"true" json:"compartmentId"` }
func (m ChangeContainerRepositoryCompartmentDetails) String() string
ChangeContainerRepositoryCompartmentRequest wrapper for the ChangeContainerRepositoryCompartment operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/artifacts/ChangeContainerRepositoryCompartment.go.html to see an example of how to use ChangeContainerRepositoryCompartmentRequest.
type ChangeContainerRepositoryCompartmentRequest struct { // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the container repository. // Example: `ocid1.containerrepo.oc1..exampleuniqueID` RepositoryId *string `mandatory:"true" contributesTo:"path" name:"repositoryId"` // Change container repository compartment details. ChangeContainerRepositoryCompartmentDetails `contributesTo:"body"` // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` // parameter to the value of the etag from a previous GET or POST response for that resource. The resource // will be updated or deleted only if the etag you provide matches the resource's current etag value. IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` // Unique identifier for the request. // If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // A token that uniquely identifies a request so it can be retried in case of a timeout or // server error without risk of executing that same action again. Retry tokens expire after 24 // hours, but can be invalidated before then due to conflicting operations (for example, if a resource // has been deleted and purged from the system, then a retry of the original creation request // may be rejected). OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request ChangeContainerRepositoryCompartmentRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ChangeContainerRepositoryCompartmentRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ChangeContainerRepositoryCompartmentRequest) String() string
ChangeContainerRepositoryCompartmentResponse wrapper for the ChangeContainerRepositoryCompartment operation
type ChangeContainerRepositoryCompartmentResponse struct { // The underlying http response RawResponse *http.Response // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response ChangeContainerRepositoryCompartmentResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ChangeContainerRepositoryCompartmentResponse) String() string
ContainerConfiguration Container configuration.
type ContainerConfiguration struct { // Whether to create a new container repository when a container is pushed to a new repository path. // Repositories created in this way belong to the root compartment. IsRepositoryCreatedOnFirstPush *bool `mandatory:"true" json:"isRepositoryCreatedOnFirstPush"` // The tenancy namespace used in the container repository path. Namespace *string `mandatory:"true" json:"namespace"` }
func (m ContainerConfiguration) String() string
ContainerImage Container image metadata.
type ContainerImage struct { // The compartment OCID to which the container image belongs. Inferred from the container repository. CompartmentId *string `mandatory:"true" json:"compartmentId"` // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the user or principal that created the resource. CreatedBy *string `mandatory:"true" json:"createdBy"` // The container image digest. Digest *string `mandatory:"true" json:"digest"` // The repository name and the most recent version associated with the image. // If there are no versions associated with the image, then last known version and digest are used instead. // If the last known version is unavailable, then 'unknown' is used instead of the version. // Example: `ubuntu:latest` or `ubuntu:latest@sha256:45b23dee08af5e43a7fea6c4cf9c25ccf269ee113168c19722f87876677c5cb2` DisplayName *string `mandatory:"true" json:"displayName"` // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the container image. // Example: `ocid1.containerimage.oc1..exampleuniqueID` Id *string `mandatory:"true" json:"id"` // Layers of which the image is composed, ordered by the layer digest. Layers []ContainerImageLayer `mandatory:"true" json:"layers"` // The total size of the container image layers in bytes. LayersSizeInBytes *int64 `mandatory:"true" json:"layersSizeInBytes"` // The current state of the container image. LifecycleState ContainerImageLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` // The size of the container image manifest in bytes. ManifestSizeInBytes *int `mandatory:"true" json:"manifestSizeInBytes"` // Total number of pulls. PullCount *int64 `mandatory:"true" json:"pullCount"` // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the container repository. RepositoryId *string `mandatory:"true" json:"repositoryId"` // The container repository name. RepositoryName *string `mandatory:"true" json:"repositoryName"` // An RFC 3339 timestamp indicating when the image was created. TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` // The versions associated with this image. Versions []ContainerVersion `mandatory:"true" json:"versions"` // An RFC 3339 timestamp indicating when the image was last pulled. TimeLastPulled *common.SDKTime `mandatory:"false" json:"timeLastPulled"` // The most recent version associated with this image. Version *string `mandatory:"false" json:"version"` }
func (m ContainerImage) String() string
ContainerImageCollection List container image results.
type ContainerImageCollection struct { // Page of matching container images. Items []ContainerImageSummary `mandatory:"true" json:"items"` // Estimated number of remaining results. RemainingItemsCount *int `mandatory:"true" json:"remainingItemsCount"` }
func (m ContainerImageCollection) String() string
ContainerImageLayer The container image layer metadata.
type ContainerImageLayer struct { // The sha256 digest of the image layer. Digest *string `mandatory:"true" json:"digest"` // The size of the layer in bytes. SizeInBytes *int64 `mandatory:"true" json:"sizeInBytes"` // An RFC 3339 timestamp indicating when the layer was created. TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` }
func (m ContainerImageLayer) String() string
ContainerImageLifecycleStateEnum Enum with underlying type: string
type ContainerImageLifecycleStateEnum string
Set of constants representing the allowable values for ContainerImageLifecycleStateEnum
const ( ContainerImageLifecycleStateAvailable ContainerImageLifecycleStateEnum = "AVAILABLE" ContainerImageLifecycleStateDeleted ContainerImageLifecycleStateEnum = "DELETED" ContainerImageLifecycleStateDeleting ContainerImageLifecycleStateEnum = "DELETING" )
func GetContainerImageLifecycleStateEnumValues() []ContainerImageLifecycleStateEnum
GetContainerImageLifecycleStateEnumValues Enumerates the set of values for ContainerImageLifecycleStateEnum
ContainerImageSummary Container image summary.
type ContainerImageSummary struct { // The compartment OCID to which the container image belongs. Inferred from the container repository. CompartmentId *string `mandatory:"true" json:"compartmentId"` // The container image digest. Digest *string `mandatory:"true" json:"digest"` // The repository name and the most recent version associated with the image. // If there are no versions associated with the image, then last known version and digest are used instead. // If the last known version is unavailable, then 'unknown' is used instead of the version. // Example: `ubuntu:latest` or `ubuntu:latest@sha256:45b23dee08af5e43a7fea6c4cf9c25ccf269ee113168c19722f87876677c5cb2` DisplayName *string `mandatory:"true" json:"displayName"` // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the container image. // Example: `ocid1.containerimage.oc1..exampleuniqueID` Id *string `mandatory:"true" json:"id"` // The current state of the container image. LifecycleState ContainerImageLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` // The OCID of the container repository. RepositoryId *string `mandatory:"true" json:"repositoryId"` // The container repository name. RepositoryName *string `mandatory:"true" json:"repositoryName"` // An RFC 3339 timestamp indicating when the image was created. TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` // The most recent version associated with this image. Version *string `mandatory:"false" json:"version"` }
func (m ContainerImageSummary) String() string
ContainerRepository Container repository metadata.
type ContainerRepository struct { // The OCID of the compartment in which the container repository exists. CompartmentId *string `mandatory:"true" json:"compartmentId"` // The id of the user or principal that created the resource. CreatedBy *string `mandatory:"true" json:"createdBy"` // The container repository name. DisplayName *string `mandatory:"true" json:"displayName"` // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the container repository. // Example: `ocid1.containerrepo.oc1..exampleuniqueID` Id *string `mandatory:"true" json:"id"` // Total number of images. ImageCount *int `mandatory:"true" json:"imageCount"` // Whether the repository is immutable. Images cannot be overwritten in an immutable repository. IsImmutable *bool `mandatory:"true" json:"isImmutable"` // Whether the repository is public. A public repository allows unauthenticated access. IsPublic *bool `mandatory:"true" json:"isPublic"` // Total number of layers. LayerCount *int `mandatory:"true" json:"layerCount"` // Total storage in bytes consumed by layers. LayersSizeInBytes *int64 `mandatory:"true" json:"layersSizeInBytes"` // The current state of the container repository. LifecycleState ContainerRepositoryLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` // An RFC 3339 timestamp indicating when the repository was created. TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` Readme *ContainerRepositoryReadme `mandatory:"false" json:"readme"` // An RFC 3339 timestamp indicating when an image was last pushed to the repository. TimeLastPushed *common.SDKTime `mandatory:"false" json:"timeLastPushed"` }
func (m ContainerRepository) String() string
ContainerRepositoryCollection List of container repository results.
type ContainerRepositoryCollection struct { // Total number of layers. LayerCount *int `mandatory:"true" json:"layerCount"` // Total storage in bytes consumed by layers. LayersSizeInBytes *int64 `mandatory:"true" json:"layersSizeInBytes"` // Total number of images. ImageCount *int `mandatory:"true" json:"imageCount"` // Collection of container repositories. Items []ContainerRepositorySummary `mandatory:"true" json:"items"` // Estimated number of remaining results. RemainingItemsCount *int `mandatory:"true" json:"remainingItemsCount"` // Total number of repositories. RepositoryCount *int `mandatory:"true" json:"repositoryCount"` }
func (m ContainerRepositoryCollection) String() string
ContainerRepositoryLifecycleStateEnum Enum with underlying type: string
type ContainerRepositoryLifecycleStateEnum string
Set of constants representing the allowable values for ContainerRepositoryLifecycleStateEnum
const ( ContainerRepositoryLifecycleStateAvailable ContainerRepositoryLifecycleStateEnum = "AVAILABLE" ContainerRepositoryLifecycleStateDeleting ContainerRepositoryLifecycleStateEnum = "DELETING" ContainerRepositoryLifecycleStateDeleted ContainerRepositoryLifecycleStateEnum = "DELETED" )
func GetContainerRepositoryLifecycleStateEnumValues() []ContainerRepositoryLifecycleStateEnum
GetContainerRepositoryLifecycleStateEnumValues Enumerates the set of values for ContainerRepositoryLifecycleStateEnum
ContainerRepositoryReadme Container repository readme.
type ContainerRepositoryReadme struct { // Readme content. Avoid entering confidential information. Content *string `mandatory:"true" json:"content"` // Readme format. Supported formats are text/plain and text/markdown. Format ContainerRepositoryReadmeFormatEnum `mandatory:"true" json:"format"` }
func (m ContainerRepositoryReadme) String() string
ContainerRepositoryReadmeFormatEnum Enum with underlying type: string
type ContainerRepositoryReadmeFormatEnum string
Set of constants representing the allowable values for ContainerRepositoryReadmeFormatEnum
const ( ContainerRepositoryReadmeFormatMarkdown ContainerRepositoryReadmeFormatEnum = "TEXT_MARKDOWN" ContainerRepositoryReadmeFormatPlain ContainerRepositoryReadmeFormatEnum = "TEXT_PLAIN" )
func GetContainerRepositoryReadmeFormatEnumValues() []ContainerRepositoryReadmeFormatEnum
GetContainerRepositoryReadmeFormatEnumValues Enumerates the set of values for ContainerRepositoryReadmeFormatEnum
ContainerRepositorySummary Container repository summary.
type ContainerRepositorySummary struct { // The OCID of the compartment in which the container repository exists. CompartmentId *string `mandatory:"true" json:"compartmentId"` // The container repository name. DisplayName *string `mandatory:"true" json:"displayName"` // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the container repository. // Example: `ocid1.containerrepo.oc1..exampleuniqueID` Id *string `mandatory:"true" json:"id"` // Total number of images. ImageCount *int `mandatory:"true" json:"imageCount"` // Whether the repository is public. A public repository allows unauthenticated access. IsPublic *bool `mandatory:"true" json:"isPublic"` // Total number of layers. LayerCount *int `mandatory:"true" json:"layerCount"` // Total storage in bytes consumed by layers. LayersSizeInBytes *int64 `mandatory:"true" json:"layersSizeInBytes"` // The current state of the container repository. LifecycleState ContainerRepositoryLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` // An RFC 3339 timestamp indicating when the repository was created. TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` }
func (m ContainerRepositorySummary) String() string
ContainerVersion Container version metadata.
type ContainerVersion struct { // The OCID of the user or principal that pushed the version. CreatedBy *string `mandatory:"true" json:"createdBy"` // The creation time of the version. TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` // The version name. Version *string `mandatory:"true" json:"version"` }
func (m ContainerVersion) String() string
CreateContainerRepositoryDetails Create container repository details.
type CreateContainerRepositoryDetails struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment in which to create the resource. CompartmentId *string `mandatory:"true" json:"compartmentId"` // The container repository name. DisplayName *string `mandatory:"true" json:"displayName"` // Whether the repository is immutable. Images cannot be overwritten in an immutable repository. IsImmutable *bool `mandatory:"false" json:"isImmutable"` // Whether the repository is public. A public repository allows unauthenticated access. IsPublic *bool `mandatory:"false" json:"isPublic"` Readme *ContainerRepositoryReadme `mandatory:"false" json:"readme"` }
func (m CreateContainerRepositoryDetails) String() string
CreateContainerRepositoryRequest wrapper for the CreateContainerRepository operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/artifacts/CreateContainerRepository.go.html to see an example of how to use CreateContainerRepositoryRequest.
type CreateContainerRepositoryRequest struct { // Create container repository details. CreateContainerRepositoryDetails `contributesTo:"body"` // Unique identifier for the request. // If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // A token that uniquely identifies a request so it can be retried in case of a timeout or // server error without risk of executing that same action again. Retry tokens expire after 24 // hours, but can be invalidated before then due to conflicting operations (for example, if a resource // has been deleted and purged from the system, then a retry of the original creation request // may be rejected). OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request CreateContainerRepositoryRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request CreateContainerRepositoryRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request CreateContainerRepositoryRequest) String() string
CreateContainerRepositoryResponse wrapper for the CreateContainerRepository operation
type CreateContainerRepositoryResponse struct { // The underlying http response RawResponse *http.Response // The ContainerRepository instance ContainerRepository `presentIn:"body"` // For optimistic concurrency control. See `if-match`. Etag *string `presentIn:"header" name:"etag"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response CreateContainerRepositoryResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response CreateContainerRepositoryResponse) String() string
DeleteContainerImageRequest wrapper for the DeleteContainerImage operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/artifacts/DeleteContainerImage.go.html to see an example of how to use DeleteContainerImageRequest.
type DeleteContainerImageRequest struct { // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the container image. // Example: `ocid1.containerimage.oc1..exampleuniqueID` ImageId *string `mandatory:"true" contributesTo:"path" name:"imageId"` // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` // parameter to the value of the etag from a previous GET or POST response for that resource. The resource // will be updated or deleted only if the etag you provide matches the resource's current etag value. IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` // Unique identifier for the request. // If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request DeleteContainerImageRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request DeleteContainerImageRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request DeleteContainerImageRequest) String() string
DeleteContainerImageResponse wrapper for the DeleteContainerImage operation
type DeleteContainerImageResponse struct { // The underlying http response RawResponse *http.Response // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response DeleteContainerImageResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response DeleteContainerImageResponse) String() string
DeleteContainerRepositoryRequest wrapper for the DeleteContainerRepository operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/artifacts/DeleteContainerRepository.go.html to see an example of how to use DeleteContainerRepositoryRequest.
type DeleteContainerRepositoryRequest struct { // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the container repository. // Example: `ocid1.containerrepo.oc1..exampleuniqueID` RepositoryId *string `mandatory:"true" contributesTo:"path" name:"repositoryId"` // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` // parameter to the value of the etag from a previous GET or POST response for that resource. The resource // will be updated or deleted only if the etag you provide matches the resource's current etag value. IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` // Unique identifier for the request. // If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request DeleteContainerRepositoryRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request DeleteContainerRepositoryRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request DeleteContainerRepositoryRequest) String() string
DeleteContainerRepositoryResponse wrapper for the DeleteContainerRepository operation
type DeleteContainerRepositoryResponse struct { // The underlying http response RawResponse *http.Response // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response DeleteContainerRepositoryResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response DeleteContainerRepositoryResponse) String() string
GetContainerConfigurationRequest wrapper for the GetContainerConfiguration operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/artifacts/GetContainerConfiguration.go.html to see an example of how to use GetContainerConfigurationRequest.
type GetContainerConfigurationRequest struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` // Unique identifier for the request. // If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request GetContainerConfigurationRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request GetContainerConfigurationRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request GetContainerConfigurationRequest) String() string
GetContainerConfigurationResponse wrapper for the GetContainerConfiguration operation
type GetContainerConfigurationResponse struct { // The underlying http response RawResponse *http.Response // The ContainerConfiguration instance ContainerConfiguration `presentIn:"body"` // For optimistic concurrency control. See `if-match`. Etag *string `presentIn:"header" name:"etag"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response GetContainerConfigurationResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response GetContainerConfigurationResponse) String() string
GetContainerImageRequest wrapper for the GetContainerImage operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/artifacts/GetContainerImage.go.html to see an example of how to use GetContainerImageRequest.
type GetContainerImageRequest struct { // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the container image. // Example: `ocid1.containerimage.oc1..exampleuniqueID` ImageId *string `mandatory:"true" contributesTo:"path" name:"imageId"` // Unique identifier for the request. // If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request GetContainerImageRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request GetContainerImageRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request GetContainerImageRequest) String() string
GetContainerImageResponse wrapper for the GetContainerImage operation
type GetContainerImageResponse struct { // The underlying http response RawResponse *http.Response // The ContainerImage instance ContainerImage `presentIn:"body"` // For optimistic concurrency control. See `if-match`. Etag *string `presentIn:"header" name:"etag"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response GetContainerImageResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response GetContainerImageResponse) String() string
GetContainerRepositoryRequest wrapper for the GetContainerRepository operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/artifacts/GetContainerRepository.go.html to see an example of how to use GetContainerRepositoryRequest.
type GetContainerRepositoryRequest struct { // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the container repository. // Example: `ocid1.containerrepo.oc1..exampleuniqueID` RepositoryId *string `mandatory:"true" contributesTo:"path" name:"repositoryId"` // Unique identifier for the request. // If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request GetContainerRepositoryRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request GetContainerRepositoryRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request GetContainerRepositoryRequest) String() string
GetContainerRepositoryResponse wrapper for the GetContainerRepository operation
type GetContainerRepositoryResponse struct { // The underlying http response RawResponse *http.Response // The ContainerRepository instance ContainerRepository `presentIn:"body"` // For optimistic concurrency control. See `if-match`. Etag *string `presentIn:"header" name:"etag"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response GetContainerRepositoryResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response GetContainerRepositoryResponse) String() string
ListContainerImagesRequest wrapper for the ListContainerImages operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/artifacts/ListContainerImages.go.html to see an example of how to use ListContainerImagesRequest.
type ListContainerImagesRequest struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` // When set to true, the hierarchy of compartments is traversed // and all compartments and subcompartments in the tenancy are // inspected depending on the the setting of `accessLevel`. // Default is false. Can only be set to true when calling the API // on the tenancy (root compartment). CompartmentIdInSubtree *bool `mandatory:"false" contributesTo:"query" name:"compartmentIdInSubtree"` // A filter to return only resources that match the given display name exactly. DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` // A filter to return a container image summary only for the specified container image OCID. ImageId *string `mandatory:"false" contributesTo:"query" name:"imageId"` // A filter to return container images based on whether there are any associated versions. IsVersioned *bool `mandatory:"false" contributesTo:"query" name:"isVersioned"` // A filter to return container images only for the specified container repository OCID. RepositoryId *string `mandatory:"false" contributesTo:"query" name:"repositoryId"` // A filter to return container images or container image signatures that match the repository name. // Example: `foo` or `foo*` RepositoryName *string `mandatory:"false" contributesTo:"query" name:"repositoryName"` // A filter to return container images that match the version. // Example: `foo` or `foo*` Version *string `mandatory:"false" contributesTo:"query" name:"version"` // A filter to return only resources that match the given lifecycle state name exactly. LifecycleState *string `mandatory:"false" contributesTo:"query" name:"lifecycleState"` // For list pagination. The maximum number of results per page, or items to return in a paginated // "List" call. For important details about how pagination works, see // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). // Example: `50` Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` // For list pagination. The value of the `opc-next-page` response header from the previous "List" // call. For important details about how pagination works, see // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // Unique identifier for the request. // If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // The field to sort by. You can provide one sort order (`sortOrder`). Default order for // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME // sort order is case sensitive. // **Note:** In general, some "List" operations (for example, `ListInstances`) let you // optionally filter by availability domain if the scope of the resource type is within a // single availability domain. If you call one of these "List" operations without specifying // an availability domain, the resources are grouped by availability domain, then sorted. SortBy ListContainerImagesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order // is case sensitive. SortOrder ListContainerImagesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request ListContainerImagesRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ListContainerImagesRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ListContainerImagesRequest) String() string
ListContainerImagesResponse wrapper for the ListContainerImages operation
type ListContainerImagesResponse struct { // The underlying http response RawResponse *http.Response // A list of ContainerImageCollection instances ContainerImageCollection `presentIn:"body"` // For list pagination. When this header appears in the response, additional pages // of results remain. For important details about how pagination works, see // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response ListContainerImagesResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ListContainerImagesResponse) String() string
ListContainerImagesSortByEnum Enum with underlying type: string
type ListContainerImagesSortByEnum string
Set of constants representing the allowable values for ListContainerImagesSortByEnum
const ( ListContainerImagesSortByTimecreated ListContainerImagesSortByEnum = "TIMECREATED" ListContainerImagesSortByDisplayname ListContainerImagesSortByEnum = "DISPLAYNAME" )
func GetListContainerImagesSortByEnumValues() []ListContainerImagesSortByEnum
GetListContainerImagesSortByEnumValues Enumerates the set of values for ListContainerImagesSortByEnum
ListContainerImagesSortOrderEnum Enum with underlying type: string
type ListContainerImagesSortOrderEnum string
Set of constants representing the allowable values for ListContainerImagesSortOrderEnum
const ( ListContainerImagesSortOrderAsc ListContainerImagesSortOrderEnum = "ASC" ListContainerImagesSortOrderDesc ListContainerImagesSortOrderEnum = "DESC" )
func GetListContainerImagesSortOrderEnumValues() []ListContainerImagesSortOrderEnum
GetListContainerImagesSortOrderEnumValues Enumerates the set of values for ListContainerImagesSortOrderEnum
ListContainerRepositoriesRequest wrapper for the ListContainerRepositories operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/artifacts/ListContainerRepositories.go.html to see an example of how to use ListContainerRepositoriesRequest.
type ListContainerRepositoriesRequest struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` // When set to true, the hierarchy of compartments is traversed // and all compartments and subcompartments in the tenancy are // inspected depending on the the setting of `accessLevel`. // Default is false. Can only be set to true when calling the API // on the tenancy (root compartment). CompartmentIdInSubtree *bool `mandatory:"false" contributesTo:"query" name:"compartmentIdInSubtree"` // A filter to return container images only for the specified container repository OCID. RepositoryId *string `mandatory:"false" contributesTo:"query" name:"repositoryId"` // A filter to return only resources that match the given display name exactly. DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` // A filter to return resources that match the isPublic value. IsPublic *bool `mandatory:"false" contributesTo:"query" name:"isPublic"` // A filter to return only resources that match the given lifecycle state name exactly. LifecycleState *string `mandatory:"false" contributesTo:"query" name:"lifecycleState"` // For list pagination. The maximum number of results per page, or items to return in a paginated // "List" call. For important details about how pagination works, see // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). // Example: `50` Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` // For list pagination. The value of the `opc-next-page` response header from the previous "List" // call. For important details about how pagination works, see // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` // Unique identifier for the request. // If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // The field to sort by. You can provide one sort order (`sortOrder`). Default order for // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME // sort order is case sensitive. // **Note:** In general, some "List" operations (for example, `ListInstances`) let you // optionally filter by availability domain if the scope of the resource type is within a // single availability domain. If you call one of these "List" operations without specifying // an availability domain, the resources are grouped by availability domain, then sorted. SortBy ListContainerRepositoriesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order // is case sensitive. SortOrder ListContainerRepositoriesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request ListContainerRepositoriesRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ListContainerRepositoriesRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ListContainerRepositoriesRequest) String() string
ListContainerRepositoriesResponse wrapper for the ListContainerRepositories operation
type ListContainerRepositoriesResponse struct { // The underlying http response RawResponse *http.Response // A list of ContainerRepositoryCollection instances ContainerRepositoryCollection `presentIn:"body"` // For list pagination. When this header appears in the response, additional pages // of results remain. For important details about how pagination works, see // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response ListContainerRepositoriesResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ListContainerRepositoriesResponse) String() string
ListContainerRepositoriesSortByEnum Enum with underlying type: string
type ListContainerRepositoriesSortByEnum string
Set of constants representing the allowable values for ListContainerRepositoriesSortByEnum
const ( ListContainerRepositoriesSortByTimecreated ListContainerRepositoriesSortByEnum = "TIMECREATED" ListContainerRepositoriesSortByDisplayname ListContainerRepositoriesSortByEnum = "DISPLAYNAME" )
func GetListContainerRepositoriesSortByEnumValues() []ListContainerRepositoriesSortByEnum
GetListContainerRepositoriesSortByEnumValues Enumerates the set of values for ListContainerRepositoriesSortByEnum
ListContainerRepositoriesSortOrderEnum Enum with underlying type: string
type ListContainerRepositoriesSortOrderEnum string
Set of constants representing the allowable values for ListContainerRepositoriesSortOrderEnum
const ( ListContainerRepositoriesSortOrderAsc ListContainerRepositoriesSortOrderEnum = "ASC" ListContainerRepositoriesSortOrderDesc ListContainerRepositoriesSortOrderEnum = "DESC" )
func GetListContainerRepositoriesSortOrderEnumValues() []ListContainerRepositoriesSortOrderEnum
GetListContainerRepositoriesSortOrderEnumValues Enumerates the set of values for ListContainerRepositoriesSortOrderEnum
RemoveContainerVersionDetails Remove version details.
type RemoveContainerVersionDetails struct { // The version to remove. Version *string `mandatory:"true" json:"version"` }
func (m RemoveContainerVersionDetails) String() string
RemoveContainerVersionRequest wrapper for the RemoveContainerVersion operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/artifacts/RemoveContainerVersion.go.html to see an example of how to use RemoveContainerVersionRequest.
type RemoveContainerVersionRequest struct { // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the container image. // Example: `ocid1.containerimage.oc1..exampleuniqueID` ImageId *string `mandatory:"true" contributesTo:"path" name:"imageId"` // Remove version details. RemoveContainerVersionDetails `contributesTo:"body"` // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` // parameter to the value of the etag from a previous GET or POST response for that resource. The resource // will be updated or deleted only if the etag you provide matches the resource's current etag value. IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` // Unique identifier for the request. // If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // A token that uniquely identifies a request so it can be retried in case of a timeout or // server error without risk of executing that same action again. Retry tokens expire after 24 // hours, but can be invalidated before then due to conflicting operations (for example, if a resource // has been deleted and purged from the system, then a retry of the original creation request // may be rejected). OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request RemoveContainerVersionRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request RemoveContainerVersionRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request RemoveContainerVersionRequest) String() string
RemoveContainerVersionResponse wrapper for the RemoveContainerVersion operation
type RemoveContainerVersionResponse struct { // The underlying http response RawResponse *http.Response // The ContainerImage instance ContainerImage `presentIn:"body"` // For optimistic concurrency control. See `if-match`. Etag *string `presentIn:"header" name:"etag"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response RemoveContainerVersionResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response RemoveContainerVersionResponse) String() string
RestoreContainerImageDetails Undelete container image request details.
type RestoreContainerImageDetails struct { // Optional version to associate with image. Version *string `mandatory:"false" json:"version"` }
func (m RestoreContainerImageDetails) String() string
RestoreContainerImageRequest wrapper for the RestoreContainerImage operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/artifacts/RestoreContainerImage.go.html to see an example of how to use RestoreContainerImageRequest.
type RestoreContainerImageRequest struct { // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the container image. // Example: `ocid1.containerimage.oc1..exampleuniqueID` ImageId *string `mandatory:"true" contributesTo:"path" name:"imageId"` // Restore container image details. RestoreContainerImageDetails `contributesTo:"body"` // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` // parameter to the value of the etag from a previous GET or POST response for that resource. The resource // will be updated or deleted only if the etag you provide matches the resource's current etag value. IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` // Unique identifier for the request. // If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // A token that uniquely identifies a request so it can be retried in case of a timeout or // server error without risk of executing that same action again. Retry tokens expire after 24 // hours, but can be invalidated before then due to conflicting operations (for example, if a resource // has been deleted and purged from the system, then a retry of the original creation request // may be rejected). OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request RestoreContainerImageRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request RestoreContainerImageRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request RestoreContainerImageRequest) String() string
RestoreContainerImageResponse wrapper for the RestoreContainerImage operation
type RestoreContainerImageResponse struct { // The underlying http response RawResponse *http.Response // The ContainerImage instance ContainerImage `presentIn:"body"` // For optimistic concurrency control. See `if-match`. Etag *string `presentIn:"header" name:"etag"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response RestoreContainerImageResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response RestoreContainerImageResponse) String() string
UpdateContainerConfigurationDetails Update container configuration request details.
type UpdateContainerConfigurationDetails struct { // Whether to create a new container repository when a container is pushed to a new repository path. // Repositories created in this way belong to the root compartment. IsRepositoryCreatedOnFirstPush *bool `mandatory:"false" json:"isRepositoryCreatedOnFirstPush"` }
func (m UpdateContainerConfigurationDetails) String() string
UpdateContainerConfigurationRequest wrapper for the UpdateContainerConfiguration operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/artifacts/UpdateContainerConfiguration.go.html to see an example of how to use UpdateContainerConfigurationRequest.
type UpdateContainerConfigurationRequest struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` // Update container configuration details. UpdateContainerConfigurationDetails `contributesTo:"body"` // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` // parameter to the value of the etag from a previous GET or POST response for that resource. The resource // will be updated or deleted only if the etag you provide matches the resource's current etag value. IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` // Unique identifier for the request. // If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request UpdateContainerConfigurationRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request UpdateContainerConfigurationRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request UpdateContainerConfigurationRequest) String() string
UpdateContainerConfigurationResponse wrapper for the UpdateContainerConfiguration operation
type UpdateContainerConfigurationResponse struct { // The underlying http response RawResponse *http.Response // The ContainerConfiguration instance ContainerConfiguration `presentIn:"body"` // For optimistic concurrency control. See `if-match`. Etag *string `presentIn:"header" name:"etag"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response UpdateContainerConfigurationResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response UpdateContainerConfigurationResponse) String() string
UpdateContainerRepositoryDetails Update container repository request details.
type UpdateContainerRepositoryDetails struct { // Whether the repository is immutable. Images cannot be overwritten in an immutable repository. IsImmutable *bool `mandatory:"false" json:"isImmutable"` // Whether the repository is public. A public repository allows unauthenticated access. IsPublic *bool `mandatory:"false" json:"isPublic"` Readme *ContainerRepositoryReadme `mandatory:"false" json:"readme"` }
func (m UpdateContainerRepositoryDetails) String() string
UpdateContainerRepositoryRequest wrapper for the UpdateContainerRepository operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/36.1.0/artifacts/UpdateContainerRepository.go.html to see an example of how to use UpdateContainerRepositoryRequest.
type UpdateContainerRepositoryRequest struct { // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the container repository. // Example: `ocid1.containerrepo.oc1..exampleuniqueID` RepositoryId *string `mandatory:"true" contributesTo:"path" name:"repositoryId"` // Update container repository details. UpdateContainerRepositoryDetails `contributesTo:"body"` // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` // parameter to the value of the etag from a previous GET or POST response for that resource. The resource // will be updated or deleted only if the etag you provide matches the resource's current etag value. IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` // Unique identifier for the request. // If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request UpdateContainerRepositoryRequest) HTTPRequest(method, path string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request UpdateContainerRepositoryRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request UpdateContainerRepositoryRequest) String() string
UpdateContainerRepositoryResponse wrapper for the UpdateContainerRepository operation
type UpdateContainerRepositoryResponse struct { // The underlying http response RawResponse *http.Response // The ContainerRepository instance ContainerRepository `presentIn:"body"` // For optimistic concurrency control. See `if-match`. Etag *string `presentIn:"header" name:"etag"` // Unique Oracle-assigned identifier for the request. If you need to contact // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response UpdateContainerRepositoryResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response UpdateContainerRepositoryResponse) String() string