store

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlertConfigurationCreator

type AlertConfigurationCreator interface {
	CreateAlertConfiguration(*atlas.AlertConfiguration) (*atlas.AlertConfiguration, error)
}

type AlertConfigurationDeleter

type AlertConfigurationDeleter interface {
	DeleteAlertConfiguration(string, string) error
}

type AlertConfigurationLister

type AlertConfigurationLister interface {
	AlertConfigurations(string, *atlas.ListOptions) ([]atlas.AlertConfiguration, error)
}

type AutomationGetter

type AutomationGetter interface {
	GetAutomationConfig(string) (*om.AutomationConfig, error)
}

type AutomationStore

type AutomationStore interface {
	AutomationGetter
	AutomationUpdater
}

type AutomationUpdater

type AutomationUpdater interface {
	UpdateAutomationConfig(string, *om.AutomationConfig) error
}

type ClusterCreator

type ClusterCreator interface {
	CreateCluster(*atlas.Cluster) (*atlas.Cluster, error)
}

type ClusterDeleter

type ClusterDeleter interface {
	DeleteCluster(string, string) error
}

type ClusterDescriber

type ClusterDescriber interface {
	Cluster(string, string) (*atlas.Cluster, error)
}

type ClusterLister

type ClusterLister interface {
	ProjectClusters(string, *atlas.ListOptions) ([]atlas.Cluster, error)
}

type ClusterUpdater

type ClusterUpdater interface {
	UpdateCluster(*atlas.Cluster) (*atlas.Cluster, error)
}

type DatabaseUserCreator

type DatabaseUserCreator interface {
	CreateDatabaseUser(*atlas.DatabaseUser) (*atlas.DatabaseUser, error)
}

type DatabaseUserDeleter

type DatabaseUserDeleter interface {
	DeleteDatabaseUser(string, string) error
}

type DatabaseUserDescriber

type DatabaseUserDescriber interface {
	DatabaseUser(string, string) (*atlas.DatabaseUser, error)
}

type DatabaseUserLister

type DatabaseUserLister interface {
	DatabaseUsers(groupID string, opts *atlas.ListOptions) ([]atlas.DatabaseUser, error)
}

type DatabaseUserUpdater

type DatabaseUserUpdater interface {
	UpdateDatabaseUser(*atlas.DatabaseUser) (*atlas.DatabaseUser, error)
}

type OrgProjectLister

type OrgProjectLister interface {
	GetOrgProjects(string) (interface{}, error)
}

type OrganizationCreator

type OrganizationCreator interface {
	CreateOrganization(string) (interface{}, error)
}

type OrganizationDeleter

type OrganizationDeleter interface {
	DeleteOrganization(string) error
}

type OrganizationLister

type OrganizationLister interface {
	GetAllOrganizations() (interface{}, error)
}

type OwnerCreator

type OwnerCreator interface {
	CreateOwner(*om.User, []string) (*om.CreateUserResponse, error)
}

type ProjectCreator

type ProjectCreator interface {
	CreateProject(string, string) (interface{}, error)
}

type ProjectDeleter

type ProjectDeleter interface {
	DeleteProject(string) error
}

type ProjectIPWhitelistCreator

type ProjectIPWhitelistCreator interface {
	CreateProjectIPWhitelist(*atlas.ProjectIPWhitelist) ([]atlas.ProjectIPWhitelist, error)
}

type ProjectIPWhitelistDeleter

type ProjectIPWhitelistDeleter interface {
	DeleteProjectIPWhitelist(string, string) error
}

type ProjectIPWhitelistDescriber

type ProjectIPWhitelistDescriber interface {
	IPWhitelist(string, string) (*atlas.ProjectIPWhitelist, error)
}

type ProjectIPWhitelistLister

type ProjectIPWhitelistLister interface {
	ProjectIPWhitelists(string, *atlas.ListOptions) ([]atlas.ProjectIPWhitelist, error)
}

type ProjectLister

type ProjectLister interface {
	GetAllProjects() (interface{}, error)
	GetOrgProjects(string) (interface{}, error)
}

type ProjectStore

type ProjectStore interface {
	ProjectLister
	ProjectCreator
	ProjectDeleter
}

type Store

type Store struct {
	// contains filtered or unexported fields
}

func New

func New() (*Store, error)

New get the appropriate client for the profile/service selected

func NewUnauthenticated

func NewUnauthenticated() (*Store, error)

func (*Store) AlertConfigurations

func (s *Store) AlertConfigurations(projectID string, opts *atlas.ListOptions) ([]atlas.AlertConfiguration, error)

AlertConfigurations encapsulate the logic to manage different cloud providers

func (*Store) Cluster

func (s *Store) Cluster(projectID string, name string) (*atlas.Cluster, error)

Cluster encapsulate the logic to manage different cloud providers

func (*Store) CreateAlertConfiguration

func (s *Store) CreateAlertConfiguration(alertConfig *atlas.AlertConfiguration) (*atlas.AlertConfiguration, error)

CreateAlertConfiguration encapsulate the logic to manage different cloud providers

func (*Store) CreateCluster

func (s *Store) CreateCluster(cluster *atlas.Cluster) (*atlas.Cluster, error)

CreateCluster encapsulate the logic to manage different cloud providers

func (*Store) CreateDatabaseUser

func (s *Store) CreateDatabaseUser(user *atlas.DatabaseUser) (*atlas.DatabaseUser, error)

CreateDatabaseUser encapsulate the logic to manage different cloud providers

func (*Store) CreateOrganization

func (s *Store) CreateOrganization(name string) (interface{}, error)

CreateOrganization encapsulate the logic to manage different cloud providers

func (*Store) CreateOwner

func (s *Store) CreateOwner(u *om.User, IPs []string) (*om.CreateUserResponse, error)

CreateOwner encapsulate the logic to manage different cloud providers

func (*Store) CreateProject

func (s *Store) CreateProject(name, orgID string) (interface{}, error)

CreateProject encapsulate the logic to manage different cloud providers

func (*Store) CreateProjectIPWhitelist

func (s *Store) CreateProjectIPWhitelist(whitelist *atlas.ProjectIPWhitelist) ([]atlas.ProjectIPWhitelist, error)

CreateProjectIPWhitelist encapsulate the logic to manage different cloud providers

func (*Store) DatabaseUser

func (s *Store) DatabaseUser(groupID string, username string) (*atlas.DatabaseUser, error)

func (*Store) DatabaseUsers

func (s *Store) DatabaseUsers(projectID string, opts *atlas.ListOptions) ([]atlas.DatabaseUser, error)

func (*Store) DeleteAlertConfiguration

func (s *Store) DeleteAlertConfiguration(projectID, id string) error

DeleteAlertConfiguration encapsulate the logic to manage different cloud providers

func (*Store) DeleteCluster

func (s *Store) DeleteCluster(projectID, name string) error

DeleteCluster encapsulate the logic to manage different cloud providers

func (*Store) DeleteDatabaseUser

func (s *Store) DeleteDatabaseUser(groupID, username string) error

func (*Store) DeleteOrganization

func (s *Store) DeleteOrganization(ID string) error

DeleteOrganization encapsulate the logic to manage different cloud providers

func (*Store) DeleteProject

func (s *Store) DeleteProject(projectID string) error

DeleteProject encapsulate the logic to manage different cloud providers

func (*Store) DeleteProjectIPWhitelist

func (s *Store) DeleteProjectIPWhitelist(projectID, whitelistEntry string) error

DeleteProjectIPWhitelist encapsulate the logic to manage different cloud providers

func (*Store) GetAllOrganizations

func (s *Store) GetAllOrganizations() (interface{}, error)

GetAllProjects encapsulate the logic to manage different cloud providers

func (*Store) GetAllProjects

func (s *Store) GetAllProjects() (interface{}, error)

GetAllProjects encapsulate the logic to manage different cloud providers

func (*Store) GetAutomationConfig

func (s *Store) GetAutomationConfig(projectID string) (*om.AutomationConfig, error)

GetAutomationConfig encapsulate the logic to manage different cloud providers

func (*Store) GetOrgProjects

func (s *Store) GetOrgProjects(orgID string) (interface{}, error)

GetOrgProjects encapsulate the logic to manage different cloud providers

func (*Store) IPWhitelist

func (s *Store) IPWhitelist(projectID string, name string) (*atlas.ProjectIPWhitelist, error)

IPWhitelist encapsulate the logic to manage different cloud providers

func (*Store) ProjectClusters

func (s *Store) ProjectClusters(projectID string, opts *atlas.ListOptions) ([]atlas.Cluster, error)

ProjectClusters encapsulate the logic to manage different cloud providers

func (*Store) ProjectIPWhitelists

func (s *Store) ProjectIPWhitelists(projectID string, opts *atlas.ListOptions) ([]atlas.ProjectIPWhitelist, error)

ProjectIPWhitelists encapsulate the logic to manage different cloud providers

func (*Store) UpdateAutomationConfig

func (s *Store) UpdateAutomationConfig(projectID string, automationConfig *om.AutomationConfig) error

UpdateAutomationConfig encapsulate the logic to manage different cloud providers

func (*Store) UpdateCluster

func (s *Store) UpdateCluster(cluster *atlas.Cluster) (*atlas.Cluster, error)

UpdateCluster encapsulate the logic to manage different cloud providers

func (*Store) UpdateDatabaseUser

func (s *Store) UpdateDatabaseUser(user *atlas.DatabaseUser) (*atlas.DatabaseUser, error)

Jump to

Keyboard shortcuts

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