Documentation ¶
Index ¶
- Constants
- func NewLocalRepositoryMultiReplicationResource() resource.Resource
- func NewLocalRepositorySingleReplicationResource() resource.Resource
- func NewRemoteRepositoryReplicationResource() resource.Resource
- func ResourceArtifactoryPullReplication() *schema.Resource
- func ResourceArtifactoryPushReplication() *schema.Resource
- func ResourceArtifactoryReplicationConfig() *schema.Resource
- func ResourceArtifactorySingleReplicationConfig() *schema.Resource
- type GetPushReplication
- 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 PullReplication
- 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 ReplicationBody
- type ReplicationGetAPIModel
- type ReplicationUpdateAPIModel
- type UpdatePushReplication
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 ¶
func NewLocalRepositoryMultiReplicationResource ¶ added in v11.8.0
func NewLocalRepositorySingleReplicationResource ¶ added in v11.8.0
func NewRemoteRepositoryReplicationResource ¶ added in v11.8.0
Types ¶
type GetPushReplication ¶
type LocalMultiReplicationUpdateAPIModel ¶ added in v11.8.0
type LocalMultiReplicationUpdateAPIModel struct { CronExp string `json:"cronExp,omitempty"` EnableEventReplication bool `json:"enableEventReplication"` Replications []ReplicationUpdateAPIModel `json:"replications,omitempty"` }
type LocalRepositoryMultiReplicationResource ¶ added in v11.8.0
type LocalRepositoryMultiReplicationResource struct { ProviderData util.ProviderMetadata TypeName string }
func (*LocalRepositoryMultiReplicationResource) Configure ¶ added in v11.8.0
func (r *LocalRepositoryMultiReplicationResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*LocalRepositoryMultiReplicationResource) Create ¶ added in v11.8.0
func (r *LocalRepositoryMultiReplicationResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*LocalRepositoryMultiReplicationResource) Delete ¶ added in v11.8.0
func (r *LocalRepositoryMultiReplicationResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*LocalRepositoryMultiReplicationResource) ImportState ¶ added in v11.8.0
func (r *LocalRepositoryMultiReplicationResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
ImportState imports the resource into the Terraform state.
func (*LocalRepositoryMultiReplicationResource) Metadata ¶ added in v11.8.0
func (r *LocalRepositoryMultiReplicationResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*LocalRepositoryMultiReplicationResource) Read ¶ added in v11.8.0
func (r *LocalRepositoryMultiReplicationResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*LocalRepositoryMultiReplicationResource) Schema ¶ added in v11.8.0
func (r *LocalRepositoryMultiReplicationResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*LocalRepositoryMultiReplicationResource) Update ¶ added in v11.8.0
func (r *LocalRepositoryMultiReplicationResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type LocalRepositoryMultiReplicationResourceModel ¶ added in v11.8.0
type LocalRepositorySingleReplicationResource ¶ added in v11.8.0
type LocalRepositorySingleReplicationResource struct { ProviderData util.ProviderMetadata TypeName string }
func (*LocalRepositorySingleReplicationResource) Configure ¶ added in v11.8.0
func (r *LocalRepositorySingleReplicationResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*LocalRepositorySingleReplicationResource) Create ¶ added in v11.8.0
func (r *LocalRepositorySingleReplicationResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*LocalRepositorySingleReplicationResource) Delete ¶ added in v11.8.0
func (r *LocalRepositorySingleReplicationResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*LocalRepositorySingleReplicationResource) ImportState ¶ added in v11.8.0
func (r *LocalRepositorySingleReplicationResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
ImportState imports the resource into the Terraform state.
func (*LocalRepositorySingleReplicationResource) Metadata ¶ added in v11.8.0
func (r *LocalRepositorySingleReplicationResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*LocalRepositorySingleReplicationResource) Read ¶ added in v11.8.0
func (r *LocalRepositorySingleReplicationResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*LocalRepositorySingleReplicationResource) Schema ¶ added in v11.8.0
func (r *LocalRepositorySingleReplicationResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*LocalRepositorySingleReplicationResource) Update ¶ added in v11.8.0
func (r *LocalRepositorySingleReplicationResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type LocalRepositorySingleReplicationResourceModel ¶ added in v11.8.0
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 ¶ added in v11.8.0
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 ¶ added in v11.8.0
type LocalSingleReplicationGetAPIModel struct { LocalSingleReplicationAPIModel ProxyRef string `json:"proxyRef"` ReplicationKey string `json:"replicationKey"` }
type LocalSingleReplicationUpdateAPIModel ¶ added in v11.8.0
type LocalSingleReplicationUpdateAPIModel struct { LocalSingleReplicationAPIModel Proxy string `json:"proxy"` }
type PullReplication ¶
type PullReplication struct { Enabled bool `json:"enabled"` CronExp string `json:"cronExp"` SyncDeletes bool `json:"syncDeletes"` SyncProperties bool `json:"syncProperties"` PathPrefix string `json:"pathPrefix"` RepoKey string `json:"repoKey"` ReplicationKey string `json:"replicationKey"` EnableEventReplication bool `json:"enableEventReplication"` Username string `json:"username"` Password string `json:"password"` URL string `json:"url"` CheckBinaryExistenceInFilestore bool `json:"checkBinaryExistenceInFilestore"` }
PullReplication this is the structure for a PULL replication on a remote repo
type RemoteReplicationAPIModel ¶ added in v11.8.0
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 ¶ added in v11.8.0
type RemoteReplicationGetAPIModel struct { RemoteReplicationAPIModel ReplicationKey string `json:"replicationKey"` }
type RemoteRepositoryReplicationResource ¶ added in v11.8.0
type RemoteRepositoryReplicationResource struct { ProviderData util.ProviderMetadata TypeName string }
func (*RemoteRepositoryReplicationResource) Configure ¶ added in v11.8.0
func (r *RemoteRepositoryReplicationResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*RemoteRepositoryReplicationResource) Create ¶ added in v11.8.0
func (r *RemoteRepositoryReplicationResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*RemoteRepositoryReplicationResource) Delete ¶ added in v11.8.0
func (r *RemoteRepositoryReplicationResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*RemoteRepositoryReplicationResource) ImportState ¶ added in v11.8.0
func (r *RemoteRepositoryReplicationResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
ImportState imports the resource into the Terraform state.
func (*RemoteRepositoryReplicationResource) Metadata ¶ added in v11.8.0
func (r *RemoteRepositoryReplicationResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*RemoteRepositoryReplicationResource) Read ¶ added in v11.8.0
func (r *RemoteRepositoryReplicationResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*RemoteRepositoryReplicationResource) Schema ¶ added in v11.8.0
func (r *RemoteRepositoryReplicationResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*RemoteRepositoryReplicationResource) Update ¶ added in v11.8.0
func (r *RemoteRepositoryReplicationResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type RemoteRepositoryReplicationResourceModel ¶ added in v11.8.0
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 ¶ added in v11.8.0
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 ReplicationBody ¶
type ReplicationBody 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 int `json:"socketTimeoutMillis"` Enabled bool `json:"enabled"` SyncDeletes bool `json:"syncDeletes"` SyncProperties bool `json:"syncProperties"` SyncStatistics bool `json:"syncStatistics"` PathPrefix string `json:"pathPrefix"` CheckBinaryExistenceInFilestore bool `json:"checkBinaryExistenceInFilestore"` }
type ReplicationGetAPIModel ¶ added in v11.8.0
type ReplicationGetAPIModel struct { ReplicationAPIModel ProxyRef string `json:"proxyRef"` ReplicationKey string `json:"replicationKey"` }
type ReplicationUpdateAPIModel ¶ added in v11.8.0
type ReplicationUpdateAPIModel struct { ReplicationAPIModel Proxy string `json:"proxy"` }
type UpdatePushReplication ¶
Source Files ¶
- replication.go
- resource_artifactory_local_repository_multi_replication.go
- resource_artifactory_local_repository_single_replication.go
- resource_artifactory_pull_replication.go
- resource_artifactory_push_replication.go
- resource_artifactory_remote_repository_replication.go
- resource_artifactory_replication_config.go
- resource_artifactory_single_replication_config.go
Click to show internal directories.
Click to hide internal directories.