replication

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

Documentation

Index

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

func NewLocalRepositoryMultiReplicationResource() resource.Resource

func NewLocalRepositorySingleReplicationResource

func NewLocalRepositorySingleReplicationResource() resource.Resource

func NewRemoteRepositoryReplicationResource

func NewRemoteRepositoryReplicationResource() resource.Resource

func ResourceArtifactoryPullReplication

func ResourceArtifactoryPullReplication() *schema.Resource

func ResourceArtifactoryPushReplication

func ResourceArtifactoryPushReplication() *schema.Resource

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 (*LocalRepositoryMultiReplicationResource) Create

func (*LocalRepositoryMultiReplicationResource) Delete

func (*LocalRepositoryMultiReplicationResource) ImportState

ImportState imports the resource into the Terraform state.

func (*LocalRepositoryMultiReplicationResource) Metadata

func (*LocalRepositoryMultiReplicationResource) Read

func (*LocalRepositoryMultiReplicationResource) Schema

func (*LocalRepositoryMultiReplicationResource) Update

type LocalRepositoryMultiReplicationResourceModel

type LocalRepositoryMultiReplicationResourceModel struct {
	ID                     types.String `tfsdk:"id"`
	RepoKey                types.String `tfsdk:"repo_key"`
	EnableEventReplication types.Bool   `tfsdk:"enable_event_replication"`
	CronExp                types.String `tfsdk:"cron_exp"`
	Replication            types.List   `tfsdk:"replication"`
}

type LocalRepositorySingleReplicationResource

type LocalRepositorySingleReplicationResource struct {
	ProviderData util.ProviderMetadata
	TypeName     string
}

func (*LocalRepositorySingleReplicationResource) Configure

func (*LocalRepositorySingleReplicationResource) Create

func (*LocalRepositorySingleReplicationResource) Delete

func (*LocalRepositorySingleReplicationResource) ImportState

ImportState imports the resource into the Terraform state.

func (*LocalRepositorySingleReplicationResource) Metadata

func (*LocalRepositorySingleReplicationResource) Read

func (*LocalRepositorySingleReplicationResource) Schema

func (*LocalRepositorySingleReplicationResource) Update

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 (*RemoteRepositoryReplicationResource) Create

func (*RemoteRepositoryReplicationResource) Delete

func (*RemoteRepositoryReplicationResource) ImportState

ImportState imports the resource into the Terraform state.

func (*RemoteRepositoryReplicationResource) Metadata

func (*RemoteRepositoryReplicationResource) Read

func (*RemoteRepositoryReplicationResource) Schema

func (*RemoteRepositoryReplicationResource) Update

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"`
}

Jump to

Keyboard shortcuts

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