Documentation
¶
Overview ¶
Copyright 2016 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. /////////////////////////////////////////////////////////////////////////
Copyright 2016 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. /////////////////////////////////////////////////////////////////////////
Index ¶
- type ConfigSource
- type Service
- func (s *Service) Await(op *mgmt.Operation) *mgmt.Operation
- func (s *Service) AwaitDone(op *mgmt.Operation) error
- func (s *Service) Connect() (err error)
- func (s *Service) Create() error
- func (s *Service) CreateConfigFiles(files []string) ([]*mgmt.ConfigFile, error)
- func (s *Service) Delete() error
- func (s *Service) Deploy(files []string, defaultName string) (*mgmt.Service, error)
- func (s *Service) Enable(name, project string) error
- func (s *Service) Ensure() error
- func (s *Service) Exists() bool
- func (s *Service) Fetch() (svc *mgmt.Service, err error)
- func (s *Service) GenerateConfigReport() (*mgmt.GenerateConfigReportResponse, error)
- func (s *Service) GetClient(scope string) (hc *http.Client, err error)
- func (s *Service) Rollout() error
- func (s *Service) Submit(configFiles []*mgmt.ConfigFile) (*mgmt.Service, error)
- func (s *Service) Undelete() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigSource ¶
type ConfigSource struct { Swagger *string `yaml:"swagger"` Host *string `yaml:"host"` Name *string `yaml:"name"` Type *string `yaml:"type"` }
ConfigSource provides minimal schema for YAML config
type Service ¶
type Service struct { Name string Version string CredentialsFile string ProducerProject string // contains filtered or unexported fields }
Service handler for the API
func (*Service) CreateConfigFiles ¶
func (s *Service) CreateConfigFiles(files []string) ([]*mgmt.ConfigFile, error)
CreateConfigFiles loads files and returns config sources and updates the service name if it can be extracted
func (*Service) Deploy ¶
Deploy service configuration files and ensure it is ready to be consumed Use defaultName to provide default service name for default service configuration
func (*Service) GenerateConfigReport ¶
func (s *Service) GenerateConfigReport() (*mgmt.GenerateConfigReportResponse, error)
GenerateConfigReport computes the diff between config IDs