client

package
v0.0.0-...-ce96b73 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2021 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArtifactEvent

type ArtifactEvent struct {
	Domain    string      `json:"domain,omitempty"`
	EventType string      `json:"event_type,omitempty"`
	Data      interface{} `json:"data,omitempty"`
}

type ArtifactInfo

type ArtifactInfo struct {
	Name   string `json:"name,omitempty"`
	Path   string `json:"path,omitempty"`
	Repo   string `json:"repo_key,omitempty"`
	Sha256 string `json:"sha256,omitempty"`
	Size   int    `json:"size,omitempty"`
}

type Artifactory

type Artifactory struct {
	Webhooks
	// contains filtered or unexported fields
}

func New

func New(baseUri string) *Artifactory

func WithHttpClient

func WithHttpClient(baseUri string, client *http.Client) *Artifactory

func (*Artifactory) Get

func (rt *Artifactory) Get(uri string) (io.ReadCloser, error)

type EventHandlerFunc

type EventHandlerFunc func(*ArtifactInfo) error

type Repository

type Repository interface {
	Get(string) (io.ReadCloser, error)
}

type Webhooks

type Webhooks struct {
	// contains filtered or unexported fields
}

func (*Webhooks) OnArtifactDeployed

func (w *Webhooks) OnArtifactDeployed(f EventHandlerFunc)

func (*Webhooks) WebhookHandler

func (w *Webhooks) WebhookHandler(rw http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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