artifact

package
v12.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: Apache-2.0 Imports: 26 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 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 ArtifactResourceAPIModel

type ArtifactResourceAPIModel struct {
	Repository  string                            `json:"repo"`
	Path        string                            `json:"path"`
	Checksums   ArtifactResourceChecksumsAPIModel `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 ArtifactResourceChecksumsAPIModel

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

type ArtifactResourceModel

type ArtifactResourceModel struct {
	Repository     types.String `tfsdk:"repository"`
	Path           types.String `tfsdk:"path"`
	FilePath       types.String `tfsdk:"file_path"`
	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"`
}

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