client

package
v3.0.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MediaTypePlain = "text/plain"
	MediaTypeXml   = "application/xml"

	MediaTypeJson = "application/json"
	MediaTypeForm = "application/x-www-form-urlencoded"
)

Variables

This section is empty.

Functions

func NewClient

func NewClient(baseUrl string, httpClient *http.Client) *resty.Client

NewClient creates a Client from a provided base url for an artifactory instance and a service Client

Types

type Client

type Client struct {
	// HTTP Client used to communicate with the API.
	Client *resty.Client

	// Base URL for API requests. BaseURL should always be specified with a trailing slash.
	BaseURL *url.URL
}

type Service

type Service struct {
	Client *Client
}

Jump to

Keyboard shortcuts

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