Documentation ¶
Overview ¶
Copyright © 2016 Nuxeo SA (http://nuxeo.com/) and others.
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 Nuxeo SA (http://nuxeo.com/) and others.
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 Nuxeo SA (http://nuxeo.com/) and others.
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 Nuxeo SA (http://nuxeo.com/) and others.
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 ¶
- func Dir(useLocal bool, name string) http.FileSystem
- func FS(useLocal bool) http.FileSystem
- func FSByte(useLocal bool, name string) ([]byte, error)
- func FSMustByte(useLocal bool, name string) []byte
- func FSMustString(useLocal bool, name string) string
- func FSString(useLocal bool, name string) (string, error)
- type APIServer
- func (s *APIServer) DomainIndex(w http.ResponseWriter, r *http.Request)
- func (s *APIServer) DomainShow(w http.ResponseWriter, r *http.Request)
- func (s *APIServer) ServiceAction() func(w http.ResponseWriter, r *http.Request)
- func (s *APIServer) ServiceCreate() func(w http.ResponseWriter, r *http.Request)
- func (s *APIServer) ServiceDestroy() func(w http.ResponseWriter, r *http.Request)
- func (s *APIServer) ServiceIndex(w http.ResponseWriter, r *http.Request)
- func (s *APIServer) ServiceShow(w http.ResponseWriter, r *http.Request)
- func (s *APIServer) ServiceUpdate() func(w http.ResponseWriter, r *http.Request)
- func (s *APIServer) Start()
- type NotFoundError
- type Route
- type Routes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Dir ¶
func Dir(useLocal bool, name string) http.FileSystem
Dir returns a http.Filesystem for the embedded assets on a given prefix dir. If useLocal is true, the filesystem's contents are instead used.
func FS ¶
func FS(useLocal bool) http.FileSystem
FS returns a http.Filesystem for the embedded assets. If useLocal is true, the filesystem's contents are instead used.
func FSByte ¶
FSByte returns the named file from the embedded assets. If useLocal is true, the filesystem's contents are instead used.
func FSMustByte ¶
FSMustByte is the same as FSByte, but panics if name is not present.
func FSMustString ¶
FSMustString is the string version of FSMustByte.
Types ¶
type APIServer ¶
type APIServer struct {
// contains filtered or unexported fields
}
func NewAPIServer ¶
func (*APIServer) DomainIndex ¶
func (s *APIServer) DomainIndex(w http.ResponseWriter, r *http.Request)
func (*APIServer) DomainShow ¶
func (s *APIServer) DomainShow(w http.ResponseWriter, r *http.Request)
func (*APIServer) ServiceAction ¶
func (s *APIServer) ServiceAction() func(w http.ResponseWriter, r *http.Request)
func (*APIServer) ServiceCreate ¶
func (s *APIServer) ServiceCreate() func(w http.ResponseWriter, r *http.Request)
func (*APIServer) ServiceDestroy ¶
func (s *APIServer) ServiceDestroy() func(w http.ResponseWriter, r *http.Request)
func (*APIServer) ServiceIndex ¶
func (s *APIServer) ServiceIndex(w http.ResponseWriter, r *http.Request)
func (*APIServer) ServiceShow ¶
func (s *APIServer) ServiceShow(w http.ResponseWriter, r *http.Request)
func (*APIServer) ServiceUpdate ¶
func (s *APIServer) ServiceUpdate() func(w http.ResponseWriter, r *http.Request)
type NotFoundError ¶
type NotFoundError struct {
// contains filtered or unexported fields
}
func (NotFoundError) Error ¶
func (e NotFoundError) Error() string