redis

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const RedisType = "Redis"

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

type Model struct {
	Redis       *client.Redis       `json:"redis,omitempty"`
	Project     *client.Project     `json:"project,omitempty"`
	Environment *client.Environment `json:"environment,omitempty"`
}

func (Model) EnvironmentName

func (m Model) EnvironmentName() string

func (Model) ID

func (m Model) ID() string

func (Model) Name

func (m Model) Name() string

func (Model) ProjectName

func (m Model) ProjectName() string

func (Model) Type

func (m Model) Type() string

type Repo

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

func NewRepo

func NewRepo(c *client.ClientWithResponses) *Repo

func (*Repo) GetRedis

func (r *Repo) GetRedis(ctx context.Context, id string) (*client.RedisDetail, error)

func (*Repo) GetRedisConnectionInfo

func (r *Repo) GetRedisConnectionInfo(ctx context.Context, id string) (*client.RedisConnectionInfo, error)

func (*Repo) ListRedis

func (r *Repo) ListRedis(ctx context.Context, params *client.ListRedisParams) ([]*client.Redis, error)

type Service

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

func NewService

func NewService(repo *Repo, environmentRepo *environment.Repo, projectRepo *project.Repo) *Service

func (*Service) GetRedis

func (s *Service) GetRedis(ctx context.Context, id string) (*Model, error)

func (*Service) ListRedis

func (s *Service) ListRedis(ctx context.Context, params *client.ListRedisParams) ([]*Model, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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