artifactory

package
v0.0.0-...-3ddebea Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AqlFromSpecFile

func AqlFromSpecFile(filePath string) (utils.Aql, error)

AqlFromSpecFile parses and returns Aql from a spec file

Types

type Artifactory

type Artifactory struct {
	DryRun bool
	// contains filtered or unexported fields
}

Artifactory client

func New

func New(c Config) (*Artifactory, error)

New creates a new client

func (Artifactory) Copy

func (a Artifactory) Copy(args CopyArgs) error

Copy a file inside artifactory

func (Artifactory) Delete

func (a Artifactory) Delete(args DeleteArgs) error

Delete items from Artifactory

func (Artifactory) Ping

func (a Artifactory) Ping() error

Ping Artifactory

func (Artifactory) SetProps

func (a Artifactory) SetProps(args PropsArgs) error

SetProps on items in Artifactory

func (Artifactory) Upload

func (a Artifactory) Upload(args UploadArgs) error

Upload files to artifactory

type Config

type Config struct {
	APIKey   string
	Debug    bool
	DryRun   bool
	Password string
	URL      string
	Username string
}

Config for Artifactory

func (Config) Validate

func (c Config) Validate() error

Validate the Config

type CopyArgs

type CopyArgs struct {
	Flat      bool
	Source    string
	Target    string
	Recursive bool
}

CopyArgs are arguments for searching files

func (CopyArgs) Validate

func (c CopyArgs) Validate() error

Validate the copy arguments

type DeleteArgs

type DeleteArgs struct {
	Path      string
	Recursive bool
	SpecFile  string `json:"spec_file"`
}

DeleteArgs are arguments for Delete

func (DeleteArgs) Validate

func (d DeleteArgs) Validate() error

Validate the delete arguments

type Prop

type Prop struct {
	Name   string
	Value  string
	Values []string
}

Prop is a property on a file

func (Prop) String

func (p Prop) String() string

type PropsArgs

type PropsArgs struct {
	Path      string
	Recursive bool
	Props     []Prop
}

PropsArgs are arguments for managing properties on files

func (PropsArgs) PropsString

func (p PropsArgs) PropsString() string

PropsString a string representation of Props

func (PropsArgs) Validate

func (p PropsArgs) Validate() error

Validate the delete arguments

type SearchArgs

type SearchArgs struct {
	Path      string
	Recursive bool
}

SearchArgs are arguments for searching files

type UploadArgs

type UploadArgs struct {
	Explode     bool
	Flat        bool
	IncludeDirs bool `json:"include_dirs"`
	Path        string
	Recursive   bool
	Regexp      bool
	Sources     []string
}

UploadArgs are arguments for an Upload

func (UploadArgs) Validate

func (u UploadArgs) Validate() error

Validate the upload arguments

Jump to

Keyboard shortcuts

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