model

package
v0.0.0-...-a2226db Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OriginManagement = "management"
	OriginKubernetes = "kubernetes"
	ModeFullyManaged = "fully_managed"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action string
const (
	ActionStart Action = "START"
	ActionStop  Action = "STOP"
)

func ApiStateToAction

func ApiStateToAction(s base.ApiState) Action

type ApiDeployment

type ApiDeployment struct {
	DeploymentLabel string `json:"deploymentLabel"`
}

type ApiEntity

type ApiEntity struct {
	ID                string             `json:"id"`
	CrossID           string             `json:"crossId"`
	Name              string             `json:"name"`
	State             string             `json:"state"`
	Visibility        string             `json:"visibility"`
	ApiLifecycleState string             `json:"lifecycle_state"`
	Plans             []*Plan            `json:"plans"`
	Resources         []*Resource        `json:"resources,omitempty"`
	DefinitionContext *DefinitionContext `json:"definition_context,omitempty"`
}

func (*ApiEntity) ShouldSetKubernetesContext

func (api *ApiEntity) ShouldSetKubernetesContext() bool

type ApiImport

type ApiImport struct {
	*v2.Api                        `json:",inline"`
	DisableMembershipNotifications bool          `json:"disable_membership_notifications,omitempty"`
	Pages                          []*PageImport `json:"pages,omitempty"`
}

func ToApiImport

func ToApiImport(spec *v2.Api) *ApiImport

type ApiKeyEntity

type ApiKeyEntity struct {
	ID  string `json:"id"`
	Key string `json:"key"`
}

type ApiListItem

type ApiListItem struct {
	ID                string `json:"id"`
	Name              string `json:"name"`
	State             string `json:"state"`
	Visibility        string `json:"visibility"`
	ApiLifecycleState string `json:"lifecycle_state"`
}

type Application

type Application struct {
	ID          string               `json:"id,omitempty"`
	Name        string               `json:"name,omitempty"`
	Status      string               `json:"status,omitempty"`
	Description string               `json:"description,omitempty"`
	Settings    *application.Setting `json:"settings,omitempty"`
	Background  string               `json:"background,omitempty"`
	Domain      string               `json:"domain,omitempty"`
	Groups      []string             `json:"groups,omitempty"`
	Picture     string               `json:"picture,omitempty"`
	AppType     string               `json:"type,omitempty"`
}

type ApplicationMetaData

type ApplicationMetaData struct {
	Name          string                      `json:"name"`
	ApplicationID string                      `json:"applicationId,omitempty"`
	Value         string                      `json:"value,omitempty"`
	DefaultValue  string                      `json:"defaultValue,omitempty"`
	Format        *application.MetaDataFormat `json:"format,omitempty"`
	Hidden        bool                        `json:"hidden,omitempty"`
	Key           string                      `json:"key,omitempty"`
}

type DefinitionContext

type DefinitionContext struct {
	Origin string `json:"origin,omitempty"`
	Mode   string `json:"mode,omitempty"`
}

func NewKubernetesContext

func NewKubernetesContext() *DefinitionContext

type Env

type Env struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

type Group

type Group struct {
	ID   string `json:"id,omitempty"`
	Name string `json:"name,omitempty"`
}

type Page

type Page struct {
	ID      string      `json:"id,omitempty"`
	Content string      `json:"content,omitempty"`
	Type    string      `json:"type,omitempty"`
	Source  *PageSource `json:"source,omitempty"`
}

type PageImport

type PageImport struct {
	*v2.Page          `json:",inline"`
	DefinitionContext *v2.DefinitionContext `json:"definition_context"`
}

type PageSource

type PageSource struct {
	Type          string                  `json:"type,omitempty"`
	Configuration *utils.GenericStringMap `json:"configuration,omitempty"`
}

type PagesQuery

type PagesQuery struct {
	Type string
}

func NewPageQuery

func NewPageQuery() *PagesQuery

func (*PagesQuery) AsMap

func (query *PagesQuery) AsMap() map[string]string

func (*PagesQuery) WithType

func (query *PagesQuery) WithType(t string) *PagesQuery

type Plan

type Plan struct {
	ID       string           `json:"id"`
	CrossID  string           `json:"crossId"`
	Name     string           `json:"name"`
	Security PlanSecurityType `json:"security"`
	Status   PlanStatus       `json:"status"`
	Api      string           `json:"api"`
}

type PlanSecurityType

type PlanSecurityType string

type PlanStatus

type PlanStatus string

type Resource

type Resource struct {
	Enabled      bool   `json:"enabled"`
	Name         string `json:"name,omitempty"`
	ResourceType string `json:"type,omitempty"`
}

type Subscription

type Subscription struct {
	ID string `json:"id"`
}

type User

type User struct {
	ID        string `json:"id,omitempty"`
	FirstName string `json:"firstname,omitempty"`
	Email     string `json:"email,omitempty"`
	LastName  string `json:"lastname,omitempty"`
	Service   bool   `json:"service,omitempty"`
}

func NewServiceAccount

func NewServiceAccount(name string) *User

Jump to

Keyboard shortcuts

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