saltstack

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Provider

func Provider() *schema.Provider

Provider -

Types

type Client

type Client struct {
	Config Config
	Client *http.Client
	// contains filtered or unexported fields
}

func NewClient

func NewClient(config Config) (*Client, error)

func (*Client) Login added in v0.1.2

func (c *Client) Login() error

func (*Client) Post

func (c *Client) Post(uri string, data map[string]interface{}) (*http.Response, error)

type Config

type Config struct {
	Host          string `validate:"required"`
	Port          int
	Username      string `validate:"required_if=UseToken false"`
	Password      string `validate:"required_if=UseToken false"`
	Debug         bool
	SSLSkipVerify bool
	Eauth         string
	Scheme        string
	UseToken      bool
	Token         string `validate:"required_if=UseToken true"`
}

type KeyPairCreateResult

type KeyPairCreateResult struct {
	Return []struct {
		Data struct {
			Return map[string]string `json:"return"`
		} `json:"data"`
	} `json:"return"`
}

type KeyPairReadResult

type KeyPairReadResult struct {
	Return []struct {
		Data struct {
			Return struct {
				Minions map[string]string `json:"minions"`
			} `json:"return"`
		} `json:"data"`
	} `json:"return"`
}

type LoginReadResult added in v0.1.2

type LoginReadResult struct {
	Return []struct {
		Token  string   `json:"token"`
		Expire string   `json:"expire"`
		Start  string   `json:"start"`
		User   string   `json:"user"`
		Eauth  string   `json:"eauth"`
		Perms  []string `json:"perms"`
	} `json:"return"`
}

Jump to

Keyboard shortcuts

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