esa

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2020 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Provider

func Provider() terraform.ResourceProvider

Types

type Api

type Api struct {
	Team        string
	ApiEndpoint string
	Client      *http.Client
}

func NewApi

func NewApi(token string, team string, api_endpoint string) *Api

func (*Api) CancelInvitation

func (api *Api) CancelInvitation(code string) (*http.Response, error)

func (*Api) Delete

func (api *Api) Delete(path string, body io.Reader) (*http.Response, error)

func (*Api) DeleteMember

func (api *Api) DeleteMember(screen_name string) (*http.Response, error)

func (*Api) Get

func (api *Api) Get(path string, body io.Reader) (*http.Response, error)

func (*Api) Members

func (api *Api) Members() (*MembersWithPagination, *http.Response, error)

func (*Api) Patch

func (api *Api) Patch(path string, body io.Reader) (*http.Response, error)

func (*Api) PendingInvitations

func (api *Api) PendingInvitations() (*InvitationsWithPagination, *http.Response, error)

func (*Api) Post

func (api *Api) Post(path string, body io.Reader) (*http.Response, error)

func (*Api) SendInvitation

func (api *Api) SendInvitation(emails []string) (*Invitations, *http.Response, error)

func (*Api) User

func (api *Api) User() (*User, *http.Response, error)

type Invitation

type Invitation struct {
	Email     string
	Code      string
	ExpiresAt string
	Url       string
}

type Invitations

type Invitations struct {
	Invitations []Invitation
}

type InvitationsWithPagination

type InvitationsWithPagination struct {
	Invitations []Invitation
}

type Member

type Member struct {
	Name           string `json:"name"`
	ScreenName     string `json:"screen_name"`
	Icon           string `json:"icon"`
	Email          string `json:"email"`
	PostsCount     int    `json:"posts_count"`
	JoinedAt       string `json:"joined_at"`
	LastAccessedAt string `json:"last_accessed_at"`
}

type Members

type Members struct {
	Members []Member
}

type MembersWithPagination

type MembersWithPagination struct {
	Members []Member
}

type User

type User struct {
	Id         int
	Name       string
	ScreenName string
	CreatedAt  string
	UpdatedAt  string
	Icon       string
	Email      string
}

Jump to

Keyboard shortcuts

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