Documentation ¶
Index ¶
- Constants
- Variables
- type AptHosted
- type AptHostedRepository
- type AptProxy
- type AptProxyRepository
- type AptSigning
- type Bower
- type BowerGroupRepository
- type BowerHostedRepository
- type BowerProxyRepository
- type Cleanup
- type CocoapodsProxyRepository
- type Component
- type ConanProxyRepository
- type CondaProxyRepository
- type Docker
- type DockerGroupRepository
- type DockerHostedRepository
- type DockerProxy
- type DockerProxyIndexType
- type DockerProxyRepository
- type GitLfsHostedRepository
- type GoGroupRepository
- type GoProxyRepository
- type Group
- type GroupDeploy
- type HTTPClient
- type HTTPClientAuthentication
- type HTTPClientAuthenticationType
- type HTTPClientAuthenticationWithPreemptive
- type HTTPClientConnection
- type HTTPClientWithPreemptiveAuth
- type HelmHostedRepository
- type HelmProxyRepository
- type HostedStorage
- type LegacyRepository
- type Maven
- type MavenContentDisposition
- type MavenGroupRepository
- type MavenHostedRepository
- type MavenLayoutPolicy
- type MavenProxyRepository
- type MavenVersionPolicy
- type NegativeCache
- type Npm
- type NpmGroupRepository
- type NpmHostedRepository
- type NpmProxyRepository
- type NugetGroupRepository
- type NugetHostedRepository
- type NugetProxy
- type NugetProxyRepository
- type NugetVersion
- type P2ProxyRepository
- type Proxy
- type PypiGroupRepository
- type PypiHostedRepository
- type PypiProxyRepository
- type RGroupRepository
- type RHostedRepository
- type RProxyRepository
- type Raw
- type RawContentDisposition
- type RawGroupRepository
- type RawHostedRepository
- type RawProxyRepository
- type RepositoryInfo
- type RubyGemsGroupRepository
- type RubyGemsHostedRepository
- type RubyGemsProxyRepository
- type Storage
- type StorageWritePolicy
- type Yum
- type YumDeployPolicy
- type YumGroupRepository
- type YumHostedRepository
- type YumProxyRepository
- type YumSigning
Constants ¶
const ( RepositoryFormatApt = "apt" RepositoryFormatBower = "bower" RepositoryFormatConan = "conan" RepositoryFormatDocker = "docker" RepositoryFormatGitLFS = "gitlfs" RepositoryFormatGo = "go" RepositoryFormatHelm = "helm" RepositoryFormatMaven2 = "maven2" RepositoryFormatNPM = "npm" RepositoryFormatNuget = "nuget" RepositoryFormatP2 = "p2" RepositoryFormatPyPi = "pypi" RepositoryFormatRAW = "raw" RepositoryFormatRuby = "rubygems" RepositoryFormatYum = "yum" RepositoryTypeGroup = "group" RepositoryTypeHosted = "hosted" RepositoryTypeProxy = "proxy" )
const ( MavenVersionPolicyRelease MavenVersionPolicy = "RELEASE" MavenVersionPolicySnapshot MavenVersionPolicy = "SNAPSHOT" MavenVersionPolicyMixed MavenVersionPolicy = "MIXED" MavenLayoutPolicyStrict MavenLayoutPolicy = "STRICT" MavenLayoutPolicyPermissive MavenLayoutPolicy = "PERMISSIVE" MavenContentDispositionInline MavenContentDisposition = "INLINE" MavenContentDispositionAttachment MavenContentDisposition = "ATTACHMENT" )
Variables ¶
var ( // RepositoryFormats contains a list of all supported repository formats RepositoryFormats = []string{ RepositoryFormatApt, RepositoryFormatBower, RepositoryFormatConan, RepositoryFormatDocker, RepositoryFormatGitLFS, RepositoryFormatGo, RepositoryFormatHelm, RepositoryFormatMaven2, RepositoryFormatNPM, RepositoryFormatNuget, RepositoryFormatP2, RepositoryFormatPyPi, RepositoryFormatRAW, RepositoryFormatRuby, RepositoryFormatYum, } // RepositoryTypes contains a list of all supported repository types RepositoryTypes = []string{ RepositoryTypeGroup, RepositoryTypeHosted, RepositoryTypeProxy, } )
Functions ¶
This section is empty.
Types ¶
type AptHosted ¶
type AptHosted struct { // Distribution to fetch Distribution string `json:"distribution"` }
Apt contains data of hosted repositories of format Apt
type AptHostedRepository ¶
type AptHostedRepository struct { Name string `json:"name"` Online bool `json:"online"` Storage HostedStorage `json:"storage"` Apt AptHosted `json:"apt"` AptSigning `json:"aptSigning"` *Cleanup `json:"cleanup,omitempty"` *Component `json:"component,omitempty"` }
type AptProxy ¶
type AptProxy struct { // Distribution to fetch Distribution string `json:"distribution"` // Whether this repository is flat Flat bool `json:"flat"` }
Apt contains data of proxy repositories of format Apt
type AptProxyRepository ¶
type AptProxyRepository struct { Name string `json:"name"` Online bool `json:"online"` Storage `json:"storage"` Proxy `json:"proxy"` NegativeCache `json:"negativeCache"` HTTPClient `json:"httpClient"` Apt AptProxy `json:"apt"` // The name of the routing rule assigned to this repository RoutingRule *string `json:"routingRule,omitempty"` // The name of the routing rule assigned to this repository RoutingRuleName *string `json:"routingRuleName,omitempty"` *Cleanup `json:"cleanup,omitempty"` }
type AptSigning ¶
type AptSigning struct { // PGP signing key pair (armored private key e.g. gpg --export-secret-key --armor) Keypair string `json:"keypair"` // Passphrase to access PGP signing key Passphrase *string `json:"passphrase,omitempty"` }
AptSigning contains signing data of hosted repositores of format Apt
type Bower ¶
type Bower struct { // Whether to force Bower to retrieve packages through this proxy repository RewritePackageUrls bool `json:"rewritePackageUrls"` }
type BowerGroupRepository ¶
type BowerHostedRepository ¶
type BowerHostedRepository struct { Name string `json:"name"` Online bool `json:"online"` Storage HostedStorage `json:"storage"` *Cleanup `json:"cleanup,omitempty"` *Component `json:"component,omitempty"` }
type BowerProxyRepository ¶
type BowerProxyRepository struct { Name string `json:"name"` Online bool `json:"online"` Storage `json:"storage"` Proxy `json:"proxy"` NegativeCache `json:"negativeCache"` HTTPClient `json:"httpClient"` // The name of the routing rule assigned to this repository RoutingRule *string `json:"routingRule,omitempty"` // The name of the routing rule assigned to this repository RoutingRuleName *string `json:"routingRuleName,omitempty"` *Cleanup `json:"cleanup,omitempty"` Bower `json:"bower"` }
type Cleanup ¶
type Cleanup struct { // Components that match any of the applied policies will be deleted PolicyNames []string `json:"policyNames"` }
Cleanup ...
type CocoapodsProxyRepository ¶
type CocoapodsProxyRepository struct { Name string `json:"name"` Online bool `json:"online"` Storage `json:"storage"` Proxy `json:"proxy"` NegativeCache `json:"negativeCache"` HTTPClient `json:"httpClient"` // The name of the routing rule assigned to this repository RoutingRule *string `json:"routingRule,omitempty"` // The name of the routing rule assigned to this repository RoutingRuleName *string `json:"routingRuleName,omitempty"` *Cleanup `json:"cleanup,omitempty"` }
type Component ¶
type Component struct { // Components in this repository count as proprietary for namespace conflict attacks (requires Sonatype Nexus Firewall) ProprietaryComponents bool `json:"proprietaryComponents"` }
Component ...
type ConanProxyRepository ¶
type ConanProxyRepository struct { Name string `json:"name"` Online bool `json:"online"` Storage `json:"storage"` Proxy `json:"proxy"` NegativeCache `json:"negativeCache"` HTTPClient `json:"httpClient"` // The name of the routing rule assigned to this repository RoutingRule *string `json:"routingRule,omitempty"` // The name of the routing rule assigned to this repository RoutingRuleName *string `json:"routingRuleName,omitempty"` *Cleanup `json:"cleanup,omitempty"` }
type CondaProxyRepository ¶
type CondaProxyRepository struct { Name string `json:"name"` Online bool `json:"online"` Storage `json:"storage"` Proxy `json:"proxy"` NegativeCache `json:"negativeCache"` HTTPClient `json:"httpClient"` // The name of the routing rule assigned to this repository RoutingRule *string `json:"routingRule,omitempty"` // The name of the routing rule assigned to this repository RoutingRuleName *string `json:"routingRuleName,omitempty"` *Cleanup `json:"cleanup,omitempty"` }
type Docker ¶
type Docker struct { // Whether to force authentication (Docker Bearer Token Realm required if false) ForceBasicAuth bool `json:"forceBasicAuth"` // Create an HTTP connector at specified port HTTPPort *int `json:"httpPort,omitempty"` // Create an HTTPS connector at specified port HTTPSPort *int `json:"httpsPort,omitempty"` // Whether to allow clients to use the V1 API to interact with this repository V1Enabled bool `json:"v1Enabled"` }
Docker contains data of a Docker Repositoriy
type DockerGroupRepository ¶
type DockerGroupRepository struct { Name string `json:"name"` Online bool `json:"online"` Group GroupDeploy `json:"group"` Storage `json:"storage"` Docker `json:"docker"` }
type DockerHostedRepository ¶
type DockerProxy ¶
type DockerProxy struct { // Type of Docker Index IndexType DockerProxyIndexType `json:"indexType"` // Url of Docker Index to use IndexURL *string `json:"indexUrl,omitempty"` }
DockerProxy contains data of a Docker Proxy Repository
type DockerProxyIndexType ¶
type DockerProxyIndexType string
const ( DockerProxyIndexTypeHub DockerProxyIndexType = "HUB" DockerProxyIndexTypeRegistry DockerProxyIndexType = "REGISTRY" DockerProxyIndexTypeCustom DockerProxyIndexType = "CUSTOM" )
type DockerProxyRepository ¶
type DockerProxyRepository struct { Name string `json:"name"` Online bool `json:"online"` Storage `json:"storage"` Proxy `json:"proxy"` NegativeCache `json:"negativeCache"` HTTPClient `json:"httpClient"` Docker `json:"docker"` DockerProxy `json:"dockerProxy"` // The name of the routing rule assigned to this repository RoutingRule *string `json:"routingRule,omitempty"` // The name of the routing rule assigned to this repository RoutingRuleName *string `json:"routingRuleName,omitempty"` *Cleanup `json:"cleanup,omitempty"` }
type GitLfsHostedRepository ¶
type GitLfsHostedRepository struct { Name string `json:"name"` Online bool `json:"online"` Storage HostedStorage `json:"storage"` *Cleanup `json:"cleanup,omitempty"` *Component `json:"component,omitempty"` }
type GoGroupRepository ¶
type GoProxyRepository ¶
type GoProxyRepository struct { Name string `json:"name"` Online bool `json:"online"` Storage `json:"storage"` Proxy `json:"proxy"` NegativeCache `json:"negativeCache"` HTTPClient `json:"httpClient"` // The name of the routing rule assigned to this repository RoutingRule *string `json:"routingRule,omitempty"` // The name of the routing rule assigned to this repository RoutingRuleName *string `json:"routingRuleName,omitempty"` *Cleanup `json:"cleanup,omitempty"` }
type Group ¶
type Group struct {
MemberNames []string `json:"memberNames,omitempty"`
}
Group contains repository group configuration data
type GroupDeploy ¶
type GroupDeploy struct { // Member repositories' names MemberNames []string `json:"memberNames,omitempty"` // Pro-only: This field is for the Group Deployment feature available in NXRM Pro. WritableMember *string `json:"writableMember,omitempty"` }
GroupDeploy
type HTTPClient ¶
type HTTPClient struct { Authentication *HTTPClientAuthentication `json:"authentication,omitempty"` AutoBlock bool `json:"autoBlock"` Blocked bool `json:"blocked"` Connection *HTTPClientConnection `json:"connection,omitempty"` }
HTTPClient ...
type HTTPClientAuthentication ¶
type HTTPClientAuthentication struct { NTLMDomain string `json:"ntlmDomain,omitempty"` NTLMHost string `json:"ntlmHost,omitempty"` Password string `json:"password,omitempty"` Type HTTPClientAuthenticationType `json:"type"` Username string `json:"username,omitempty"` }
HTTPClientAuthentication ...
type HTTPClientAuthenticationType ¶
type HTTPClientAuthenticationType string
What type of artifacts does this repository store?
const ( HTTPClientAuthenticationTypeUsername HTTPClientAuthenticationType = "username" HTTPClientAuthenticationTypeNtlm HTTPClientAuthenticationType = "ntlm" )
type HTTPClientAuthenticationWithPreemptive ¶
type HTTPClientAuthenticationWithPreemptive struct { NTLMDomain string `json:"ntlmDomain,omitempty"` NTLMHost string `json:"ntlmHost,omitempty"` Password string `json:"password,omitempty"` Type HTTPClientAuthenticationType `json:"type"` Username string `json:"username,omitempty"` // Whether to use pre-emptive authentication. Use with caution. Defaults to false. Preemptive *bool `json:"preemptive,omitempty"` }
HTTPClientAuthenticationWithPreemptive ...
type HTTPClientConnection ¶
type HTTPClientConnection struct { // Whether to enable redirects to the same location (may be required by some servers) EnableCircularRedirects *bool `json:"enableCircularRedirects,omitempty"` // Whether to allow cookies to be stored and used EnableCookies *bool `json:"enableCookies,omitempty"` // Total retries if the initial connection attempt suffers a timeout Retries *int `json:"retries,omitempty"` // Seconds to wait for activity before stopping and retrying the connection", Timeout *int `json:"timeout,omitempty"` // Custom fragment to append to User-Agent header in HTTP requests UserAgentSuffix string `json:"userAgentSuffix,omitempty"` // Use certificates stored in the Nexus Repository Manager truststore to connect to external systems UseTrustStore *bool `json:"useTrustStore,omitempty"` }
HTTPClientConnection ...
type HTTPClientWithPreemptiveAuth ¶
type HTTPClientWithPreemptiveAuth struct { // Whether to auto-block outbound connections if remote peer is detected as unreachable/unresponsive AutoBlock bool `json:"autoBlock"` // Whether to block outbound connections on the repository Blocked bool `json:"blocked"` Authentication *HTTPClientAuthenticationWithPreemptive `json:"authentication,omitempty"` Connection *HTTPClientConnection `json:"connection,omitempty"` }
HTTPClientWithPreemptiveAuth ...
type HelmHostedRepository ¶
type HelmHostedRepository struct { Name string `json:"name"` Online bool `json:"online"` Storage HostedStorage `json:"storage"` *Cleanup `json:"cleanup,omitempty"` *Component `json:"component,omitempty"` }
type HelmProxyRepository ¶
type HelmProxyRepository struct { Name string `json:"name"` Online bool `json:"online"` Storage `json:"storage"` Proxy `json:"proxy"` NegativeCache `json:"negativeCache"` HTTPClient `json:"httpClient"` // The name of the routing rule assigned to this repository RoutingRule *string `json:"routingRule,omitempty"` // The name of the routing rule assigned to this repository RoutingRuleName *string `json:"routingRuleName,omitempty"` *Cleanup `json:"cleanup,omitempty"` }
type HostedStorage ¶
type HostedStorage struct { // Blob store used to store repository contents BlobStoreName string `json:"blobStoreName"` // StrictContentTypeValidation: Whether to validate uploaded content's MIME type appropriate for the repository format StrictContentTypeValidation bool `json:"strictContentTypeValidation"` // WritePolicy controls if deployments of and updates to assets are allowed WritePolicy *StorageWritePolicy `json:"writePolicy,omitempty"` }
HostedStorage contains repository storage for hosted
type LegacyRepository ¶
type LegacyRepository struct { Format string `json:"format"` Name string `json:"name"` Online bool `json:"online"` RoutingRuleName *string `json:"routingRuleName,omitempty"` Type string `json:"type"` // Apt data Apt *AptProxy `json:"apt,omitempty"` *AptSigning `json:"aptSigning,omitempty"` // Bower data *Bower `json:"bower,omitempty"` // Cleanup data *Cleanup `json:"cleanup,omitempty"` // Docker data *Docker `json:"docker,omitempty"` *DockerProxy `json:"dockerProxy,omitempty"` // Group data *Group `json:"group,omitempty"` // HTTPClient *HTTPClient `json:"httpClient,omitempty"` // Maven data *Maven `json:"maven,omitempty"` // Cache data for proxy Repository *NegativeCache `json:"negativeCache,omitempty"` // Nuget Proxy data *NugetProxy `json:"nugetProxy,omitempty"` // Proxy data *Proxy `json:"proxy,omitempty"` // Storage data Storage *HostedStorage `json:"storage,omitempty"` // Yum data *Yum `json:"yum,omitempty"` // Components *Component `json:"component,omitempty"` }
LegacyRepository ...
type Maven ¶
type Maven struct { VersionPolicy MavenVersionPolicy `json:"versionPolicy"` LayoutPolicy MavenLayoutPolicy `json:"layoutPolicy"` ContentDisposition *MavenContentDisposition `json:"contentDisposition,omitempty"` }
Maven contains additional data of maven repository
type MavenGroupRepository ¶
type MavenHostedRepository ¶
type MavenLayoutPolicy ¶
type MavenLayoutPolicy string
Validate that all paths are maven artifact or metadata paths
type MavenProxyRepository ¶
type MavenProxyRepository struct { Name string `json:"name"` Online bool `json:"online"` Storage `json:"storage"` Maven `json:"maven"` Proxy `json:"proxy"` NegativeCache `json:"negativeCache"` HTTPClient HTTPClientWithPreemptiveAuth `json:"httpClient"` // The name of the routing rule assigned to this repository RoutingRule *string `json:"routingRule,omitempty"` // The name of the routing rule assigned to this repository RoutingRuleName *string `json:"routingRuleName,omitempty"` *Cleanup `json:"cleanup,omitempty"` }
type MavenVersionPolicy ¶
type MavenVersionPolicy string
What type of artifacts does this repository store?
type NegativeCache ¶
type NegativeCache struct { // Whether to cache responses for content not present in the proxied repository Enabled bool `json:"enabled"` // How long to cache the fact that a file was not found in the repository (in minutes) TTL int `json:"timeToLive"` }
NegativeCache ...
type NpmGroupRepository ¶
type NpmGroupRepository struct { Name string `json:"name"` Online bool `json:"online"` Group GroupDeploy `json:"group"` Storage `json:"storage"` }
type NpmHostedRepository ¶
type NpmHostedRepository struct { Name string `json:"name"` Online bool `json:"online"` Storage HostedStorage `json:"storage"` *Cleanup `json:"cleanup,omitempty"` *Component `json:"component,omitempty"` }
type NpmProxyRepository ¶
type NpmProxyRepository struct { Name string `json:"name"` Online bool `json:"online"` Storage `json:"storage"` Proxy `json:"proxy"` NegativeCache `json:"negativeCache"` HTTPClient `json:"httpClient"` // The name of the routing rule assigned to this repository RoutingRule *string `json:"routingRule,omitempty"` // The name of the routing rule assigned to this repository RoutingRuleName *string `json:"routingRuleName,omitempty"` *Cleanup `json:"cleanup,omitempty"` *Npm `json:"npm,omitempty"` }
type NugetGroupRepository ¶
type NugetHostedRepository ¶
type NugetHostedRepository struct { Name string `json:"name"` Online bool `json:"online"` Storage HostedStorage `json:"storage"` *Cleanup `json:"cleanup,omitempty"` *Component `json:"component,omitempty"` }
type NugetProxy ¶
type NugetProxy struct { // How long to cache query results from the proxied repository (in seconds) QueryCacheItemMaxAge int `json:"queryCacheItemMaxAge"` // NugetVersion is the used Nuget protocol version // Possible values: "V3" or "V2" NugetVersion NugetVersion `json:"nugetVersion"` }
NugetProxy contains data specific to proxy repositories of format Nuget
type NugetProxyRepository ¶
type NugetProxyRepository struct { Name string `json:"name"` Online bool `json:"online"` Storage `json:"storage"` Proxy `json:"proxy"` NegativeCache `json:"negativeCache"` HTTPClient `json:"httpClient"` NugetProxy `json:"nugetProxy"` // The name of the routing rule assigned to this repository RoutingRule *string `json:"routingRule,omitempty"` // The name of the routing rule assigned to this repository RoutingRuleName *string `json:"routingRuleName,omitempty"` *Cleanup `json:"cleanup,omitempty"` }
type NugetVersion ¶
type NugetVersion string
const ( NugetVersion2 NugetVersion = "V2" NugetVersion3 NugetVersion = "V3" )
type P2ProxyRepository ¶
type P2ProxyRepository struct { Name string `json:"name"` Online bool `json:"online"` Storage `json:"storage"` Proxy `json:"proxy"` NegativeCache `json:"negativeCache"` HTTPClient `json:"httpClient"` // The name of the routing rule assigned to this repository RoutingRule *string `json:"routingRule,omitempty"` // The name of the routing rule assigned to this repository RoutingRuleName *string `json:"routingRuleName,omitempty"` *Cleanup `json:"cleanup,omitempty"` }
type Proxy ¶
type Proxy struct { // How long to cache artifacts before rechecking the remote repository (in minutes) ContentMaxAge int `json:"contentMaxAge"` // How long to cache metadata before rechecking the remote repository (in minutes) MetadataMaxAge int `json:"metadataMaxAge"` // Location of the remote repository being proxied RemoteURL string `json:"remoteUrl"` }
Proxy contains Proxy Repository data
type PypiGroupRepository ¶
type PypiHostedRepository ¶
type PypiHostedRepository struct { Name string `json:"name"` Online bool `json:"online"` Storage HostedStorage `json:"storage"` *Cleanup `json:"cleanup,omitempty"` *Component `json:"component,omitempty"` }
type PypiProxyRepository ¶
type PypiProxyRepository struct { Name string `json:"name"` Online bool `json:"online"` Storage `json:"storage"` Proxy `json:"proxy"` NegativeCache `json:"negativeCache"` HTTPClient `json:"httpClient"` RoutingRule *string `json:"routingRule,omitempty"` RoutingRuleName *string `json:"routingRuleName,omitempty"` *Cleanup `json:"cleanup,omitempty"` }
type RGroupRepository ¶
type RHostedRepository ¶
type RHostedRepository struct { Name string `json:"name"` Online bool `json:"online"` Storage HostedStorage `json:"storage"` *Cleanup `json:"cleanup,omitempty"` *Component `json:"component,omitempty"` }
type RProxyRepository ¶
type RProxyRepository struct { Name string `json:"name"` Online bool `json:"online"` Storage `json:"storage"` Proxy `json:"proxy"` NegativeCache `json:"negativeCache"` HTTPClient `json:"httpClient"` // The name of the routing rule assigned to this repository RoutingRule *string `json:"routingRule,omitempty"` // The name of the routing rule assigned to this repository RoutingRuleName *string `json:"routingRuleName,omitempty"` *Cleanup `json:"cleanup,omitempty"` }
type Raw ¶
type Raw struct {
ContentDisposition *RawContentDisposition `json:"contentDisposition,omitempty"`
}
type RawContentDisposition ¶
type RawContentDisposition string
Content Disposition
const ( RawContentDispositionInline RawContentDisposition = "INLINE" RawContentDispositionAttachment RawContentDisposition = "ATTACHMENT" )
type RawGroupRepository ¶
type RawHostedRepository ¶
type RawProxyRepository ¶
type RawProxyRepository struct { Name string `json:"name"` Online bool `json:"online"` Storage `json:"storage"` Proxy `json:"proxy"` NegativeCache `json:"negativeCache"` HTTPClient `json:"httpClient"` // The name of the routing rule assigned to this repository RoutingRule *string `json:"routingRule,omitempty"` // The name of the routing rule assigned to this repository RoutingRuleName *string `json:"routingRuleName,omitempty"` *Cleanup `json:"cleanup,omitempty"` *Raw `json:"raw,omitempty"` }
type RepositoryInfo ¶
type RubyGemsGroupRepository ¶
type RubyGemsHostedRepository ¶
type RubyGemsHostedRepository struct { Name string `json:"name"` Online bool `json:"online"` Storage HostedStorage `json:"storage"` *Cleanup `json:"cleanup,omitempty"` *Component `json:"component,omitempty"` }
type RubyGemsProxyRepository ¶
type RubyGemsProxyRepository struct { Name string `json:"name"` Online bool `json:"online"` Storage `json:"storage"` Proxy `json:"proxy"` NegativeCache `json:"negativeCache"` HTTPClient `json:"httpClient"` // The name of the routing rule assigned to this repository RoutingRule *string `json:"routingRule,omitempty"` // The name of the routing rule assigned to this repository RoutingRuleName *string `json:"routingRuleName,omitempty"` *Cleanup `json:"cleanup,omitempty"` }
type Storage ¶
type Storage struct { // Blob store used to store repository contents BlobStoreName string `json:"blobStoreName"` // StrictContentTypeValidation: Whether to validate uploaded content's MIME type appropriate for the repository format StrictContentTypeValidation bool `json:"strictContentTypeValidation"` }
Storage contains repository storage
type StorageWritePolicy ¶
type StorageWritePolicy string
const ( StorageWritePolicyAllow StorageWritePolicy = "ALLOW" StorageWritePolicyAllowOnce StorageWritePolicy = "ALLOW_ONCE" StorageWritePolicyAllowDeny StorageWritePolicy = "DENY" )
type Yum ¶
type Yum struct { RepodataDepth int `json:"repodataDepth"` DeployPolicy *YumDeployPolicy `json:"deployPolicy,omitempty"` }
Yum contains data of hosted repositories of format Yum
type YumDeployPolicy ¶
type YumDeployPolicy string
const ( YumDeployPolicyPermissive YumDeployPolicy = "PERMISSIVE" YumDeployPolicyStrict YumDeployPolicy = "STRICT" )
type YumGroupRepository ¶
type YumGroupRepository struct { Name string `json:"name"` Online bool `json:"online"` Group `json:"group"` Storage `json:"storage"` *YumSigning `json:"yumSigning,omitempty"` }
type YumHostedRepository ¶
type YumProxyRepository ¶
type YumProxyRepository struct { Name string `json:"name"` Online bool `json:"online"` Storage `json:"storage"` Proxy `json:"proxy"` NegativeCache `json:"negativeCache"` HTTPClient `json:"httpClient"` // The name of the routing rule assigned to this repository RoutingRule *string `json:"routingRule,omitempty"` // The name of the routing rule assigned to this repository RoutingRuleName *string `json:"routingRuleName,omitempty"` *Cleanup `json:"cleanup,omitempty"` *YumSigning `json:"yumSigning,omitempty"` }