Documentation ¶
Index ¶
- type CsvRequest
- type ListRequest
- type Service
- func (s *Service) Csv(req *CsvRequest) (*sacloud.BillDetailCSV, error)
- func (s *Service) CsvWithContext(ctx context.Context, req *CsvRequest) (*sacloud.BillDetailCSV, error)
- func (s *Service) List(req *ListRequest) ([]*sacloud.Bill, error)
- func (s *Service) ListWithContext(ctx context.Context, req *ListRequest) ([]*sacloud.Bill, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CsvRequest ¶
func (*CsvRequest) Validate ¶
func (req *CsvRequest) Validate() error
type ListRequest ¶
type ListRequest struct { Year int `validate:"required_with=Month"` Month int `validate:"min=0,max=12"` }
func (*ListRequest) Validate ¶
func (req *ListRequest) Validate() error
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service provides a high-level API of for Bill
func (*Service) Csv ¶
func (s *Service) Csv(req *CsvRequest) (*sacloud.BillDetailCSV, error)
func (*Service) CsvWithContext ¶
func (s *Service) CsvWithContext(ctx context.Context, req *CsvRequest) (*sacloud.BillDetailCSV, error)
func (*Service) ListWithContext ¶
Click to show internal directories.
Click to hide internal directories.