Documentation ¶
Index ¶
- func NewArtifactResource() resource.Resource
- func NewItemPropertiesResource() resource.Resource
- type ArtifactResource
- func (r *ArtifactResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *ArtifactResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *ArtifactResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *ArtifactResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *ArtifactResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *ArtifactResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *ArtifactResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type ArtifactResourceAPIModel
- type ArtifactResourceChecksumsAPIModel
- type ArtifactResourceModel
- type ItemPropertiesGetAPIModel
- type ItemPropertiesPatchAPIModel
- type ItemPropertiesResource
- func (r *ItemPropertiesResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *ItemPropertiesResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *ItemPropertiesResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *ItemPropertiesResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *ItemPropertiesResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *ItemPropertiesResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *ItemPropertiesResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *ItemPropertiesResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type ItemPropertiesResourceModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewArtifactResource ¶
Types ¶
type ArtifactResource ¶
type ArtifactResource struct { ProviderData util.ProviderMetadata TypeName string }
func (*ArtifactResource) Configure ¶
func (r *ArtifactResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*ArtifactResource) Create ¶
func (r *ArtifactResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*ArtifactResource) Delete ¶
func (r *ArtifactResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*ArtifactResource) Metadata ¶
func (r *ArtifactResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*ArtifactResource) Read ¶
func (r *ArtifactResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*ArtifactResource) Schema ¶
func (r *ArtifactResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*ArtifactResource) Update ¶
func (r *ArtifactResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
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 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 ItemPropertiesResource ¶
type ItemPropertiesResource struct { ProviderData util.ProviderMetadata TypeName string }
func (*ItemPropertiesResource) Configure ¶
func (r *ItemPropertiesResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*ItemPropertiesResource) Create ¶
func (r *ItemPropertiesResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*ItemPropertiesResource) Delete ¶
func (r *ItemPropertiesResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*ItemPropertiesResource) ImportState ¶
func (r *ItemPropertiesResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
ImportState imports the resource into the Terraform state.
func (*ItemPropertiesResource) Metadata ¶
func (r *ItemPropertiesResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*ItemPropertiesResource) Read ¶
func (r *ItemPropertiesResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*ItemPropertiesResource) Schema ¶
func (r *ItemPropertiesResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*ItemPropertiesResource) Update ¶
func (r *ItemPropertiesResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
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)
Click to show internal directories.
Click to hide internal directories.