moma

package
v0.0.0-...-f4ae709 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddAdminsToOrgs

func AddAdminsToOrgs(
	dashboard meraki.Dashboard, orgs []organizations.Organization, admins [][]string,
) ([][]string, error)

func GetAdminList

func GetAdminList(dashboard meraki.Dashboard, orgs []organizations.Organization) [][]string

func ReadCsv

func ReadCsv(file string) ([][]string, error)

func RemoveAdminsFromOrgs

func RemoveAdminsFromOrgs(
	dashboard meraki.Dashboard, orgs []organizations.Organization, admins [][]string,
) ([][]string, error)

func SetFileName

func SetFileName(outputFile OutputFile, defaultPrefix string) string

func SortSlicesWithHeader

func SortSlicesWithHeader(slice [][]string, index int) [][]string

func WriteCsv

func WriteCsv(path string, fileName string, records [][]string) error

Types

type Flags

type Flags struct {
	ApiKey     string
	OutputFile OutputFile
	InputFile  string
}

func HandleFlags

func HandleFlags() Flags

type OutputFile

type OutputFile struct {
	Path   string
	Name   string
	Prefix string
}

Jump to

Keyboard shortcuts

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