artifacts

package
v0.0.0-...-1b0671e Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Copyright 2016 Capital One Services, LLC

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

SPDX-Copyright: Copyright (c) Capital One Services, LLC SPDX-License-Identifier: Apache-2.0

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

SPDX-Copyright: Copyright (c) Capital One Services, LLC SPDX-License-Identifier: Apache-2.0

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

SPDX-Copyright: Copyright (c) Capital One Services, LLC SPDX-License-Identifier: Apache-2.0

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OkResponse

func OkResponse(resp *http.Response) bool

Types

type Artifact

type Artifact struct {
	Repo     string // Target Repository to use for the artifact
	Group    string // Target Repository group (default: com.capitalone.bankoao)
	Name     string // Target Repository artifact name (default: bankoao_inf_nagios)
	FileName string // File to upload
	Version  string // version of the artifact
}

type ArtifactAccessor

type ArtifactAccessor interface {
	Upload() string
	Download()
	Promote(fromRepo string)
}

type NexusArtifact

type NexusArtifact struct {
	Artifact
	User     string // Repository user
	Password string // Repository Password
	Url      string // Repository URL
}

func (*NexusArtifact) Download

func (a *NexusArtifact) Download()

func (*NexusArtifact) Promote

func (a *NexusArtifact) Promote(fromRepo string)

func (*NexusArtifact) Upload

func (a *NexusArtifact) Upload() string

Nexus Upload

type S3Artifact

type S3Artifact struct {
	Artifact
	BucketUrl string
	Path      string
	Bucket    string
	Region    string
	Key       string
	Encrypt   bool
}

func (*S3Artifact) Download

func (a *S3Artifact) Download()

func (*S3Artifact) Promote

func (a *S3Artifact) Promote(fromRepo string)

func (*S3Artifact) Upload

func (a *S3Artifact) Upload() string

Jump to

Keyboard shortcuts

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