Documentation
¶
Index ¶
- Constants
- Variables
- type Context
- type Store
- func (s *Store) Create(_ context.Context, ctx *Context) error
- func (s *Store) Current(_ context.Context) (string, error)
- func (s *Store) Delete(_ context.Context, name string) error
- func (s *Store) Get(_ context.Context, name string) (*Context, error)
- func (s *Store) List(_ context.Context) ([]*Context, error)
- func (s *Store) Update(_ context.Context, ctx *Context) error
- func (s *Store) Use(ctx context.Context, name string) error
- func (s *Store) ValidateContext(ctx *Context) error
Constants ¶
View Source
const (
LocalContextName = "local"
)
Variables ¶
View Source
var ( ErrNotFound = errors.New("context not found") ErrAlreadyExists = errors.New("context already exists") )
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) ValidateContext ¶
Click to show internal directories.
Click to hide internal directories.