application

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: 2 Imported by: 0

Documentation

Overview

+kubebuilder:object:generate=true

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	// +kubebuilder:validation:Required
	// Application name
	Name string `json:"name"`
	// +kubebuilder:validation:Required
	// Application Description
	Description string `json:"description"`
	// io.gravitee.definition.model.Application
	// Application ID
	ID string `json:"id,omitempty"`
	// The base64 encoded background to use for this application when displaying it on the portal
	Background string `json:"background,omitempty"`
	// Application domain
	Domain string `json:"domain,omitempty"`
	// Application groups
	Groups []string `json:"groups,omitempty"`
	// The base64 encoded picture to use for this application when displaying it on the portal (if not relying on an URL)
	Picture string `json:"picture,omitempty"`
	// A URL pointing to the picture to use when displaying the application on the portal
	PictureURL string `json:"pictureUrl,omitempty"`
	// Application settings
	// +kubebuilder:validation:Required
	Settings *Setting `json:"settings"`
	// +kubebuilder:validation:Optional
	// Notify members when they are added to the application
	NotifyMembers bool `json:"notifyMembers"`
	// Application metadata
	Metadata *[]Metadata `json:"metadata,omitempty"`
	// Application members
	Members *[]Member `json:"members,omitempty"`
}

func (*Application) DeepCopy

func (in *Application) DeepCopy() *Application

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Application.

func (*Application) DeepCopyInto

func (in *Application) DeepCopyInto(out *Application)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Application) GetSettings

func (in *Application) GetSettings() core.ApplicationSettings

GetSettings implements core.ApplicationModel.

type Member

type Member struct {
	// Member source
	// +kubebuilder:validation:Required
	// +kubebuilder:example:=gravitee
	Source string `json:"source"`
	// Member source ID
	// +kubebuilder:validation:Required
	// +kubebuilder:example:=user@email.com
	SourceID string `json:"sourceId"`
	// Member display name
	DisplayName string `json:"displayName,omitempty"`
	// The API role associated with this Member
	// +kubebuilder:default:=USER
	Role string `json:"role,omitempty"`
}

func (*Member) DeepCopy

func (in *Member) DeepCopy() *Member

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Member.

func (*Member) DeepCopyInto

func (in *Member) DeepCopyInto(out *Member)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MetaDataFormat

type MetaDataFormat string

+kubebuilder:validation:Enum=STRING;NUMERIC;BOOLEAN;DATE;MAIL;URL;

type Metadata

type Metadata struct {
	// +kubebuilder:validation:Required
	// Metadata Name
	Name string `json:"name"`
	// Metadata Value
	Value string `json:"value,omitempty"`
	// Metadata DefaultValue
	DefaultValue string `json:"defaultValue,omitempty"`
	// Metadata Format
	Format *MetaDataFormat `json:"format,omitempty"`
	// Metadata is hidden or not?
	Hidden bool `json:"hidden,omitempty"`
}

func (*Metadata) DeepCopy

func (in *Metadata) DeepCopy() *Metadata

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Metadata.

func (*Metadata) DeepCopyInto

func (in *Metadata) DeepCopyInto(out *Metadata)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type OAuthClientSettings

type OAuthClientSettings struct {
	// Oauth client application type
	ApplicationType string `json:"applicationType"`
	// List of Oauth client grant types
	GrantTypes []string `json:"grantTypes"`
	// List of Oauth client redirect uris
	RedirectUris []string `json:"redirectUris,omitempty"`
}

func (*OAuthClientSettings) DeepCopy

func (in *OAuthClientSettings) DeepCopy() *OAuthClientSettings

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OAuthClientSettings.

func (*OAuthClientSettings) DeepCopyInto

func (in *OAuthClientSettings) DeepCopyInto(out *OAuthClientSettings)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Setting

type Setting struct {
	App   *SimpleSettings      `json:"app,omitempty"`
	Oauth *OAuthClientSettings `json:"oauth,omitempty"`
}

func (*Setting) DeepCopy

func (in *Setting) DeepCopy() *Setting

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Setting.

func (*Setting) DeepCopyInto

func (in *Setting) DeepCopyInto(out *Setting)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Setting) GetOAuthType

func (in *Setting) GetOAuthType() string

GetOAuthType implements core.ApplicationSettings.

func (*Setting) IsOAuth

func (in *Setting) IsOAuth() bool

IsOAuth implements core.ApplicationSettings.

func (*Setting) IsSimple

func (in *Setting) IsSimple() bool

IsSimple implements core.ApplicationSettings.

type SimpleSettings

type SimpleSettings struct {
	// Application Type
	AppType string `json:"type"`
	// ClientID is the client id of the application
	ClientID string `json:"clientId,omitempty"`
}

func (*SimpleSettings) DeepCopy

func (in *SimpleSettings) DeepCopy() *SimpleSettings

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SimpleSettings.

func (*SimpleSettings) DeepCopyInto

func (in *SimpleSettings) DeepCopyInto(out *SimpleSettings)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Status

type Status struct {
	// The organization ID, if a management context has been defined to sync with an APIM instance
	OrgID string `json:"organizationId,omitempty"`
	// The environment ID, if a management context has been defined to sync with an APIM instance
	EnvID string `json:"environmentId,omitempty"`
	// The ID of the Application, if a management context has been defined to sync with an APIM instance
	ID string `json:"id,omitempty"`
	// The processing status of the Application.
	// The value is `Completed` if the sync with APIM succeeded, Failed otherwise.
	ProcessingStatus core.ProcessingStatus `json:"processingStatus,omitempty"`
	// When API has been created regardless of errors, this field is
	// used to persist the error message encountered during admission
	Errors status.Errors `json:"errors,omitempty"`
}

func (*Status) DeepCopy

func (in *Status) DeepCopy() *Status

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Status.

func (*Status) DeepCopyInto

func (in *Status) DeepCopyInto(out *Status)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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