artifact

package
v12.7.1 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewArtifactResource

func NewArtifactResource() resource.Resource

func NewItemPropertiesResource

func NewItemPropertiesResource() resource.Resource

Types

type ArtifactAPIModel added in v12.6.0

type ArtifactAPIModel struct {
	Repository  string                    `json:"repo"`
	Path        string                    `json:"path"`
	Checksums   ArtifactChecksumsAPIModel `json:"checksums"`
	Created     string                    `json:"created"`
	CreatedBy   string                    `json:"createdBy"`
	DownloadURI string                    `json:"downloadUri"`
	MimeType    string                    `json:"mimeType"`
	Size        string                    `json:"size"`
	URI         string                    `json:"uri"`
}

type ArtifactChecksumsAPIModel added in v12.6.0

type ArtifactChecksumsAPIModel struct {
	MD5    string `json:"md5"`
	SHA1   string `json:"sha1"`
	SHA256 string `json:"sha256"`
}

type ArtifactResource

type ArtifactResource struct {
	ProviderData util.ProviderMetadata
	TypeName     string
}

func (*ArtifactResource) Configure

func (*ArtifactResource) Create

func (*ArtifactResource) Delete

func (*ArtifactResource) Metadata

func (*ArtifactResource) Read

func (*ArtifactResource) Schema

func (*ArtifactResource) Update

type ArtifactResourceModel

type ArtifactResourceModel struct {
	Repository     types.String `tfsdk:"repository"`
	Path           types.String `tfsdk:"path"`
	FilePath       types.String `tfsdk:"file_path"`
	ContentBase64  types.String `tfsdk:"content_base64"`
	ChecksumMD5    types.String `tfsdk:"checksum_md5"`
	ChecksumSHA1   types.String `tfsdk:"checksum_sha1"`
	ChecksumSHA256 types.String `tfsdk:"checksum_sha256"`
	Created        types.String `tfsdk:"created"`
	CreatedBy      types.String `tfsdk:"created_by"`
	DownloadURI    types.String `tfsdk:"download_uri"`
	MimeType       types.String `tfsdk:"mime_type"`
	Size           types.Int64  `tfsdk:"size"`
	URI            types.String `tfsdk:"uri"`
}

func (*ArtifactResourceModel) LocalFilePath added in v12.6.0

func (r *ArtifactResourceModel) LocalFilePath() (string, error)

type ItemPropertiesGetAPIModel

type ItemPropertiesGetAPIModel struct {
	URI        string              `json:"uri"`
	Properties map[string][]string `json:"properties"`
}

type ItemPropertiesPatchAPIModel

type ItemPropertiesPatchAPIModel struct {
	Props map[string]*string `json:"props"`
}

type ItemPropertiesResource

type ItemPropertiesResource struct {
	ProviderData util.ProviderMetadata
	TypeName     string
}

func (*ItemPropertiesResource) Configure

func (*ItemPropertiesResource) Create

func (*ItemPropertiesResource) Delete

func (*ItemPropertiesResource) ImportState

ImportState imports the resource into the Terraform state.

func (*ItemPropertiesResource) Metadata

func (*ItemPropertiesResource) Read

func (*ItemPropertiesResource) Schema

func (*ItemPropertiesResource) Update

type ItemPropertiesResourceModel

type ItemPropertiesResourceModel struct {
	RepoKey     types.String `tfsdk:"repo_key"`
	ItemPath    types.String `tfsdk:"item_path"`
	Properties  types.Map    `tfsdk:"properties"`
	IsRecursive types.Bool   `tfsdk:"is_recursive"`
}

func (ItemPropertiesResourceModel) GetAPIRequestAndURL

func (r ItemPropertiesResourceModel) GetAPIRequestAndURL(req *resty.Request, baseURL string) (request *resty.Request, url string)

Jump to

Keyboard shortcuts

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