client

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiError

type ApiError struct {
	Title string
	Msg   string
}

func (*ApiError) String

func (e *ApiError) String() string

type ApiParameter added in v0.2.7

type ApiParameter struct {
	ApiKey      string
	BaseUrl     string
	Debug       bool
	Key         string
	Cert        string
	Cacert      string
	CdkUser     string
	CdkPassword string
	Insecure    bool
}

type Client

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

func Make

func Make(apiParameter ApiParameter) (*Client, error)

func MakeFromEnv

func MakeFromEnv() (*Client, error)

func (*Client) ActivateDebug

func (client *Client) ActivateDebug()

func (*Client) Apply

func (client *Client) Apply(resource *resource.Resource, dryMode bool) (string, error)

func (*Client) CreateAdminToken added in v0.2.7

func (client *Client) CreateAdminToken(name string) (CreatedToken, error)

func (*Client) CreateApplicationInstanceToken added in v0.2.7

func (client *Client) CreateApplicationInstanceToken(applicationInstanceName, name string) (CreatedToken, error)

func (*Client) Delete

func (client *Client) Delete(kind *schema.Kind, parentPathValue []string, name string) error

func (*Client) DeleteResource added in v0.2.7

func (client *Client) DeleteResource(resource *resource.Resource) error

func (*Client) DeleteToken added in v0.2.7

func (client *Client) DeleteToken(uuid string) error

func (*Client) Describe

func (client *Client) Describe(kind *schema.Kind, parentPathValue []string, name string) (resource.Resource, error)

func (*Client) Get

func (client *Client) Get(kind *schema.Kind, parentPathValue []string) ([]resource.Resource, error)

func (*Client) GetKinds

func (client *Client) GetKinds() schema.KindCatalog

func (*Client) GetOpenApi

func (client *Client) GetOpenApi() ([]byte, error)

func (*Client) IgnoreUntrustedCertificate

func (c *Client) IgnoreUntrustedCertificate()

func (*Client) ListAdminToken added in v0.2.7

func (client *Client) ListAdminToken() ([]Token, error)

func (*Client) ListApplicationInstanceToken added in v0.2.7

func (client *Client) ListApplicationInstanceToken(applicationInstanceName string) ([]Token, error)

func (*Client) Login added in v0.2.7

func (client *Client) Login(username, password string) (LoginResult, error)

func (*Client) SetApiKey added in v0.2.7

func (c *Client) SetApiKey(apiKey string)

type CreatedToken added in v0.2.7

type CreatedToken struct {
	Id        string `json:"id"`
	Name      string `json:"name"`
	CreatedAt string `json:"createdAt"`
	Token     string `json:"token"`
}

type LoginResult added in v0.2.7

type LoginResult struct {
	AccessToken  string `json:"access_token"`
	RefreshToken string `json:"refresh_token"`
	TokenType    string `json:"token_type"`
	ExpiresIn    int    `json:"expires_in"`
}

type Token added in v0.2.7

type Token struct {
	Id           string `json:"id"`
	Name         string `json:"name"`
	CreatedAt    string `json:"createdAt"`
	LastTimeUsed string `json:"lastTimeUsed"`
}

type UpsertResponse

type UpsertResponse struct {
	UpsertResult string
}

Jump to

Keyboard shortcuts

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