application

package
v0.0.5-dev.1 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SaasAplicationControllers = cloudy.NewProviderRegistry[SaasAplicationController]()

Functions

This section is empty.

Types

type SaaSApplication

type SaaSApplication struct {
	ID            string
	Name          string
	Description   string
	Visiblity     string
	Driver        string
	Configuration map[string]string
	URL           string

	InternalURL string
	Location    string
}

type SaasAplicationController

type SaasAplicationController interface {
	// ApplyTeamConfig applys a configuration to the application. This encompassed add and removes, etc
	ApplyTeamConfig(ctx context.Context, app *SaaSApplication, cfg interface{}) error

	// Adds a member to the team
	AddMember(ctx context.Context, app *SaaSApplication, uid string) error

	// Removes a member from the team
	RemoveMember(ctx context.Context, app *SaaSApplication, uid string) error

	// Set Members
	SetMembers(ctx context.Context, app *SaaSApplication, members []*models.User) error

	// Archives / Deactivates team
	DeactivateTeam(ctx context.Context, app *SaaSApplication) error

	// Permenantly deletes team
	DeleteTeam(ctx context.Context, app *SaaSApplication) error
}

type SaasApplicationTeamController

type SaasApplicationTeamController interface {
	// ApplyTeamConfig applys a configuration to the application. This encompassed add and removes, etc
	ApplyTeamConfig(ctx context.Context, app *SaaSApplication, cfg interface{}) error

	// Adds a member to the team
	AddMember(ctx context.Context, app *SaaSApplication, uid string) error

	// Removes a member from the team
	RemoveMember(ctx context.Context, app *SaaSApplication, uid string) error

	// Set Members
	SetMembers(ctx context.Context, app *SaaSApplication, members []*models.User) error

	// Archives / Deactivates team
	DeactivateTeam(ctx context.Context, app *SaaSApplication) error

	// Permenantly deletes team
	DeleteTeam(ctx context.Context, app *SaaSApplication) error
}

type Team

type Team struct {
	ID          string
	Name        string
	Description string
	Visiblity   string
	ParentID    string
	GroupID     string

	ApplicationConfigs map[string]interface{}
}

THIS SHOULD NOT BE IN CLOUDY?

Jump to

Keyboard shortcuts

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