cli

package
v0.0.0-...-b12a56d Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Reader

func Reader(fields []string) map[string]string

Types

type Auth

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

func NewAuthCLI

func NewAuthCLI(clients *client.Clients, accessToken string) *Auth

func (*Auth) AuthWithCredentials

func (c *Auth) AuthWithCredentials() string

type AuthCLI

type AuthCLI interface {
	AuthWithCredentials() string
}

type CLI

type CLI struct {
	AuthCLI AuthCLI
	UserCLI UserCLI
	RoleCLI RoleCLI
	DataCLI DataCLI

	UserInfo *UserInfo
}

func NewCLI

func NewCLI(clients *client.Clients) *CLI

func (*CLI) CheckCommand

func (c *CLI) CheckCommand(command string)

type Data

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

func NewDataCLI

func NewDataCLI(clients *client.Clients, accessToken string) *Data

func (*Data) CreateValue

func (c *Data) CreateValue()

func (*Data) DeleteValue

func (c *Data) DeleteValue()

func (*Data) GetValue

func (c *Data) GetValue()

type DataCLI

type DataCLI interface {
	CreateValue()
	DeleteValue()
	GetValue()
}

type Role

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

func NewRoleCLI

func NewRoleCLI(clients *client.Clients, accessToken string) *Role

func (*Role) CreateRole

func (c *Role) CreateRole()

func (*Role) DeleteRole

func (c *Role) DeleteRole()

type RoleCLI

type RoleCLI interface {
	CreateRole()
	DeleteRole()
}

type User

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

func NewUserCLI

func NewUserCLI(clients *client.Clients, accessToken string) *User

func (*User) CreateUser

func (c *User) CreateUser()

func (*User) DeleteUser

func (c *User) DeleteUser()

func (*User) UpdatePassword

func (c *User) UpdatePassword()

type UserCLI

type UserCLI interface {
	UpdatePassword()
	CreateUser()
	DeleteUser()
}

type UserInfo

type UserInfo struct {
	AccessToken string
	Login       string
}

Jump to

Keyboard shortcuts

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