repository

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2023 License: MPL-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
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"
)
View Source
const (
	MavenVersionPolicyRelease  MavenVersionPolicy = "RELEASE"
	MavenVersionPolicySnapshot MavenVersionPolicy = "SNAPSHOT"
	MavenVersionPolicyMixed    MavenVersionPolicy = "MIXED"

	MavenLayoutPolicyStrict     MavenLayoutPolicy = "STRICT"
	MavenLayoutPolicyPermissive MavenLayoutPolicy = "PERMISSIVE"

	MavenContentDispositionInline     MavenContentDisposition = "INLINE"
	MavenContentDispositionAttachment MavenContentDisposition = "ATTACHMENT"
)

Variables

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 BowerGroupRepository struct {
	Name    string `json:"name"`
	Online  bool   `json:"online"`
	Group   `json:"group"`
	Storage `json:"storage"`
}

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 DockerHostedRepository struct {
	Name    string        `json:"name"`
	Online  bool          `json:"online"`
	Storage HostedStorage `json:"storage"`
	Docker  `json:"docker"`

	*Cleanup   `json:"cleanup,omitempty"`
	*Component `json:"component,omitempty"`
}

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 GoGroupRepository struct {
	Name    string `json:"name"`
	Online  bool   `json:"online"`
	Group   `json:"group"`
	Storage `json:"storage"`
}

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 MavenContentDisposition

type MavenContentDisposition string

Content Disposition

type MavenGroupRepository

type MavenGroupRepository struct {
	Name   string `json:"name"`
	Online bool   `json:"online"`

	Group   `json:"group"`
	Storage `json:"storage"`
}

type MavenHostedRepository

type MavenHostedRepository struct {
	Name    string        `json:"name"`
	Online  bool          `json:"online"`
	Storage HostedStorage `json:"storage"`
	Maven   `json:"maven"`

	// Cleanup data
	*Cleanup `json:"cleanup,omitempty"`

	// Components
	*Component `json:"component,omitempty"`
}

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 Npm

type Npm struct {
	// Remove Non-Cataloged Versions
	RemoveNonCataloged bool `json:"removeNonCataloged"`
	// Remove Quarantined Versions
	RemoveQuarantined bool `json:"removeQuarantined"`
}

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 NugetGroupRepository struct {
	Name    string `json:"name"`
	Online  bool   `json:"online"`
	Group   `json:"group"`
	Storage `json:"storage"`
}

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 PypiGroupRepository struct {
	Name    string `json:"name"`
	Online  bool   `json:"online"`
	Group   `json:"group"`
	Storage `json:"storage"`
}

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 RGroupRepository struct {
	Name    string `json:"name"`
	Online  bool   `json:"online"`
	Group   `json:"group"`
	Storage `json:"storage"`
}

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 RawGroupRepository struct {
	Name   string `json:"name"`
	Online bool   `json:"online"`

	Group   `json:"group"`
	Storage `json:"storage"`

	*Raw `json:"raw,omitempty"`
}

type RawHostedRepository

type RawHostedRepository struct {
	Name    string        `json:"name"`
	Online  bool          `json:"online"`
	Storage HostedStorage `json:"storage"`

	*Cleanup   `json:"cleanup,omitempty"`
	*Component `json:"component,omitempty"`
	*Raw       `json:"raw,omitempty"`
}

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 RepositoryInfo struct {
	Name   string `json:"name"`
	Format string `json:"format"`
	Type   string `json:"type"`
	URL    string `json:"url"`
}

type RubyGemsGroupRepository

type RubyGemsGroupRepository struct {
	Name    string `json:"name"`
	Online  bool   `json:"online"`
	Group   `json:"group"`
	Storage `json:"storage"`
}

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 YumHostedRepository struct {
	Name    string        `json:"name"`
	Online  bool          `json:"online"`
	Storage HostedStorage `json:"storage"`
	Yum     `json:"yum"`

	*Cleanup   `json:"cleanup,omitempty"`
	*Component `json:"component,omitempty"`
}

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

type YumSigning

type YumSigning struct {
	// PGP signing key pair (armored private key e.g. gpg --export-secret-key --armor)
	Keypair *string `json:"keypair,omitempty"`
	// Passphrase to access PGP signing key
	Passphrase *string `json:"passphrase,omitempty"`
}

Jump to

Keyboard shortcuts

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