services

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2020 License: Apache-2.0 Imports: 11 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateReleaseBundleParams

type CreateReleaseBundleParams struct {
	distrbutionServiceUtils.ReleaseBundleParams
}

func NewCreateReleaseBundleParams

func NewCreateReleaseBundleParams(name, version string) CreateReleaseBundleParams

type CreateReleaseBundleService

type CreateReleaseBundleService struct {
	UpdateReleaseBundleService
}

func (*CreateReleaseBundleService) CreateReleaseBundle

func (cb *CreateReleaseBundleService) CreateReleaseBundle(createBundleParams CreateReleaseBundleParams) error

func (*CreateReleaseBundleService) GetDistDetails

func (cb *CreateReleaseBundleService) GetDistDetails() auth.ServiceDetails

type DeleteDistributionParams

type DeleteDistributionParams struct {
	DistributionParams
	DeleteFromDistribution bool
}

func NewDeleteReleaseBundleParams

func NewDeleteReleaseBundleParams(name, version string) DeleteDistributionParams

type DeleteLocalReleaseBundleService

type DeleteLocalReleaseBundleService struct {
	DeleteReleaseBundleService
}

Delete distributable release bundle from the distribution service.

func (*DeleteLocalReleaseBundleService) DeleteDistribution

func (dlr *DeleteLocalReleaseBundleService) DeleteDistribution(deleteDistributionParams DeleteDistributionParams) error

func (*DeleteLocalReleaseBundleService) GetDistDetails

func (dlr *DeleteLocalReleaseBundleService) GetDistDetails() auth.ServiceDetails

type DeleteReleaseBundleService

type DeleteReleaseBundleService struct {
	DistDetails auth.ServiceDetails
	DryRun      bool
	// contains filtered or unexported fields
}

Delete received release bundles from the edge nodes. On success, keep or delete the release bundle from the distribution service.

func (*DeleteReleaseBundleService) DeleteDistribution

func (dr *DeleteReleaseBundleService) DeleteDistribution(deleteDistributionParams DeleteDistributionParams) error

func (*DeleteReleaseBundleService) GetDistDetails

func (dr *DeleteReleaseBundleService) GetDistDetails() auth.ServiceDetails

func (*DeleteReleaseBundleService) IsDryRun

func (dr *DeleteReleaseBundleService) IsDryRun() bool

type DeleteRemoteDistributionBody

type DeleteRemoteDistributionBody struct {
	DistributionBody
	OnSuccess OnSuccess `json:"on_success"`
}

type DistributeReleaseBundleService

type DistributeReleaseBundleService struct {
	DistDetails auth.ServiceDetails
	DryRun      bool
	// contains filtered or unexported fields
}

func (*DistributeReleaseBundleService) Distribute

func (ds *DistributeReleaseBundleService) Distribute(distributeParams DistributionParams) error

func (*DistributeReleaseBundleService) GetDistDetails

func (dr *DistributeReleaseBundleService) GetDistDetails() auth.ServiceDetails

type DistributionBody

type DistributionBody struct {
	DryRun            bool                    `json:"dry_run"`
	DistributionRules []DistributionRulesBody `json:"distribution_rules"`
}

type DistributionParams

type DistributionParams struct {
	DistributionRules []*distributionUtils.DistributionCommonParams
	Name              string
	Version           string
}

func NewDistributeReleaseBundleParams

func NewDistributeReleaseBundleParams(name, version string) DistributionParams

type DistributionRulesBody

type DistributionRulesBody struct {
	SiteName     string   `json:"site_name,omitempty"`
	CityName     string   `json:"city_name,omitempty"`
	CountryCodes []string `json:"country_codes,omitempty"`
}

type OnSuccess

type OnSuccess string
const (
	Keep   OnSuccess = "keep"
	Delete           = "delete"
)

type SetSigningKeyBody

type SetSigningKeyBody struct {
	PublicKey  string `json:"public_key,omitempty"`
	PrivateKey string `json:"private_key,omitempty"`
}

type SetSigningKeyParams

type SetSigningKeyParams struct {
	PublicKey  string
	PrivateKey string
}

func NewSetSigningKeyParams

func NewSetSigningKeyParams(publicKey, privateKey string) SetSigningKeyParams

type SetSigningKeyService

type SetSigningKeyService struct {
	DistDetails auth.ServiceDetails
	// contains filtered or unexported fields
}

func (*SetSigningKeyService) GetDistDetails

func (ssk *SetSigningKeyService) GetDistDetails() auth.ServiceDetails

func (*SetSigningKeyService) SetSigningKey

func (ssk *SetSigningKeyService) SetSigningKey(signBundleParams SetSigningKeyParams) error

type SignBundleBody

type SignBundleBody struct {
	StoringRepository string `json:"storing_repository,omitempty"`
}

type SignBundleParams

type SignBundleParams struct {
	Name              string
	Version           string
	StoringRepository string
	GpgPassphrase     string
}

func NewSignBundleParams

func NewSignBundleParams(name, version string) SignBundleParams

type SignBundleService

type SignBundleService struct {
	DistDetails auth.ServiceDetails
	// contains filtered or unexported fields
}

func (*SignBundleService) GetDistDetails

func (sb *SignBundleService) GetDistDetails() auth.ServiceDetails

func (*SignBundleService) SignReleaseBundle

func (sb *SignBundleService) SignReleaseBundle(signBundleParams SignBundleParams) error

type UpdateReleaseBundleParams

type UpdateReleaseBundleParams struct {
	distrbutionServiceUtils.ReleaseBundleParams
}

func NewUpdateReleaseBundleParams

func NewUpdateReleaseBundleParams(name, version string) UpdateReleaseBundleParams

type UpdateReleaseBundleService

type UpdateReleaseBundleService struct {
	DistDetails auth.ServiceDetails
	DryRun      bool
	// contains filtered or unexported fields
}

func (*UpdateReleaseBundleService) GetDistDetails

func (ur *UpdateReleaseBundleService) GetDistDetails() auth.ServiceDetails

func (*UpdateReleaseBundleService) UpdateReleaseBundle

func (ur *UpdateReleaseBundleService) UpdateReleaseBundle(createBundleParams UpdateReleaseBundleParams) error

type VersionService added in v0.10.0

type VersionService struct {
	DistDetails auth.ServiceDetails
	// contains filtered or unexported fields
}

func NewVersionService added in v0.10.0

func NewVersionService(client *rthttpclient.ArtifactoryHttpClient) *VersionService

func (*VersionService) GetDistDetails added in v0.10.0

func (vs *VersionService) GetDistDetails() auth.ServiceDetails

func (*VersionService) GetDistributionVersion added in v0.10.0

func (vs *VersionService) GetDistributionVersion() (string, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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