server_settings

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const ExecutionTypeKubernetes = "launcher-kubernetes"
View Source
const ExecutionTypeLocal = "launcher-local"
View Source
const ExecutionTypeNative = "native"

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationSettings

type ApplicationSettings struct {
	// ViewerOnDemandReports   bool     `json:"viewer_ondemand_reports"`
	// ViewerCustomizedReports bool     `json:"viewer_customized_reports"`
	AccessTypes      []string `json:"access_types"`
	RunAs            string   `json:"run_as"`
	RunAsGroup       string   `json:"run_as_group"`
	RunAsCurrentUser bool     `json:"run_as_current_user"`
}

type AuthenticationSettings

type AuthenticationSettings struct {
	ProviderAttributes
	Name         string `json:"name"`
	Notice       string `json:"notice"`
	WarningDelay int64  `json:"warning_delay"`
}

type FlexiBool

type FlexiBool bool

func (*FlexiBool) UnmarshalJSON

func (b *FlexiBool) UnmarshalJSON(data []byte) error

type LicenseStatus

type LicenseStatus struct {
	// Some fields unexpectedly come across as strings...
	// https://github.com/rstudio/publishing-client/issues/593
	// Commented out all the fields we don't use.
	// Timestamp            float64 `json:"ts"`
	// Status               string  `json:"status"`
	// Expiration           float64 `json:"expiration"`
	// DaysLeft             int64   `json:"days-left"`
	// HasKey               bool    `json:"has-key"`
	// HasTrial             bool    `json:"has-trial"`
	// Tier                 string  `json:"tier"`
	// SKUYear              string  `json:"sku-year"`
	// Edition              string  `json:"edition"`
	// Connections          any     `json:"connections"`
	// Type                 string  `json:"type"`
	// Users                any     `json:"users"`
	// UserActivityDays     any     `json:"user-activity-days"`
	// UsersGrace           bool    `json:"users-grace,string"`
	// ShinyUsers           any     `json:"shiny-users"`
	AllowAPIs FlexiBool `json:"allow-apis"` // sometimes a bool, sometimes an int-string like "1"?
	// CustomBranding       bool    `json:"custom-branding"`
	CurrentUserExecution FlexiBool `json:"current-user-execution"`
	// AnonymousServers     bool    `json:"anonymous-servers"`
	// AnonymousBranding    bool    `json:"anonymous-branding"`
	LauncherEnabled FlexiBool `json:"enable-launcher"`
}

type ProviderAttributes

type ProviderAttributes struct {
	HandlesCredentials bool `json:"handles_credentials"`
	HandlesLogin       bool `json:"handles_login"`
	SupportsChallenge  bool `json:"challenge_response_enabled"`
	ProviderUserAttributes
	ProviderGroupAttributes
	ProviderUserProfileAttributes
}

type ProviderGroupAttributes

type ProviderGroupAttributes struct {
	GroupsEnabled        bool `json:"groups_enabled"`
	ExternalGroupSearch  bool `json:"external_group_search"`
	ExternalGroupMembers bool `json:"external_group_members"`
	ExternalGroupId      bool `json:"external_group_id"`
	ExternalGroupOwner   bool `json:"external_group_owner"`
}

type ProviderUserAttributes

type ProviderUserAttributes struct {
	ExternalUserData   bool `json:"external_user_data"`
	ExternalUserSearch bool `json:"external_user_search"`
	ExternalUserId     bool `json:"external_user_id"`
}

type ProviderUserProfileAttributes

type ProviderUserProfileAttributes struct {
	UniqueUsernames    bool               `json:"unique_usernames"`
	NameEditableBy     UserInfoEditableBy `json:"name_editable_by"`
	EmailEditableBy    UserInfoEditableBy `json:"email_editable_by"`
	UsernameEditableBy UserInfoEditableBy `json:"username_editable_by"`
	RoleEditableBy     UserInfoEditableBy `json:"role_editable_by"`
}

type PyInfo

type PyInfo struct {
	Installations []PyInstallation `json:"installations"`
	APIEnabled    bool             `json:"api_enabled"`
}

type PyInstallation

type PyInstallation struct {
	Version     string `json:"version"`
	ClusterName string `json:"cluster_name"`
	ImageName   string `json:"image_name"`
}

type QuartoInfo

type QuartoInfo struct {
	Installations []QuartoInstallation `json:"installations"`
}

type QuartoInstallation

type QuartoInstallation struct {
	Version     string `json:"version"`
	ClusterName string `json:"cluster_name"`
	ImageName   string `json:"image_name"`
}

type RInfo

type RInfo struct {
	Installations []RInstallation `json:"installations"`
}

type RInstallation

type RInstallation struct {
	Version     string `json:"version"`
	ClusterName string `json:"cluster_name"`
	ImageName   string `json:"image_name"`
}

type SchedulerSettings

type SchedulerSettings struct {
	MinProcesses       int64   `json:"min_processes"`
	MaxProcesses       int64   `json:"max_processes"`
	MaxConnsPerProcess int64   `json:"max_conns_per_process"`
	LoadFactor         float64 `json:"load_factor"`
	InitTimeout        int64   `json:"init_timeout"`
	IdleTimeout        int64   `json:"idle_timeout"`
	MinProcessesLimit  int64   `json:"min_processes_limit"`
	MaxProcessesLimit  int64   `json:"max_processes_limit"`
	ConnectionTimeout  int64   `json:"connection_timeout"`
	ReadTimeout        int64   `json:"read_timeout"`

	CPURequest        float64 `json:"cpu_request"`
	MaxCPURequest     float64 `json:"max_cpu_request"`
	CPULimit          float64 `json:"cpu_limit"`
	MaxCPULimit       float64 `json:"max_cpu_limit"`
	MemoryRequest     int64   `json:"memory_request"`
	MaxMemoryRequest  int64   `json:"max_memory_request"`
	MemoryLimit       int64   `json:"memory_limit"`
	MaxMemoryLimit    int64   `json:"max_memory_limit"`
	AMDGPULimit       int64   `json:"amd_gpu_limit"`
	MaxAMDGPULimit    int64   `json:"max_amd_gpu_limit"`
	NvidiaGPULimit    int64   `json:"nvidia_gpu_limit"`
	MaxNvidiaGPULimit int64   `json:"max_nvidia_gpu_limit"`
}

type ServerSettings

type ServerSettings struct {
	// NodeName                              string                 `json:"hostname"`
	// Version                               string                 `json:"version"`
	// Build                                 string                 `json:"build"`
	// About                                 string                 `json:"about"`
	// Authentication                        AuthenticationSettings `json:"authentication"`
	License LicenseStatus `json:"license"`
	// LicenseExpirationUIWarning            bool                   `json:"license_expiration_ui_warning"`
	// DeprecatedSettings                    bool                   `json:"deprecated_settings"`
	// DeprecatedSettingsUIWarning           bool                   `json:"deprecated_settings_ui_warning"`
	// ViewerKiosk                           bool                   `json:"viewer_kiosk"`
	// MailAll                               bool                   `json:"mail_all"`
	// MailConfigured                        bool                   `json:"mail_configured"`
	// PublicWarning                         string                 `json:"public_warning"`
	// LoggedInWarning                       string                 `json:"logged_in_warning"`
	// LogoutURL                             string                 `json:"logout_url"`
	// MetricsRRDEnabled                     bool                   `json:"metrics_rrd_enabled"`
	// MetricsInstrumentation                bool                   `json:"metrics_instrumentation"`
	// CustomizedLanding                     bool                   `json:"customized_landing"`
	// SelfRegistration                      bool                   `json:"self_registration"`
	// ProhibitedUsernames                   []string               `json:"prohibited_usernames"`
	// UsernameValidator                     string                 `json:"username_validator"`
	// ViewersCanOnlySeeThemselves           bool                   `json:"viewers_can_only_see_themselves"`
	// HTTPWarning                           bool                   `json:"http_warning"`
	// QueueUI                               bool                   `json:"queue_ui"`
	Runtimes []string `json:"runtimes"`
	// DefaultContentListView                string                 `json:"default_content_list_view"`
	// MaximumAppImageSize                   int                    `json:"maximum_app_image_size"`
	// ServerSettingsToggler                 bool                   `json:"server_settings_toggler"`
	GitEnabled   bool `json:"git_enabled"`
	GitAvailable bool `json:"git_available"`
	// DashboardPath                         string                 `json:"dashboard_path"`
	// SystemDisplayName                     string                 `json:"system_display_name"`
	// HideViewerDocumentation               bool                   `json:"hide_viewer_documentation"`
	// JumpStartEnabled                      bool                   `json:"jump_start_enabled"`
	// PermissionRequest                     bool                   `json:"permission_request"`
	// TableauIntegrationEnabled             bool                   `json:"tableau_integration_enabled"`
	// SelfTestEnabled                       bool                   `json:"self_test_enabled"`
	ExecutionType            string `json:"execution_type"`
	EnableRuntimeConstraints bool   `json:"enable_runtime_constraints"`
	EnableImageManagement    bool   `json:"enable_image_management"`
	// AllowRuntimeCacheManagement           bool                   `json:"enable_runtime_cache_management"`
	DefaultImageSelectionEnabled          bool `json:"default_image_selection_enabled"`
	DefaultEnvironmentManagementSelection bool `json:"default_environment_management_selection"`
	DefaultREnvironmentManagement         bool `json:"default_r_environment_management"`
	DefaultPyEnvironmentManagement        bool `json:"default_py_environment_management"`
}

type UserInfoEditableBy

type UserInfoEditableBy UserInfoEditableType

func NewUserInfoEditableByFromType

func NewUserInfoEditableByFromType(t UserInfoEditableType) UserInfoEditableBy

func (UserInfoEditableBy) Type

type UserInfoEditableType

type UserInfoEditableType string
const (
	UserEditProvider     UserInfoEditableType = "Provider"
	UserEditAdmin        UserInfoEditableType = "Admin"
	UserEditAdminAndSelf UserInfoEditableType = "AdminAndSelf"
)

Jump to

Keyboard shortcuts

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