Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasicServiceData ¶
type BasicServiceData struct { LoggingID string `json:"logging_id,omitempty"` SourceID string `json:"source_id"` Name string `json:"name"` Organization string `json:"organization"` Owner string `json:"owner"` Admins string `json:"admins,omitempty"` CapacityGigabytes int `json:"capacity_gigabytes,omitempty"` CapacityComment string `json:"capacity_comment,omitempty"` }
type Client ¶
type Client interface { CreateService(ctx context.Context, data *FullServiceData) (*FullServiceData, error) ListServices(ctx context.Context, search string) ([]BasicServiceData, error) DeleteService(ctx context.Context, loggingID string) error }
type ClientImpl ¶
type ClientImpl struct {
// contains filtered or unexported fields
}
func NewLuigiClient ¶
func (*ClientImpl) CreateService ¶
func (c *ClientImpl) CreateService(ctx context.Context, data *FullServiceData) (*FullServiceData, error)
func (*ClientImpl) DeleteService ¶
func (c *ClientImpl) DeleteService(ctx context.Context, loggingID string) error
func (*ClientImpl) ListServices ¶
func (c *ClientImpl) ListServices(ctx context.Context, search string) ([]BasicServiceData, error)
type Creator ¶
type Creator struct {
// contains filtered or unexported fields
}
func (*Creator) DeleteService ¶
func (*Creator) FindOrCreateService ¶
func (c *Creator) FindOrCreateService(ctx context.Context, meta *ServiceMetadata) (*BasicServiceData, error)
type ErrorResponse ¶
type ErrorResponse struct {
Message string `json:"message"`
}
type FullServiceData ¶
type FullServiceData struct { BasicServiceData Acls []ServiceACL `json:"acls"` }
type Response ¶
type Response struct { Data json.RawMessage `json:"data"` StatusCode int `json:"status_code"` Errors []ErrorResponse `json:"errors"` }
type ServiceACL ¶
Click to show internal directories.
Click to hide internal directories.