Documentation
¶
Index ¶
- Variables
- func WithContext(ctx context.Context, api *API) context.Context
- type API
- type Config
- type CurrentUser
- type Grants
- type Services
- func (s *Services) Create(ctx context.Context, req engine.CreateServiceRequest) error
- func (s *Services) Credentials(ctx context.Context, kind, name string) (engine.ServiceCredentials, error)
- func (s *Services) Delete(ctx context.Context, kind, name string) error
- func (s *Services) Get(ctx context.Context, kind, name string) (engine.Service, error)
- func (s *Services) Grants() *Grants
- func (s *Services) List(ctx context.Context) ([]engine.Service, error)
- func (s *Services) Update(ctx context.Context, kind, name string, req engine.UpdateServiceRequest) error
- type Users
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DefaultConfig = Config{
BaseURL: "http://localhost:3456",
}
)
Functions ¶
Types ¶
type Config ¶
type Config struct { BaseURL string `json:"base_url" usage:"the base url that points to a varys instance"` Basic basicauth.ClientConfig `json:"basic"` }
type CurrentUser ¶
type CurrentUser struct {
// contains filtered or unexported fields
}
func (*CurrentUser) Update ¶
func (u *CurrentUser) Update(ctx context.Context, update engine.UpdateUserRequest) error
type Grants ¶
type Grants struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.