oktaasa

package
v0.0.0-...-2ecc15a Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2020 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetToken

func GetToken(team, key, secret string) []byte

func Provider

func Provider() terraform.ResourceProvider

func SendDelete

func SendDelete(BearerToken, path string, body []byte) (*resty.Response, error)

func SendGet

func SendGet(bearer string, path string) (*resty.Response, error)

func SendPost

func SendPost(BearerToken, path string, body []byte) (*resty.Response, error)

func SendPut

func SendPut(BearerToken, path string, body []byte) (*resty.Response, error)

Types

type Bearer

type Bearer struct {
	TeamName    string `json:"-"`
	BearerToken string `json:"bearer_token"`
}

type Config

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

func (*Config) Authorization

func (c *Config) Authorization() (interface{}, error)

returns interface that contains Bearer token.

type EnrollmentToken

type EnrollmentToken struct {
	Id    string `json:"id"`
	Value string `json:"token"`
}

type Group

type Group struct {
	Name         string `json:"group"`
	ServerAccess bool   `json:"server_access"`
	ServerAdmin  bool   `json:"server_admin"`
	GroupSync    bool   `json:"create_server_group"`
}

type Project

type Project struct {
	Name      string `json:"name"`
	DeletedAt string `json:"deleted_at"`
}

type ProjectList

type ProjectList struct {
	Projects []Project `json:"list"`
}

type SftGroup

type SftGroup struct {
	Name      string   `json:"name"`
	Roles     []string `json:"roles"`
	DeletedAt string   `json:"deleted_at"`
}

Jump to

Keyboard shortcuts

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