nexus3

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2023 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ContentTypeApplicationJSON ...
	ContentTypeApplicationJSON = "application/json"
	// ContentTypeTextPlain ...
	ContentTypeTextPlain = "text/plain"
)

Variables

This section is empty.

Functions

func NewCertificateRequest

func NewCertificateRequest(proxyUrl string) (*security.CertificateRequest, error)

Types

type NexusClient

type NexusClient struct {

	// API Services
	BlobStore   *blobstore.BlobStoreService
	Repository  *repository.RepositoryService
	RoutingRule *RoutingRuleService
	Security    *security.SecurityService
	Script      *ScriptService
	// contains filtered or unexported fields
}

func NewClient

func NewClient(config client.Config) *NexusClient

NewClient returns an instance of client that implements the Client interface

type RoutingRuleService

type RoutingRuleService client.Service

func NewRoutingRuleService

func NewRoutingRuleService(c *client.Client) *RoutingRuleService

func (*RoutingRuleService) Create

func (s *RoutingRuleService) Create(rule *schema.RoutingRule) error

func (*RoutingRuleService) Delete

func (s *RoutingRuleService) Delete(name string) error

func (*RoutingRuleService) Get

func (*RoutingRuleService) Lists

func (s *RoutingRuleService) Lists() ([]schema.RoutingRule, error)

func (*RoutingRuleService) Update

func (s *RoutingRuleService) Update(rule *schema.RoutingRule) error

type ScriptService

type ScriptService client.Service

func NewScriptService

func NewScriptService(c *client.Client) *ScriptService

func (*ScriptService) Create

func (s *ScriptService) Create(script *schema.Script) error

func (*ScriptService) Delete

func (s *ScriptService) Delete(name string) error

func (*ScriptService) Get

func (s *ScriptService) Get(name string) (*schema.Script, error)

func (*ScriptService) List

func (s *ScriptService) List() ([]schema.Script, error)

func (*ScriptService) Run

func (s *ScriptService) Run(name string, payload string) error

func (*ScriptService) Update

func (s *ScriptService) Update(script *schema.Script) error

Jump to

Keyboard shortcuts

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