client

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2022 License: MPL-2.0 Imports: 14 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func GetClient

func GetClient(clientURL, username, password string, expiry int64, options ...Option) *Client

func (*Client) Delete

func (c *Client) Delete(endpoint string) (*container.Container, error)

func (*Client) DeleteWithPayload added in v0.0.25

func (c *Client) DeleteWithPayload(endpoint string, obj models.Model) (*container.Container, error)

func (*Client) Do added in v0.0.27

func (c *Client) Do(req *http.Request, skipPayload bool) (*container.Container, *http.Response, error)

func (*Client) GetPlatform added in v0.1.4

func (c *Client) GetPlatform() string

func (*Client) GetSegID added in v0.0.3

func (c *Client) GetSegID(endpoint string) (*container.Container, error)

func (*Client) GetviaURL

func (c *Client) GetviaURL(endpoint string) (*container.Container, error)

func (*Client) MakeRequest added in v0.0.27

func (c *Client) MakeRequest(method, path string, body *container.Container, authenticated bool) (*http.Request, error)

func (*Client) MakeRequestForText added in v0.2.2

func (c *Client) MakeRequestForText(method, path string, body string, authenticated bool) (*http.Request, error)

func (*Client) MakeRestNDRequest added in v0.2.4

func (c *Client) MakeRestNDRequest(method, path string, body *container.Container, authenticated bool) (*http.Request, error)

func (*Client) Save

func (c *Client) Save(endpoint string, obj models.Model) (*container.Container, error)

func (*Client) SaveAndDeploy added in v0.0.18

func (c *Client) SaveAndDeploy(endpoint string) (*container.Container, error)

func (*Client) SaveDeploy added in v0.1.4

func (c *Client) SaveDeploy(endpoint string, policyIds string) (*container.Container, error)

func (*Client) SaveForAttachment added in v0.0.21

func (c *Client) SaveForAttachment(endpoint string, obj models.Model) (*container.Container, error)

func (*Client) Update

func (c *Client) Update(endpoint string, obj models.Model) (*container.Container, error)

func (*Client) UpdateCred added in v0.0.10

func (c *Client) UpdateCred(endpoint string, body []byte) (*container.Container, error)

func (*Client) ValidateTemplateContent added in v0.1.11

func (c *Client) ValidateTemplateContent(endpoint string, content string) (*container.Container, error)

type Option

type Option func(*Client)

func Insecure

func Insecure(insecure bool) Option

func Platform added in v0.1.0

func Platform(platform string) Option

func ProxyUrl

func ProxyUrl(pUrl string) Option

Jump to

Keyboard shortcuts

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