saltstack

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2022 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
}

func NewClient

func NewClient(config Config) (*Client, 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"`
}

Jump to

Keyboard shortcuts

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