organisation

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ShowNames

func ShowNames(input io.Reader)

ShowNames displays the name and uid of organisations

Types

type List

type List struct {
	Organisations []*Organisation
}

List is a list of Organisations, used for index action

func Unmarshal added in v0.12.0

func Unmarshal(input io.Reader) (List, error)

Unmarshal unmarshals a list of Organisations records

func (List) FindByNameOrUID added in v0.12.0

func (organisations List) FindByNameOrUID(nameOrUID string) Organisation

FindByNameOrUID look up a Organisation by name in List

type Organisation

type Organisation struct {
	ID   string `jsonapi:"primary,organisations"`
	Name string `jsonapi:"attr,name"`
}

Organisation represents a single organisation

Jump to

Keyboard shortcuts

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