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: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArtifactoryFile

func ArtifactoryFile() *schema.Resource

func ArtifactoryFileInfo

func ArtifactoryFileInfo() *schema.Resource

func NewFileListDataSource

func NewFileListDataSource() datasource.DataSource

Types

type Checksums

type Checksums struct {
	Md5    string `json:"md5,omitempty"`
	Sha1   string `json:"sha1,omitempty"`
	Sha256 string `json:"sha256,omitempty"`
}

type FileInfo

type FileInfo struct {
	Repo              string    `json:"repo,omitempty"`
	Path              string    `json:"path,omitempty"`
	Created           string    `json:"created,omitempty"`
	CreatedBy         string    `json:"createdBy,omitempty"`
	LastModified      string    `json:"lastModified,omitempty"`
	ModifiedBy        string    `json:"modifiedBy,omitempty"`
	LastUpdated       string    `json:"lastUpdated,omitempty"`
	DownloadUri       string    `json:"downloadUri,omitempty"`
	MimeType          string    `json:"mimeType,omitempty"`
	Size              int       `json:"size,string,omitempty"`
	Checksums         Checksums `json:"checksums,omitempty"`
	OriginalChecksums Checksums `json:"originalChecksums,omitempty"`
	Uri               string    `json:"uri,omitempty"`
}

func (FileInfo) Id

func (fi FileInfo) Id() string

type FileListAPIModel

type FileListAPIModel struct {
	Uri     string              `json:"uri"`
	Created time.Time           `json:"created"`
	Files   []FileListAttribute `json:"files"`
}

type FileListAttribute

type FileListAttribute struct {
	Uri                string                      `json:"uri"`
	Size               int64                       `json:"size"`
	LastModified       time.Time                   `json:"lastModified"`
	IsFolder           bool                        `json:"folder"`
	SHA1               string                      `json:"sha1"`
	SHA2               string                      `json:"sha2"`
	MetadataTimestamps *FileListMetadataTimestamps `json:"mdTimestamps"`
}

type FileListDataSource

type FileListDataSource struct {
	ProviderData util.ProviderMetadata
	TypeName     string
}

func (*FileListDataSource) Configure

func (*FileListDataSource) Metadata

func (*FileListDataSource) Read

func (*FileListDataSource) Schema

type FileListDataSourceModel

type FileListDataSourceModel struct {
	RepositoryKey      types.String `tfsdk:"repository_key"`
	FolderPath         types.String `tfsdk:"folder_path"`
	DeepListing        types.Bool   `tfsdk:"deep_listing"`
	Depth              types.Int64  `tfsdk:"depth"`
	ListFolders        types.Bool   `tfsdk:"list_folders"`
	MetadataTimestamps types.Bool   `tfsdk:"metadata_timestamps"`
	IncludeRootPath    types.Bool   `tfsdk:"include_root_path"`
	Uri                types.String `tfsdk:"uri"`
	Created            types.String `tfsdk:"created"`
	Files              types.List   `tfsdk:"files"`
}

func (*FileListDataSourceModel) FromAPIModel

func (m *FileListDataSourceModel) FromAPIModel(ctx context.Context, data FileListAPIModel) (ds diag.Diagnostics)

type FileListMetadataTimestamps

type FileListMetadataTimestamps struct {
	Properties string `json:"properties"`
}

Jump to

Keyboard shortcuts

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