client

package
v0.0.0-...-68900ed Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2016 License: MIT Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAdminuserPath

func CreateAdminuserPath() string

CreateAdminuserPath computes a request path to the create action of adminuser.

func CreateEventPath

func CreateEventPath(tenantID string) string

CreateEventPath computes a request path to the create action of event.

func CreatePresentationPath

func CreatePresentationPath(eventID string, speakerID string, tenantID string) string

CreatePresentationPath computes a request path to the create action of presentation.

func CreateSeriesPath

func CreateSeriesPath(tenantID string) string

CreateSeriesPath computes a request path to the create action of series.

func CreateSpeakerPath

func CreateSpeakerPath(eventID string, tenantID string) string

CreateSpeakerPath computes a request path to the create action of speaker.

func CreateTenantPath

func CreateTenantPath() string

CreateTenantPath computes a request path to the create action of tenant.

func CreateUserPath

func CreateUserPath(tenantID string) string

CreateUserPath computes a request path to the create action of user.

func DeleteAdminuserPath

func DeleteAdminuserPath(userID int) string

DeleteAdminuserPath computes a request path to the delete action of adminuser.

func DeleteEventPath

func DeleteEventPath(eventID int, tenantID string) string

DeleteEventPath computes a request path to the delete action of event.

func DeletePresentationPath

func DeletePresentationPath(eventID string, presentationID int, speakerID string, tenantID string) string

DeletePresentationPath computes a request path to the delete action of presentation.

func DeleteSeriesPath

func DeleteSeriesPath(seriesID int, tenantID string) string

DeleteSeriesPath computes a request path to the delete action of series.

func DeleteSpeakerPath

func DeleteSpeakerPath(eventID string, speakerID int, tenantID string) string

DeleteSpeakerPath computes a request path to the delete action of speaker.

func DeleteTenantPath

func DeleteTenantPath(tenantID int) string

DeleteTenantPath computes a request path to the delete action of tenant.

func DeleteUserPath

func DeleteUserPath(tenantID string, userID int) string

DeleteUserPath computes a request path to the delete action of user.

func ListAdminuserPath

func ListAdminuserPath() string

ListAdminuserPath computes a request path to the list action of adminuser.

func ListEventPath

func ListEventPath(tenantID string) string

ListEventPath computes a request path to the list action of event.

func ListPresentationPath

func ListPresentationPath(eventID string, speakerID string, tenantID string) string

ListPresentationPath computes a request path to the list action of presentation.

func ListSeriesPath

func ListSeriesPath(tenantID string) string

ListSeriesPath computes a request path to the list action of series.

func ListSpeakerPath

func ListSpeakerPath(eventID string, tenantID string) string

ListSpeakerPath computes a request path to the list action of speaker.

func ListTenantPath

func ListTenantPath() string

ListTenantPath computes a request path to the list action of tenant.

func ListUserPath

func ListUserPath(tenantID string) string

ListUserPath computes a request path to the list action of user.

func RefreshAuthPath

func RefreshAuthPath() string

RefreshAuthPath computes a request path to the refresh action of auth.

func ShowAdminuserPath

func ShowAdminuserPath(userID int) string

ShowAdminuserPath computes a request path to the show action of adminuser.

func ShowEventPath

func ShowEventPath(eventID int, tenantID string) string

ShowEventPath computes a request path to the show action of event.

func ShowPresentationPath

func ShowPresentationPath(eventID string, presentationID int, speakerID string, tenantID string) string

ShowPresentationPath computes a request path to the show action of presentation.

func ShowSeriesPath

func ShowSeriesPath(seriesID int, tenantID string) string

ShowSeriesPath computes a request path to the show action of series.

func ShowSpeakerPath

func ShowSpeakerPath(eventID string, speakerID int, tenantID string) string

ShowSpeakerPath computes a request path to the show action of speaker.

func ShowTenantPath

func ShowTenantPath(tenantID int) string

ShowTenantPath computes a request path to the show action of tenant.

func ShowUserPath

func ShowUserPath(tenantID string, userID int) string

ShowUserPath computes a request path to the show action of user.

func StatusHealthzPath

func StatusHealthzPath() string

StatusHealthzPath computes a request path to the status action of healthz.

func TokenAuthPath

func TokenAuthPath() string

TokenAuthPath computes a request path to the token action of auth.

func UpdateAdminuserPath

func UpdateAdminuserPath(userID int) string

UpdateAdminuserPath computes a request path to the update action of adminuser.

func UpdateEventPath

func UpdateEventPath(eventID int, tenantID string) string

UpdateEventPath computes a request path to the update action of event.

func UpdatePresentationPath

func UpdatePresentationPath(eventID string, presentationID int, speakerID string, tenantID string) string

UpdatePresentationPath computes a request path to the update action of presentation.

func UpdateSeriesPath

func UpdateSeriesPath(seriesID int, tenantID string) string

UpdateSeriesPath computes a request path to the update action of series.

func UpdateSpeakerPath

func UpdateSpeakerPath(eventID string, speakerID int, tenantID string) string

UpdateSpeakerPath computes a request path to the update action of speaker.

func UpdateTenantPath

func UpdateTenantPath(tenantID int) string

UpdateTenantPath computes a request path to the update action of tenant.

func UpdateUserPath

func UpdateUserPath(tenantID string, userID int) string

UpdateUserPath computes a request path to the update action of user.

func ValidateValidatePath

func ValidateValidatePath(userID string) string

ValidateValidatePath computes a request path to the validate action of validate.

Types

type Authorize

type Authorize struct {
	// access token
	AccessToken *string `json:"access_token,omitempty" xml:"access_token,omitempty"`
	// Time to expiration in seconds
	ExpiresIn *int `json:"expires_in,omitempty" xml:"expires_in,omitempty"`
	// tenant
	Tenant *Tenant `json:"tenant,omitempty" xml:"tenant,omitempty"`
	// type of token
	TokenType *string `json:"token_type,omitempty" xml:"token_type,omitempty"`
	// user
	User *User `json:"user,omitempty" xml:"user,omitempty"`
}

Token authorization response

func DecodeAuthorize

func DecodeAuthorize(r io.Reader, decoderFn goa.DecoderFunc) (*Authorize, error)

DecodeAuthorize decodes the Authorize instance encoded in r.

type Client

type Client struct {
	*goaclient.Client
	SignerJWT      goaclient.Signer
	SignerPassword goaclient.Signer
}

Client is the congo service client.

func New

func New(c *http.Client) *Client

New instantiates the client.

func (*Client) CreateAdminuser

func (c *Client) CreateAdminuser(ctx context.Context, path string, payload *CreateAdminuserPayload) (*http.Response, error)

Record new user

func (*Client) CreateEvent

func (c *Client) CreateEvent(ctx context.Context, path string, payload *CreateEventPayload) (*http.Response, error)

Record new event

func (*Client) CreatePresentation

func (c *Client) CreatePresentation(ctx context.Context, path string, payload *CreatePresentationPayload) (*http.Response, error)

Record new presentation

func (*Client) CreateSeries

func (c *Client) CreateSeries(ctx context.Context, path string, payload *CreateSeriesPayload) (*http.Response, error)

Record new series

func (*Client) CreateSpeaker

func (c *Client) CreateSpeaker(ctx context.Context, path string, payload *CreateSpeakerPayload) (*http.Response, error)

Record new speaker

func (*Client) CreateTenant

func (c *Client) CreateTenant(ctx context.Context, path string, payload *CreateTenantPayload) (*http.Response, error)

Record new tenant

func (*Client) CreateUser

func (c *Client) CreateUser(ctx context.Context, path string, payload *CreateUserPayload) (*http.Response, error)

Record new user

func (*Client) DeleteAdminuser

func (c *Client) DeleteAdminuser(ctx context.Context, path string) (*http.Response, error)

DeleteAdminuser makes a request to the delete action endpoint of the adminuser resource

func (*Client) DeleteEvent

func (c *Client) DeleteEvent(ctx context.Context, path string) (*http.Response, error)

DeleteEvent makes a request to the delete action endpoint of the event resource

func (*Client) DeletePresentation

func (c *Client) DeletePresentation(ctx context.Context, path string) (*http.Response, error)

DeletePresentation makes a request to the delete action endpoint of the presentation resource

func (*Client) DeleteSeries

func (c *Client) DeleteSeries(ctx context.Context, path string) (*http.Response, error)

DeleteSeries makes a request to the delete action endpoint of the series resource

func (*Client) DeleteSpeaker

func (c *Client) DeleteSpeaker(ctx context.Context, path string) (*http.Response, error)

DeleteSpeaker makes a request to the delete action endpoint of the speaker resource

func (*Client) DeleteTenant

func (c *Client) DeleteTenant(ctx context.Context, path string) (*http.Response, error)

DeleteTenant makes a request to the delete action endpoint of the tenant resource

func (*Client) DeleteUser

func (c *Client) DeleteUser(ctx context.Context, path string) (*http.Response, error)

DeleteUser makes a request to the delete action endpoint of the user resource

func (*Client) ListAdminuser

func (c *Client) ListAdminuser(ctx context.Context, path string) (*http.Response, error)

List all users

func (*Client) ListEvent

func (c *Client) ListEvent(ctx context.Context, path string) (*http.Response, error)

List all events

func (*Client) ListPresentation

func (c *Client) ListPresentation(ctx context.Context, path string) (*http.Response, error)

List all presentations

func (*Client) ListSeries

func (c *Client) ListSeries(ctx context.Context, path string) (*http.Response, error)

List all series

func (*Client) ListSpeaker

func (c *Client) ListSpeaker(ctx context.Context, path string) (*http.Response, error)

List all speakers

func (*Client) ListTenant

func (c *Client) ListTenant(ctx context.Context, path string) (*http.Response, error)

List all tenants

func (*Client) ListUser

func (c *Client) ListUser(ctx context.Context, path string) (*http.Response, error)

List all users for a tenant

func (*Client) RefreshAuth

func (c *Client) RefreshAuth(ctx context.Context, path string) (*http.Response, error)

Obtain a refreshed access token

func (*Client) ShowAdminuser

func (c *Client) ShowAdminuser(ctx context.Context, path string) (*http.Response, error)

Retrieve user with given id

func (*Client) ShowEvent

func (c *Client) ShowEvent(ctx context.Context, path string) (*http.Response, error)

Retrieve event with given id

func (*Client) ShowPresentation

func (c *Client) ShowPresentation(ctx context.Context, path string) (*http.Response, error)

Retrieve presentation with given id

func (*Client) ShowSeries

func (c *Client) ShowSeries(ctx context.Context, path string) (*http.Response, error)

Retrieve series with given id

func (*Client) ShowSpeaker

func (c *Client) ShowSpeaker(ctx context.Context, path string) (*http.Response, error)

Retrieve speaker with given id

func (*Client) ShowTenant

func (c *Client) ShowTenant(ctx context.Context, path string) (*http.Response, error)

Retrieve tenant with given id

func (*Client) ShowUser

func (c *Client) ShowUser(ctx context.Context, path string) (*http.Response, error)

Retrieve user with given id

func (*Client) StatusHealthz

func (c *Client) StatusHealthz(ctx context.Context, path string) (*http.Response, error)

Get Server Status

func (*Client) TokenAuth

func (c *Client) TokenAuth(ctx context.Context, path string) (*http.Response, error)

Obtain an access token

func (*Client) UpdateAdminuser

func (c *Client) UpdateAdminuser(ctx context.Context, path string, payload *UpdateAdminuserPayload) (*http.Response, error)

UpdateAdminuser makes a request to the update action endpoint of the adminuser resource

func (*Client) UpdateEvent

func (c *Client) UpdateEvent(ctx context.Context, path string, payload *UpdateEventPayload) (*http.Response, error)

UpdateEvent makes a request to the update action endpoint of the event resource

func (*Client) UpdatePresentation

func (c *Client) UpdatePresentation(ctx context.Context, path string, payload *UpdatePresentationPayload) (*http.Response, error)

UpdatePresentation makes a request to the update action endpoint of the presentation resource

func (*Client) UpdateSeries

func (c *Client) UpdateSeries(ctx context.Context, path string, payload *UpdateSeriesPayload) (*http.Response, error)

UpdateSeries makes a request to the update action endpoint of the series resource

func (*Client) UpdateSpeaker

func (c *Client) UpdateSpeaker(ctx context.Context, path string, payload *UpdateSpeakerPayload) (*http.Response, error)

UpdateSpeaker makes a request to the update action endpoint of the speaker resource

func (*Client) UpdateTenant

func (c *Client) UpdateTenant(ctx context.Context, path string, payload *UpdateTenantPayload) (*http.Response, error)

UpdateTenant makes a request to the update action endpoint of the tenant resource

func (*Client) UpdateUser

func (c *Client) UpdateUser(ctx context.Context, path string, payload *UpdateUserPayload) (*http.Response, error)

UpdateUser makes a request to the update action endpoint of the user resource

func (*Client) ValidateValidate

func (c *Client) ValidateValidate(ctx context.Context, path string, v string) (*http.Response, error)

validate user email

type CreateAdminuserPayload

type CreateAdminuserPayload struct {
	Email          string  `json:"email" xml:"email"`
	FirstName      string  `json:"first_name" xml:"first_name"`
	ID             *int    `json:"id,omitempty" xml:"id,omitempty"`
	LastName       string  `json:"last_name" xml:"last_name"`
	Password       string  `json:"password" xml:"password"`
	Role           string  `json:"role" xml:"role"`
	TenantID       *int    `json:"tenant_id,omitempty" xml:"tenant_id,omitempty"`
	Validated      *bool   `json:"validated,omitempty" xml:"validated,omitempty"`
	ValidationCode *string `json:"validation_code,omitempty" xml:"validation_code,omitempty"`
}

CreateAdminuserPayload is the adminuser create action payload.

type CreateEventPayload

type CreateEventPayload struct {
	EndDate   *time.Time `json:"end_date,omitempty" xml:"end_date,omitempty"`
	Name      string     `json:"name" xml:"name"`
	StartDate *time.Time `json:"start_date,omitempty" xml:"start_date,omitempty"`
	URL       *string    `json:"url,omitempty" xml:"url,omitempty"`
}

CreateEventPayload is the event create action payload.

type CreatePresentationPayload

type CreatePresentationPayload struct {
	Abstract string  `json:"abstract" xml:"abstract"`
	Detail   *string `json:"detail,omitempty" xml:"detail,omitempty"`
	Name     *string `json:"name,omitempty" xml:"name,omitempty"`
}

CreatePresentationPayload is the presentation create action payload.

type CreateSeriesPayload

type CreateSeriesPayload struct {
	Name string `json:"name" xml:"name"`
}

CreateSeriesPayload is the series create action payload.

type CreateSpeakerPayload

type CreateSpeakerPayload struct {
	Bio       *string `json:"bio,omitempty" xml:"bio,omitempty"`
	FirstName string  `json:"first_name" xml:"first_name"`
	Github    *string `json:"github,omitempty" xml:"github,omitempty"`
	ImageURL  *string `json:"image_url,omitempty" xml:"image_url,omitempty"`
	LastName  string  `json:"last_name" xml:"last_name"`
	Linkedin  *string `json:"linkedin,omitempty" xml:"linkedin,omitempty"`
	Twitter   *string `json:"twitter,omitempty" xml:"twitter,omitempty"`
}

CreateSpeakerPayload is the speaker create action payload.

type CreateTenantPayload

type CreateTenantPayload struct {
	Name string `json:"name" xml:"name"`
}

CreateTenantPayload is the tenant create action payload.

type CreateUserPayload

type CreateUserPayload struct {
	Email          string  `json:"email" xml:"email"`
	FirstName      string  `json:"first_name" xml:"first_name"`
	ID             *int    `json:"id,omitempty" xml:"id,omitempty"`
	LastName       string  `json:"last_name" xml:"last_name"`
	Password       string  `json:"password" xml:"password"`
	Role           string  `json:"role" xml:"role"`
	Validated      *bool   `json:"validated,omitempty" xml:"validated,omitempty"`
	ValidationCode *string `json:"validation_code,omitempty" xml:"validation_code,omitempty"`
}

CreateUserPayload is the user create action payload.

type Event

type Event struct {
	// end_date
	EndDate *time.Time `json:"end_date,omitempty" xml:"end_date,omitempty"`
	// ID of record
	ID *int `json:"id,omitempty" xml:"id,omitempty"`
	// location
	Location *string `json:"location,omitempty" xml:"location,omitempty"`
	// name
	Name          *string                `json:"name,omitempty" xml:"name,omitempty"`
	Presentations PresentationCollection `json:"presentations,omitempty" xml:"presentations,omitempty"`
	Speakers      SpeakerCollection      `json:"speakers,omitempty" xml:"speakers,omitempty"`
	// start_date
	StartDate *time.Time `json:"start_date,omitempty" xml:"start_date,omitempty"`
	// event URL
	URL *string `json:"url,omitempty" xml:"url,omitempty"`
}

An event is a specific instance of a conference, e.g. GopherCon 2016

func DecodeEvent

func DecodeEvent(r io.Reader, decoderFn goa.DecoderFunc) (*Event, error)

DecodeEvent decodes the Event instance encoded in r.

type EventCollection

type EventCollection []*Event

EventCollection media type is a collection of Event.

func DecodeEventCollection

func DecodeEventCollection(r io.Reader, decoderFn goa.DecoderFunc) (EventCollection, error)

DecodeEventCollection decodes the EventCollection instance encoded in r.

type Presentation

type Presentation struct {
	// short description of talk
	Abstract *string `json:"abstract,omitempty" xml:"abstract,omitempty"`
	// detailed description of talk - not for public display
	Detail *string `json:"detail,omitempty" xml:"detail,omitempty"`
	// ID of record
	ID *int `json:"id,omitempty" xml:"id,omitempty"`
	// name of presentation
	Name *string `json:"name,omitempty" xml:"name,omitempty"`
	// speaker who is giving the talk
	Speaker *Speaker `json:"speaker,omitempty" xml:"speaker,omitempty"`
}

A presentation is a scheduled talk given by a speaker

func DecodePresentation

func DecodePresentation(r io.Reader, decoderFn goa.DecoderFunc) (*Presentation, error)

DecodePresentation decodes the Presentation instance encoded in r.

type PresentationCollection

type PresentationCollection []*Presentation

PresentationCollection media type is a collection of Presentation.

func DecodePresentationCollection

func DecodePresentationCollection(r io.Reader, decoderFn goa.DecoderFunc) (PresentationCollection, error)

DecodePresentationCollection decodes the PresentationCollection instance encoded in r.

type Series

type Series struct {
	// ID of record
	ID *int `json:"id,omitempty" xml:"id,omitempty"`
	// name
	Name *string `json:"name,omitempty" xml:"name,omitempty"`
}

A series is a recurring event, e.g. GopherCon

func DecodeSeries

func DecodeSeries(r io.Reader, decoderFn goa.DecoderFunc) (*Series, error)

DecodeSeries decodes the Series instance encoded in r.

type SeriesCollection

type SeriesCollection []*Series

SeriesCollection media type is a collection of Series.

func DecodeSeriesCollection

func DecodeSeriesCollection(r io.Reader, decoderFn goa.DecoderFunc) (SeriesCollection, error)

DecodeSeriesCollection decodes the SeriesCollection instance encoded in r.

type Speaker

type Speaker struct {
	// speaker bio
	Bio *string `json:"bio,omitempty" xml:"bio,omitempty"`
	// email address
	Email *string `json:"email,omitempty" xml:"email,omitempty"`
	// first name
	FirstName *string `json:"first_name,omitempty" xml:"first_name,omitempty"`
	// github handle
	Github *string `json:"github,omitempty" xml:"github,omitempty"`
	Href   *string `json:"href,omitempty" xml:"href,omitempty"`
	// ID of record
	ID *int `json:"id,omitempty" xml:"id,omitempty"`
	// url of speaker image
	ImageURL *string `json:"image_url,omitempty" xml:"image_url,omitempty"`
	// last name
	LastName *string `json:"last_name,omitempty" xml:"last_name,omitempty"`
	// linkedin url
	Linkedin *string `json:"linkedin,omitempty" xml:"linkedin,omitempty"`
	// twitter handle - no @
	Twitter *string `json:"twitter,omitempty" xml:"twitter,omitempty"`
}

A speaker is someone giving a talk at an event

func DecodeSpeaker

func DecodeSpeaker(r io.Reader, decoderFn goa.DecoderFunc) (*Speaker, error)

DecodeSpeaker decodes the Speaker instance encoded in r.

type SpeakerCollection

type SpeakerCollection []*Speaker

SpeakerCollection media type is a collection of Speaker.

func DecodeSpeakerCollection

func DecodeSpeakerCollection(r io.Reader, decoderFn goa.DecoderFunc) (SpeakerCollection, error)

DecodeSpeakerCollection decodes the SpeakerCollection instance encoded in r.

type Tenant

type Tenant struct {
	// ID
	ID *int `json:"id,omitempty" xml:"id,omitempty"`
	// name
	Name *string `json:"name,omitempty" xml:"name,omitempty"`
}

Tenant account in Congo

func DecodeTenant

func DecodeTenant(r io.Reader, decoderFn goa.DecoderFunc) (*Tenant, error)

DecodeTenant decodes the Tenant instance encoded in r.

type TenantCollection

type TenantCollection []*Tenant

TenantCollection media type is a collection of Tenant.

func DecodeTenantCollection

func DecodeTenantCollection(r io.Reader, decoderFn goa.DecoderFunc) (TenantCollection, error)

DecodeTenantCollection decodes the TenantCollection instance encoded in r.

type UpdateAdminuserPayload

type UpdateAdminuserPayload struct {
	Email          *string `json:"email,omitempty" xml:"email,omitempty"`
	FirstName      *string `json:"first_name,omitempty" xml:"first_name,omitempty"`
	ID             *int    `json:"id,omitempty" xml:"id,omitempty"`
	LastName       *string `json:"last_name,omitempty" xml:"last_name,omitempty"`
	Password       *string `json:"password,omitempty" xml:"password,omitempty"`
	Role           *string `json:"role,omitempty" xml:"role,omitempty"`
	Validated      *bool   `json:"validated,omitempty" xml:"validated,omitempty"`
	ValidationCode *string `json:"validation_code,omitempty" xml:"validation_code,omitempty"`
}

UpdateAdminuserPayload is the adminuser update action payload.

type UpdateEventPayload

type UpdateEventPayload struct {
	EndDate   *time.Time `json:"end_date,omitempty" xml:"end_date,omitempty"`
	Name      *string    `json:"name,omitempty" xml:"name,omitempty"`
	StartDate *time.Time `json:"start_date,omitempty" xml:"start_date,omitempty"`
	URL       *string    `json:"url,omitempty" xml:"url,omitempty"`
}

UpdateEventPayload is the event update action payload.

type UpdatePresentationPayload

type UpdatePresentationPayload struct {
	Abstract *string `json:"abstract,omitempty" xml:"abstract,omitempty"`
	Detail   *string `json:"detail,omitempty" xml:"detail,omitempty"`
	Name     *string `json:"name,omitempty" xml:"name,omitempty"`
}

UpdatePresentationPayload is the presentation update action payload.

type UpdateSeriesPayload

type UpdateSeriesPayload struct {
	Name *string `json:"name,omitempty" xml:"name,omitempty"`
}

UpdateSeriesPayload is the series update action payload.

type UpdateSpeakerPayload

type UpdateSpeakerPayload struct {
	Bio       *string `json:"bio,omitempty" xml:"bio,omitempty"`
	FirstName *string `json:"first_name,omitempty" xml:"first_name,omitempty"`
	Github    *string `json:"github,omitempty" xml:"github,omitempty"`
	ImageURL  *string `json:"image_url,omitempty" xml:"image_url,omitempty"`
	LastName  *string `json:"last_name,omitempty" xml:"last_name,omitempty"`
	Linkedin  *string `json:"linkedin,omitempty" xml:"linkedin,omitempty"`
	Twitter   *string `json:"twitter,omitempty" xml:"twitter,omitempty"`
}

UpdateSpeakerPayload is the speaker update action payload.

type UpdateTenantPayload

type UpdateTenantPayload struct {
	Name *string `json:"name,omitempty" xml:"name,omitempty"`
}

UpdateTenantPayload is the tenant update action payload.

type UpdateUserPayload

type UpdateUserPayload struct {
	Email          *string `json:"email,omitempty" xml:"email,omitempty"`
	FirstName      *string `json:"first_name,omitempty" xml:"first_name,omitempty"`
	ID             *int    `json:"id,omitempty" xml:"id,omitempty"`
	LastName       *string `json:"last_name,omitempty" xml:"last_name,omitempty"`
	Password       *string `json:"password,omitempty" xml:"password,omitempty"`
	Role           *string `json:"role,omitempty" xml:"role,omitempty"`
	Validated      *bool   `json:"validated,omitempty" xml:"validated,omitempty"`
	ValidationCode *string `json:"validation_code,omitempty" xml:"validation_code,omitempty"`
}

UpdateUserPayload is the user update action payload.

type User

type User struct {
	// Activation status
	Active *bool `json:"active,omitempty" xml:"active,omitempty"`
	// Email address of user
	Email *string `json:"email,omitempty" xml:"email,omitempty"`
	// First name of user
	FirstName *string `json:"first_name,omitempty" xml:"first_name,omitempty"`
	// API href of record
	Href *string `json:"href,omitempty" xml:"href,omitempty"`
	// ID of record
	ID *int `json:"id,omitempty" xml:"id,omitempty"`
	// Last name of user
	LastName *string `json:"last_name,omitempty" xml:"last_name,omitempty"`
	// User's role
	Role     *string `json:"role,omitempty" xml:"role,omitempty"`
	TenantID *int    `json:"tenant_id,omitempty" xml:"tenant_id,omitempty"`
	// Validation status
	Validated *bool `json:"validated,omitempty" xml:"validated,omitempty"`
}

A user belonging to a tenant

func DecodeUser

func DecodeUser(r io.Reader, decoderFn goa.DecoderFunc) (*User, error)

DecodeUser decodes the User instance encoded in r.

type UserCollection

type UserCollection []*User

UserCollection media type is a collection of User.

func DecodeUserCollection

func DecodeUserCollection(r io.Reader, decoderFn goa.DecoderFunc) (UserCollection, error)

DecodeUserCollection decodes the UserCollection instance encoded in r.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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