replication

package
v11.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 3, 2024 License: Apache-2.0 Imports: 32 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 added in v11.8.0

func NewLocalRepositoryMultiReplicationResource() resource.Resource

func NewLocalRepositorySingleReplicationResource added in v11.8.0

func NewLocalRepositorySingleReplicationResource() resource.Resource

func NewRemoteRepositoryReplicationResource added in v11.8.0

func NewRemoteRepositoryReplicationResource() resource.Resource

func ResourceArtifactoryPullReplication

func ResourceArtifactoryPullReplication() *schema.Resource

func ResourceArtifactoryPushReplication

func ResourceArtifactoryPushReplication() *schema.Resource

func ResourceArtifactoryReplicationConfig

func ResourceArtifactoryReplicationConfig() *schema.Resource

func ResourceArtifactorySingleReplicationConfig

func ResourceArtifactorySingleReplicationConfig() *schema.Resource

Types

type GetPushReplication

type GetPushReplication struct {
	RepoKey                string               `json:"-"`
	CronExp                string               `json:"cronExp,omitempty"`
	EnableEventReplication bool                 `json:"enableEventReplication,omitempty"`
	Replications           []getReplicationBody `json:"replications,omitempty"`
}

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 (*LocalRepositoryMultiReplicationResource) Create added in v11.8.0

func (*LocalRepositoryMultiReplicationResource) Delete added in v11.8.0

func (*LocalRepositoryMultiReplicationResource) ImportState added in v11.8.0

ImportState imports the resource into the Terraform state.

func (*LocalRepositoryMultiReplicationResource) Metadata added in v11.8.0

func (*LocalRepositoryMultiReplicationResource) Read added in v11.8.0

func (*LocalRepositoryMultiReplicationResource) Schema added in v11.8.0

func (*LocalRepositoryMultiReplicationResource) Update added in v11.8.0

type LocalRepositoryMultiReplicationResourceModel added in v11.8.0

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 added in v11.8.0

type LocalRepositorySingleReplicationResource struct {
	ProviderData util.ProviderMetadata
	TypeName     string
}

func (*LocalRepositorySingleReplicationResource) Configure added in v11.8.0

func (*LocalRepositorySingleReplicationResource) Create added in v11.8.0

func (*LocalRepositorySingleReplicationResource) Delete added in v11.8.0

func (*LocalRepositorySingleReplicationResource) ImportState added in v11.8.0

ImportState imports the resource into the Terraform state.

func (*LocalRepositorySingleReplicationResource) Metadata added in v11.8.0

func (*LocalRepositorySingleReplicationResource) Read added in v11.8.0

func (*LocalRepositorySingleReplicationResource) Schema added in v11.8.0

func (*LocalRepositorySingleReplicationResource) Update added in v11.8.0

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 (*RemoteRepositoryReplicationResource) Create added in v11.8.0

func (*RemoteRepositoryReplicationResource) Delete added in v11.8.0

func (*RemoteRepositoryReplicationResource) ImportState added in v11.8.0

ImportState imports the resource into the Terraform state.

func (*RemoteRepositoryReplicationResource) Metadata added in v11.8.0

func (*RemoteRepositoryReplicationResource) Read added in v11.8.0

func (*RemoteRepositoryReplicationResource) Schema added in v11.8.0

func (*RemoteRepositoryReplicationResource) Update added in v11.8.0

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

type UpdatePushReplication struct {
	RepoKey                string                  `json:"-"`
	CronExp                string                  `json:"cronExp,omitempty"`
	EnableEventReplication bool                    `json:"enableEventReplication,omitempty"`
	Replications           []updateReplicationBody `json:"replications,omitempty"`
}

Jump to

Keyboard shortcuts

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