Documentation ¶
Index ¶
- Constants
- func NewLocalRepositoryMultiReplicationResource() resource.Resource
- func NewLocalRepositorySingleReplicationResource() resource.Resource
- func NewRemoteRepositoryReplicationResource() resource.Resource
- func ResourceArtifactoryPullReplication() *schema.Resource
- func ResourceArtifactoryPushReplication() *schema.Resource
- type LocalMultiReplicationUpdateAPIModel
- type LocalRepositoryMultiReplicationResource
- func (r *LocalRepositoryMultiReplicationResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *LocalRepositoryMultiReplicationResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *LocalRepositoryMultiReplicationResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *LocalRepositoryMultiReplicationResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *LocalRepositoryMultiReplicationResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *LocalRepositoryMultiReplicationResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *LocalRepositoryMultiReplicationResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *LocalRepositoryMultiReplicationResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type LocalRepositoryMultiReplicationResourceModel
- type LocalRepositorySingleReplicationResource
- func (r *LocalRepositorySingleReplicationResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *LocalRepositorySingleReplicationResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *LocalRepositorySingleReplicationResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *LocalRepositorySingleReplicationResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *LocalRepositorySingleReplicationResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *LocalRepositorySingleReplicationResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *LocalRepositorySingleReplicationResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *LocalRepositorySingleReplicationResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type LocalRepositorySingleReplicationResourceModel
- type LocalSingleReplicationAPIModel
- type LocalSingleReplicationGetAPIModel
- type LocalSingleReplicationUpdateAPIModel
- type RemoteReplicationAPIModel
- type RemoteReplicationGetAPIModel
- type RemoteRepositoryReplicationResource
- func (r *RemoteRepositoryReplicationResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *RemoteRepositoryReplicationResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *RemoteRepositoryReplicationResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *RemoteRepositoryReplicationResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *RemoteRepositoryReplicationResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *RemoteRepositoryReplicationResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *RemoteRepositoryReplicationResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *RemoteRepositoryReplicationResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type RemoteRepositoryReplicationResourceModel
- type ReplicationAPIModel
- type ReplicationGetAPIModel
- type ReplicationUpdateAPIModel
Constants ¶
View Source
const ( EndpointPath = "artifactory/api/replications/" ReplicationEndpoint = "artifactory/api/replications/{repo_key}" MultiReplicationEndpoint = "artifactory/api/replications/multiple/{repo_key}" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LocalMultiReplicationUpdateAPIModel ¶
type LocalMultiReplicationUpdateAPIModel struct { CronExp string `json:"cronExp,omitempty"` EnableEventReplication bool `json:"enableEventReplication"` Replications []ReplicationUpdateAPIModel `json:"replications,omitempty"` }
type LocalRepositoryMultiReplicationResource ¶
type LocalRepositoryMultiReplicationResource struct { ProviderData util.ProviderMetadata TypeName string }
func (*LocalRepositoryMultiReplicationResource) Configure ¶
func (r *LocalRepositoryMultiReplicationResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*LocalRepositoryMultiReplicationResource) Create ¶
func (r *LocalRepositoryMultiReplicationResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*LocalRepositoryMultiReplicationResource) Delete ¶
func (r *LocalRepositoryMultiReplicationResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*LocalRepositoryMultiReplicationResource) ImportState ¶
func (r *LocalRepositoryMultiReplicationResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
ImportState imports the resource into the Terraform state.
func (*LocalRepositoryMultiReplicationResource) Metadata ¶
func (r *LocalRepositoryMultiReplicationResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*LocalRepositoryMultiReplicationResource) Read ¶
func (r *LocalRepositoryMultiReplicationResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*LocalRepositoryMultiReplicationResource) Schema ¶
func (r *LocalRepositoryMultiReplicationResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*LocalRepositoryMultiReplicationResource) Update ¶
func (r *LocalRepositoryMultiReplicationResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type LocalRepositorySingleReplicationResource ¶
type LocalRepositorySingleReplicationResource struct { ProviderData util.ProviderMetadata TypeName string }
func (*LocalRepositorySingleReplicationResource) Configure ¶
func (r *LocalRepositorySingleReplicationResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*LocalRepositorySingleReplicationResource) Create ¶
func (r *LocalRepositorySingleReplicationResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*LocalRepositorySingleReplicationResource) Delete ¶
func (r *LocalRepositorySingleReplicationResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*LocalRepositorySingleReplicationResource) ImportState ¶
func (r *LocalRepositorySingleReplicationResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
ImportState imports the resource into the Terraform state.
func (*LocalRepositorySingleReplicationResource) Metadata ¶
func (r *LocalRepositorySingleReplicationResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*LocalRepositorySingleReplicationResource) Read ¶
func (r *LocalRepositorySingleReplicationResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*LocalRepositorySingleReplicationResource) Schema ¶
func (r *LocalRepositorySingleReplicationResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*LocalRepositorySingleReplicationResource) Update ¶
func (r *LocalRepositorySingleReplicationResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type LocalRepositorySingleReplicationResourceModel ¶
type LocalRepositorySingleReplicationResourceModel struct { ID types.String `tfsdk:"id"` URL types.String `tfsdk:"url"` SocketTimeoutMillis types.Int64 `tfsdk:"socket_timeout_millis"` Username types.String `tfsdk:"username"` Password types.String `tfsdk:"password"` EnableEventReplication types.Bool `tfsdk:"enable_event_replication"` Enabled types.Bool `tfsdk:"enabled"` CronExp types.String `tfsdk:"cron_exp"` SyncDeletes types.Bool `tfsdk:"sync_deletes"` SyncProperties types.Bool `tfsdk:"sync_properties"` SyncStatistics types.Bool `tfsdk:"sync_statistics"` RepoKey types.String `tfsdk:"repo_key"` Proxy types.String `tfsdk:"proxy"` ReplicationKey types.String `tfsdk:"replication_key"` IncludePathPrefixPattern types.String `tfsdk:"include_path_prefix_pattern"` ExcludePathPrefixPattern types.String `tfsdk:"exclude_path_prefix_pattern"` CheckBinaryExistenceInFilestore types.Bool `tfsdk:"check_binary_existence_in_filestore"` }
type LocalSingleReplicationAPIModel ¶
type LocalSingleReplicationAPIModel struct { URL string `json:"url"` SocketTimeoutMillis int64 `json:"socketTimeoutMillis"` Username string `json:"username"` Password string `json:"password"` EnableEventReplication bool `json:"enableEventReplication"` Enabled bool `json:"enabled"` CronExp string `json:"cronExp"` SyncDeletes bool `json:"syncDeletes"` SyncProperties bool `json:"syncProperties"` SyncStatistics bool `json:"syncStatistics"` RepoKey string `json:"repoKey"` IncludePathPrefixPattern string `json:"includePathPrefixPattern"` ExcludePathPrefixPattern string `json:"excludePathPrefixPattern"` CheckBinaryExistenceInFilestore bool `json:"checkBinaryExistenceInFilestore"` }
type LocalSingleReplicationGetAPIModel ¶
type LocalSingleReplicationGetAPIModel struct { LocalSingleReplicationAPIModel ProxyRef string `json:"proxyRef"` ReplicationKey string `json:"replicationKey"` }
type LocalSingleReplicationUpdateAPIModel ¶
type LocalSingleReplicationUpdateAPIModel struct { LocalSingleReplicationAPIModel Proxy string `json:"proxy"` }
type RemoteReplicationAPIModel ¶
type RemoteReplicationAPIModel struct { Enabled bool `json:"enabled"` CronExp string `json:"cronExp"` SyncDeletes bool `json:"syncDeletes"` SyncProperties bool `json:"syncProperties"` IncludePathPrefixPattern string `json:"includePathPrefixPattern"` ExcludePathPrefixPattern string `json:"excludePathPrefixPattern"` RepoKey string `json:"repoKey"` ReplicationKey string `json:"replicationKey"` EnableEventReplication bool `json:"enableEventReplication"` CheckBinaryExistenceInFilestore bool `json:"checkBinaryExistenceInFilestore"` }
type RemoteReplicationGetAPIModel ¶
type RemoteReplicationGetAPIModel struct { RemoteReplicationAPIModel ReplicationKey string `json:"replicationKey"` }
type RemoteRepositoryReplicationResource ¶
type RemoteRepositoryReplicationResource struct { ProviderData util.ProviderMetadata TypeName string }
func (*RemoteRepositoryReplicationResource) Configure ¶
func (r *RemoteRepositoryReplicationResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*RemoteRepositoryReplicationResource) Create ¶
func (r *RemoteRepositoryReplicationResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*RemoteRepositoryReplicationResource) Delete ¶
func (r *RemoteRepositoryReplicationResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*RemoteRepositoryReplicationResource) ImportState ¶
func (r *RemoteRepositoryReplicationResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
ImportState imports the resource into the Terraform state.
func (*RemoteRepositoryReplicationResource) Metadata ¶
func (r *RemoteRepositoryReplicationResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*RemoteRepositoryReplicationResource) Read ¶
func (r *RemoteRepositoryReplicationResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*RemoteRepositoryReplicationResource) Schema ¶
func (r *RemoteRepositoryReplicationResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*RemoteRepositoryReplicationResource) Update ¶
func (r *RemoteRepositoryReplicationResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type RemoteRepositoryReplicationResourceModel ¶
type RemoteRepositoryReplicationResourceModel struct { ID types.String `tfsdk:"id"` EnableEventReplication types.Bool `tfsdk:"enable_event_replication"` Enabled types.Bool `tfsdk:"enabled"` CronExp types.String `tfsdk:"cron_exp"` SyncDeletes types.Bool `tfsdk:"sync_deletes"` SyncProperties types.Bool `tfsdk:"sync_properties"` RepoKey types.String `tfsdk:"repo_key"` ReplicationKey types.String `tfsdk:"replication_key"` IncludePathPrefixPattern types.String `tfsdk:"include_path_prefix_pattern"` ExcludePathPrefixPattern types.String `tfsdk:"exclude_path_prefix_pattern"` CheckBinaryExistenceInFilestore types.Bool `tfsdk:"check_binary_existence_in_filestore"` }
type ReplicationAPIModel ¶
type ReplicationAPIModel struct { Username string `json:"username"` Password string `json:"password"` URL string `json:"url"` CronExp string `json:"cronExp"` RepoKey string `json:"repoKey"` EnableEventReplication bool `json:"enableEventReplication"` SocketTimeoutMillis int64 `json:"socketTimeoutMillis"` Enabled bool `json:"enabled"` SyncDeletes bool `json:"syncDeletes"` SyncProperties bool `json:"syncProperties"` SyncStatistics bool `json:"syncStatistics"` IncludePathPrefixPattern string `json:"includePathPrefixPattern"` ExcludePathPrefixPattern string `json:"excludePathPrefixPattern"` CheckBinaryExistenceInFilestore bool `json:"checkBinaryExistenceInFilestore"` }
type ReplicationGetAPIModel ¶
type ReplicationGetAPIModel struct { ReplicationAPIModel ProxyRef string `json:"proxyRef"` ReplicationKey string `json:"replicationKey"` DisableProxy bool `json:"disableProxy"` }
type ReplicationUpdateAPIModel ¶
type ReplicationUpdateAPIModel struct { ReplicationAPIModel Proxy string `json:"proxy"` DisableProxy bool `json:"disableProxy"` }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.