repository

package
v0.0.0-...-aaff5d1 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetValue

func GetValue[T any](ptr *T) T

定义一个泛型函数,接受任何类型的指针并返回其值

func NewRepositoryAptProxyDatasource

func NewRepositoryAptProxyDatasource() datasource.DataSource

Types

type CleanupModel

type CleanupModel struct {
	PolicyNames []types.String `tfsdk:"policy_names"`
}

type ComponentModel

type ComponentModel struct {
	ProprietaryComponents types.Bool `tfsdk:"proprietary_components"`
}

type DataSourceDocker

type DataSourceDocker struct {
	ForceBasicAuth types.Bool  `tfsdk:"force_basic_auth"`
	HttpPort       types.Int64 `tfsdk:"http_port"`
	HttpsPort      types.Int64 `tfsdk:"https_port"`
	V1Enabled      types.Bool  `tfsdk:"v1_enabled"`
}

type DockerModel

type DockerModel struct {
	ForceBasicAuth types.Bool   `tfsdk:"force_basic_auth"`
	HttpPort       types.Int64  `tfsdk:"http_port"`
	HttpsPort      types.Int64  `tfsdk:"https_port"`
	V1Enabled      types.Bool   `tfsdk:"v1_enabled"`
	Subdomain      types.String `tfsdk:"subdomain"`
}

type HttpClientAuthenticationModel

type HttpClientAuthenticationModel struct {
	NtlmDomain types.String `tfsdk:"ntlm_domain"`
	NtlmHost   types.String `tfsdk:"ntlm_host"`
	Password   types.String `tfsdk:"password"`
	Type       types.String `tfsdk:"type"`
	Username   types.String `tfsdk:"username"`
}

type HttpClientConnectionModel

type HttpClientConnectionModel struct {
	EnableCircularRedirects types.Bool   `tfsdk:"enable_circular_redirects"`
	EnableCookies           types.Bool   `tfsdk:"enable_cookies"`
	Retries                 types.Int64  `tfsdk:"retries"`
	Timeout                 types.Int64  `tfsdk:"timeout"`
	UseTrustStore           types.Bool   `tfsdk:"use_trust_store"`
	UserAgentSuffix         types.String `tfsdk:"user_agent_suffix"`
}

type HttpClientModel

type HttpClientModel struct {
	Authentication *HttpClientAuthenticationModel `tfsdk:"authentication"`
	AutoBlock      types.Bool                     `tfsdk:"auto_block"`
	Blocked        types.Bool                     `tfsdk:"blocked"`
	Connection     *HttpClientConnectionModel     `tfsdk:"connection"`
}

type NegativeCache

type NegativeCache struct {
	Enabled types.String `tfsdk:"enabled"`
	Ttl     types.Int64  `tfsdk:"ttl"`
}

type NegativeCacheModel

type NegativeCacheModel struct {
	Enabled types.Bool  `tfsdk:"enabled"`
	TTL     types.Int64 `tfsdk:"ttl"`
}

type ProxyModel

type ProxyModel struct {
	ContentMaxAge  types.Int64  `tfsdk:"content_max_age"`
	MetadataMaxAge types.Int64  `tfsdk:"metadata_max_age"`
	RemoteURL      types.String `tfsdk:"remote_url"`
}

type RepositoryAptHostedDatasource

type RepositoryAptHostedDatasource struct {
	// contains filtered or unexported fields
}

func (*RepositoryAptHostedDatasource) Configure

func (*RepositoryAptHostedDatasource) Metadata

func (*RepositoryAptHostedDatasource) Read

func (*RepositoryAptHostedDatasource) Schema

type RepositoryAptHostedSourceModel

type RepositoryAptHostedSourceModel struct {
	Id           types.String            `tfsdk:"id"`
	Name         types.String            `tfsdk:"name"`
	Online       types.Bool              `tfsdk:"online"`
	Cleanup      []*CleanupModel         `tfsdk:"cleanup"`
	Component    []*ComponentModel       `tfsdk:"component"`
	Storage      *StorageDataSourceModel `tfsdk:"storage"`
	Distribution types.String            `tfsdk:"distribution"`
	Signing      *SigningModel           `tfsdk:"signing"`
}

type RepositoryAptProxyDatasource

type RepositoryAptProxyDatasource struct {
	// contains filtered or unexported fields
}

func (*RepositoryAptProxyDatasource) Configure

func (*RepositoryAptProxyDatasource) Metadata

func (*RepositoryAptProxyDatasource) Read

func (*RepositoryAptProxyDatasource) Schema

type RepositoryAptProxySourceModel

type RepositoryAptProxySourceModel struct {
	Id      types.String    `tfsdk:"id"`
	Name    types.String    `tfsdk:"name"`
	Online  types.Bool      `tfsdk:"online"`
	Flat    types.Bool      `tfsdk:"flat"`
	Cleanup []*CleanupModel `tfsdk:"cleanup"`

	Storage      *StorageDataSourceModel `tfsdk:"storage"`
	Distribution types.String            `tfsdk:"distribution"`
	// Path                  types.String        `tfsdk:"path"`
	// BlobCount             types.Int64         `tfsdk:"blob_count"`
	// AvailableSpaceInBytes types.Int64 `tfsdk:"available_space_in_bytes"`
	// TotalSizeInBytes      types.Int64         `tfsdk:"total_size_in_bytes"`
	// SoftQuota             *SoftQuotaModel     `tfsdk:"soft_quota"`
	RoutingRule   types.String        `tfsdk:"routing_rule"`
	HttpClient    *HttpClientModel    `tfsdk:"http_client"`
	NegativeCache *NegativeCacheModel `tfsdk:"negative_cache"`
	Proxy         *ProxyModel         `tfsdk:"proxy"`
}

type RepositoryDockerHostedDatasource

type RepositoryDockerHostedDatasource struct {
	// contains filtered or unexported fields
}

func (*RepositoryDockerHostedDatasource) Configure

func (*RepositoryDockerHostedDatasource) Metadata

func (*RepositoryDockerHostedDatasource) Read

func (*RepositoryDockerHostedDatasource) Schema

type RepositoryDockerHostedSourceModel

type RepositoryDockerHostedSourceModel struct {
	Id        types.String            `tfsdk:"id"`
	Name      types.String            `tfsdk:"name"`
	Online    types.Bool              `tfsdk:"online"`
	Cleanup   CleanupModel            `tfsdk:"cleanup"`
	Component ComponentModel          `tfsdk:"component"`
	Storage   *StorageDataSourceModel `tfsdk:"storage"`
}

type RepositoryDockerProxyDatasource

type RepositoryDockerProxyDatasource struct {
	// contains filtered or unexported fields
}

func (*RepositoryDockerProxyDatasource) Configure

func (*RepositoryDockerProxyDatasource) Metadata

func (*RepositoryDockerProxyDatasource) Read

func (*RepositoryDockerProxyDatasource) Schema

type RepositoryDockerProxySourceModel

type RepositoryDockerProxySourceModel struct {
	Id            types.String            `tfsdk:"id"`
	Name          types.String            `tfsdk:"name"`
	Online        types.Bool              `tfsdk:"online"`
	Cleanup       CleanupModel            `tfsdk:"cleanup"`
	HttpClient    *HttpClientModel        `tfsdk:"http_client"`
	NegativeCache NegativeCache           `tfsdk:"negative_cache"`
	Proxy         *ProxyModel             `tfsdk:"proxy"`
	Component     ComponentModel          `tfsdk:"component"`
	RoutingRule   types.String            `tfsdk:"routing_rule"`
	Storage       *StorageDataSourceModel `tfsdk:"storage"`
}

type SigningModel

type SigningModel struct {
	Keypair    []types.String `tfsdk:"keypair"`
	Passphrase []types.String `tfsdk:"passphrase"`
}

type SoftQuotaModel

type SoftQuotaModel struct {
	Limit types.Int64  `tfsdk:"limit"`
	Type  types.String `tfsdk:"type"`
}

type StorageDataSourceModel

type StorageDataSourceModel struct {
	BlobStoreName               types.String `tfsdk:"blob_store_name"`
	StrictContentTypeValidation types.Bool   `tfsdk:"strict_content_type_validation"`
}

type StorageModel

type StorageModel struct {
	BlobStoreName               types.String `tfsdk:"blob_store_name"`
	StrictContentTypeValidation types.Bool   `tfsdk:"strict_content_type_validation"`
	WritePolicy                 types.String `tfsdk:"write_policy"`
}

Jump to

Keyboard shortcuts

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