arkod_wp_core 0.0.4+1 arkod_wp_core: ^0.0.4+1 copied to clipboard
ARKOD WordPress core library providing models, utilities and features shared by ARKOD WordPress toolkit modules.
// ignore_for_file: unused_local_variable
import 'package:arkod_wp_core/arkod_wp.dart';
void main() {
final engine = Engine(
id: 1,
createdAt: DateTime.now(),
isInitialized: true,
name: 'local',
host: 'portainer.arkod-wp.localhost',
type: EngineType.portainer,
endpoints: [
Endpoint(
id: 1, // Provided by Portainer
name: 'local',
url: 'unix:///var/run/docker.sock', // Provided by Portainer
type: EndpointType.docker,
status: EndpointStatus.up,
)
],
apiKey: 'secret-api-key-generated-by-initialization',
);
final website = Website(
id: 1,
createdAt: DateTime.now(),
name: 'my-website',
title: 'My website',
adminUsername: 'admin',
adminPassword: 'password',
adminEmail: 'admin@my-website.com',
postsUrlStructure: '/blog/%postname%/',
dbRootPassword: 'password',
dbUser: 'admin',
dbPassword: 'password',
dbTablesPrefix: 'wp_',
environments: [
Environment(
id: 0,
createdAt: DateTime.now(),
websiteId: 1,
engineId: 1,
endpointId: 1,
stackId: 123, // Provided by Portainer
websiteUrl: 'https://my-website.arkod-wp.localhost',
),
],
);
}