stash

package
v1.39.1 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: BSD-2-Clause-Patent Imports: 18 Imported by: 14

Documentation

Overview

Package stash implements a Bitbucket Server client.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(uri string) (*scm.Client, error)

New returns a new Stash API client.

func NewDefault

func NewDefault() *scm.Client

NewDefault returns a new Stash API client.

Types

type Error

type Error struct {
	Message string `json:"message"`
	Status  int    `json:"status-code"`
	Errors  []struct {
		Message         string `json:"message"`
		ExceptionName   string `json:"exceptionName"`
		CurrentVersion  int    `json:"currentVersion"`
		ExpectedVersion int    `json:"expectedVersion"`
	} `json:"errors"`
}

Error represents a Stash error.

func (*Error) Error

func (e *Error) Error() string

type MultipartWriter added in v1.23.0

type MultipartWriter struct {
	Writer *multipart.Writer
	Error  error
}

func (*MultipartWriter) Close added in v1.23.0

func (mw *MultipartWriter) Close()

func (*MultipartWriter) FormDataContentType added in v1.23.0

func (mw *MultipartWriter) FormDataContentType() string

func (*MultipartWriter) Write added in v1.23.0

func (mw *MultipartWriter) Write(f, v string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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