models

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultLocation        string = "US-VA"
	DefaultDeploymentModel string = "GLOBAL"
)

Default deployment settings

View Source
const (
	AppIDField              string = "app_id"
	AppNameField            string = "name"
	AppLocationField        string = "location"
	AppDeploymentModelField string = "deployment_model"
)

App config field identifiers

View Source
const AppConfigFileName string = "stitch.json"

AppConfigFileName is the name of top-level config file describing the app

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	ID          string `json:"_id"`
	GroupID     string `json:"group_id"`
	ClientAppID string `json:"client_app_id"`
	Name        string `json:"name"`
}

App represents basic Stitch App data

type AppInstanceData

type AppInstanceData map[string]interface{}

AppInstanceData defines data pertaining to a specific deployment of a Stitch application

func (AppInstanceData) AppDeploymentModel added in v1.2.0

func (aic AppInstanceData) AppDeploymentModel() string

AppDeploymentModel returns the app's deployment model

func (AppInstanceData) AppID

func (aic AppInstanceData) AppID() string

AppID returns the app's Client App ID

func (AppInstanceData) AppLocation added in v1.2.0

func (aic AppInstanceData) AppLocation() string

AppLocation returns the app's target location

func (AppInstanceData) AppName

func (aic AppInstanceData) AppName() string

AppName returns the app's user-defined name

func (*AppInstanceData) MarshalFile

func (aic *AppInstanceData) MarshalFile(path string) error

MarshalFile writes the AppInstanceData to the AppConfigFileName at the provided path

func (*AppInstanceData) UnmarshalFile

func (aic *AppInstanceData) UnmarshalFile(path string) error

UnmarshalFile unmarshals data from a local config file into an AppInstanceData

type UserProfile

type UserProfile struct {
	Roles []role `json:"roles"`
}

UserProfile holds basic metadata for a given user

func (*UserProfile) AllGroupIDs

func (pd *UserProfile) AllGroupIDs() []string

AllGroupIDs returns all available group ids for a given user

Jump to

Keyboard shortcuts

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