Documentation ¶
Index ¶
- Constants
- func NewCertificateRequest(proxyUrl string) (*security.CertificateRequest, error)
- type NexusClient
- type RoutingRuleService
- func (s *RoutingRuleService) Create(rule *schema.RoutingRule) error
- func (s *RoutingRuleService) Delete(name string) error
- func (s *RoutingRuleService) Get(name string) (*schema.RoutingRule, error)
- func (s *RoutingRuleService) Lists() ([]schema.RoutingRule, error)
- func (s *RoutingRuleService) Update(rule *schema.RoutingRule) error
- type ScriptService
- func (s *ScriptService) Create(script *schema.Script) error
- func (s *ScriptService) Delete(name string) error
- func (s *ScriptService) Get(name string) (*schema.Script, error)
- func (s *ScriptService) List() ([]schema.Script, error)
- func (s *ScriptService) Run(name string, payload string) error
- func (s *ScriptService) Update(script *schema.Script) error
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 ¶
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 (s *RoutingRuleService) Get(name string) (*schema.RoutingRule, error)
func (*RoutingRuleService) Lists ¶
func (s *RoutingRuleService) Lists() ([]schema.RoutingRule, error)
func (*RoutingRuleService) Update ¶
func (s *RoutingRuleService) Update(rule *schema.RoutingRule) error
type ScriptService ¶
func NewScriptService ¶
func NewScriptService(c *client.Client) *ScriptService
func (*ScriptService) Delete ¶
func (s *ScriptService) Delete(name string) error
Click to show internal directories.
Click to hide internal directories.