Home Download Docs Code Community
     1	/*
     2	Copyright 2014 The Perkeep Authors
     3	
     4	Licensed under the Apache License, Version 2.0 (the "License");
     5	you may not use this file except in compliance with the License.
     6	You may obtain a copy of the License at
     7	
     8	     http://www.apache.org/licenses/LICENSE-2.0
     9	
    10	Unless required by applicable law or agreed to in writing, software
    11	distributed under the License is distributed on an "AS IS" BASIS,
    12	WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13	See the License for the specific language governing permissions and
    14	limitations under the License.
    15	*/
    16	
    17	package camtypes
    18	
    19	import "perkeep.org/pkg/blob"
    20	
    21	type StatusError struct {
    22		Error string `json:"error"`
    23		URL   string `json:"url,omitempty"` // optional
    24	}
    25	
    26	// ShareImportProgress is the state of a share importing process.
    27	type ShareImportProgress struct {
    28		// Assembled is whether the share being imported is for an assembled file.
    29		Assembled bool
    30		// Running is whether the import share handler is currently running an import.
    31		Running bool
    32		// FilesSeen is the number of files, children of the top directory being shared, that have been discovered so far.
    33		FilesSeen int
    34		// FilesCopied is the number of files that have already been imported during that import.
    35		FilesCopied int
    36		// BlobRef is the ref of the schema of the file or top directory being imported.
    37		BlobRef blob.Ref
    38	}
Website layout inspired by memcached.
Content by the authors.